]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
Fix PR c++/70822 (bogus error with parenthesized SCOPE_REF)
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
b4557008
CLT
12016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
2
3 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5 parameter, use to set async stream around call to gomp_unmap_vars,
6 call gomp_unmap_vars() with 'do_copyfrom' set to true.
7 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
9 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
10 (event_add): Add int parameter, initialize 'val' field when
11 adding new ptx_event struct.
12 (nvptx_evec): Adjust event_add() call arguments.
13 (nvptx_host2dev): Likewise.
14 (nvptx_dev2host): Likewise.
15 (nvptx_wait_async): Likewise.
16 (nvptx_wait_all_async): Likewise.
17 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
18 pass to event_add() call.
19 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
20 parameter.
21 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
22 call openacc.register_async_cleanup_func() hook.
23 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
24 * target.c (gomp_copy_from_async): Delete function.
25 (gomp_map_vars): Remove async_refcount.
26 (gomp_unmap_vars): Likewise.
27 (gomp_load_image_to_device): Likewise.
28 (omp_target_associate_ptr): Likewise.
29 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
30 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
31 (gomp_copy_from_async): Remove.
32
6ce13072
CLT
332016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
34
35 * target.c (gomp_device_copy): New function.
36 (gomp_copy_host2dev): Likewise.
37 (gomp_copy_dev2host): Likewise.
38 (gomp_free_device_memory): Likewise.
39 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
40 (gomp_map_pointer): Likewise.
41 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
42 NULL value from alloc_func plugin hook.
43 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
44 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
45 (gomp_unmap_vars): Likewise.
46 (gomp_update): Adjust to call gomp_copy_dev2host and
47 gomp_copy_host2dev functions.
48 (gomp_unload_image_from_device): Handle false value from
49 unload_image_func plugin hook.
50 (gomp_init_device): Handle false value from init_device_func
51 plugin hook.
52 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
53 (omp_target_free): Adjust to call gomp_free_device_memory.
54 (omp_target_memcpy): Handle return values from host2dev_func,
55 dev2host_func, and dev2dev_func plugin hooks.
56 (omp_target_memcpy_rect_worker): Likewise.
57 (gomp_target_fini): Handle false value from fini_device_func
58 plugin hook.
59 * libgomp.h (struct gomp_device_descr): Adjust return type of
60 init_device_func, fini_device_func, unload_image_func, free_func,
61 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
62 * oacc-init.c (acc_shutdown_1): Handle false value from
63 fini_device_func plugin hook.
64 * oacc-host.c (host_init_device): Change return type to bool.
65 (host_fini_device): Likewise.
66 (host_unload_image): Likewise.
67 (host_free): Likewise.
68 (host_dev2host): Likewise.
69 (host_host2dev): Likewise.
70 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
71 (acc_memcpy_to_device): Likewise.
72 (acc_memcpy_from_device): Likewise.
73 (delete_copyout): Add libfnname parameter, handle free_func
74 hook fatal error case.
75 (acc_delete): Adjust delete_copyout call.
76 (acc_copyout): Likewise.
77 (update_dev_host): Move gomp_mutex_unlock to after
78 host2dev/dev2host hook calls.
79
80 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
81 to 'hsa_error_msg', for clarity.
82 (hsa_fatal): Likewise.
83 (hsa_error): New function.
84 (init_hsa_context): Change return type to bool, adjust to return
85 false on error.
86 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
87 return value.
88 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
89 return false on error.
90 (get_agent_info): Adjust to return NULL on error.
91 (destroy_hsa_program): Change return type to bool, adjust to
92 return false on error.
93 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
94 (destroy_module): Change return type to bool, adjust to
95 return false on error.
96 (GOMP_OFFLOAD_unload_image): Likewise.
97 (GOMP_OFFLOAD_fini_device): Likewise.
98 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
99 (GOMP_OFFLOAD_free): Change to return false when called.
100 (GOMP_OFFLOAD_dev2host): Likewise.
101 (GOMP_OFFLOAD_host2dev): Likewise.
102 (GOMP_OFFLOAD_dev2dev): Likewise.
103
104 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
105 (CUDA_CALL): Likewise.
106 (CUDA_CALL_ASSERT): Likewise.
107 (map_init): Change return type to bool, use CUDA_CALL* macros.
108 (map_fini): Likewise.
109 (init_streams_for_device): Change return type to bool, adjust
110 call to map_init.
111 (fini_streams_for_device): Change return type to bool, adjust
112 call to map_fini.
113 (select_stream_for_async): Release stream_lock before calls to
114 GOMP_PLUGIN_fatal, adjust call to map_init.
115 (nvptx_init): Use CUDA_CALL* macros.
116 (nvptx_attach_host_thread_to_device): Change return type to bool,
117 use CUDA_CALL* macros.
118 (nvptx_open_device): Use CUDA_CALL* macros.
119 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
120 macros.
121 (nvptx_get_num_devices): Use CUDA_CALL* macros.
122 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
123 (nvptx_exec): Use CUDA_CALL* macros.
124 (nvptx_alloc): Use CUDA_CALL* macros.
125 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
126 (nvptx_host2dev): Likewise.
127 (nvptx_dev2host): Likewise.
128 (nvptx_wait): Use CUDA_CALL* macros.
129 (nvptx_wait_async): Likewise.
130 (nvptx_wait_all): Likewise.
131 (nvptx_wait_all_async): Likewise.
132 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
133 use CUDA_CALL* macros, adjust call to map_fini.
134 (GOMP_OFFLOAD_init_device): Change return type to bool,
135 adjust code accordingly.
136 (GOMP_OFFLOAD_fini_device): Likewise.
137 (GOMP_OFFLOAD_load_image): Adjust calls to
138 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
139 use CUDA_CALL* macros.
140 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
141 return code.
142 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
143 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
144 handle error return.
145 (GOMP_OFFLOAD_dev2host): Likewise.
146 (GOMP_OFFLOAD_host2dev): Likewise.
147 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
148 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
149
e46c7770
CP
1502016-05-24 Cesar Philippidis <cesar@codesourcery.com>
151
152 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
153 (acc_free): Likewise.
154 (acc_memcpy_to_device): Likewise.
155 (acc_memcpy_from_device): Likewise.
156 (acc_deviceptr): Likewise.
157 (acc_hostptr): Likewise.
158 (acc_is_present): Likewise.
159 (acc_map_data): Likewise.
160 (acc_unmap_data): Likewise.
161 (present_create_copy): Likewise.
162 (delete_copyout): Likewise.
163 (update_dev_host): Likewise.
164 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
165 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
166 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
167 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
168 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
169 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
170 it only runs on nvptx targets.
171 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
172 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
173 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
174 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
175 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
176 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
177 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
178 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
179 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
180 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
181 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
182 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
183 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
184 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
185 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
186 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
187 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
188 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
189 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
190 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
191 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
192 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
193 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
194
a5057543
MJ
1952016-05-23 Martin Jambor <mjambor@suse.cz>
196
197 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
198
e37288a6
CLT
1992016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
200
201 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
202 to gomp_init_targets_once.
203 (acc_set_device_type): Remove !cached_base_dev condition on call to
204 gomp_init_targets_once, move call to before acc_device_lock acquire,
205 to avoid deadlock.
206 (acc_get_device_num): Remove !cached_base_dev condition on call to
207 gomp_init_targets_once.
208 (acc_set_device_num): Likewise.
209
51d9ed48
MJ
2102016-05-16 Martin Jambor <mjambor@suse.cz>
211
212 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
213
5b37e866
NS
2142016-05-02 Nathan Sidwell <nathan@codesourcery.com>
215
216 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
217 expected partitioning.
218
e7ff0319
CP
2192016-04-29 Cesar Philippidis <cesar@codesourcery.com>
220
221 PR middle-end/70626
222 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
223 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
224 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
225
c2bd3b69
AM
2262016-04-21 Alexander Monakov <amonakov@ispras.ru>
227
228 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
229 non-fatal.
230
84311083
JJ
2312016-04-19 Jakub Jelinek <jakub@redhat.com>
232
233 PR middle-end/70680
234 * testsuite/libgomp.c/pr70680-1.c: New test.
235 * testsuite/libgomp.c/pr70680-2.c: New test.
236
aadc043f
CP
2372016-04-14 Cesar Philippidis <cesar@codesourcery.com>
238
239 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
240 pass parameter variables to subroutines.
241
e387fc64
CP
2422016-04-14 Cesar Philippidis <cesar@codesourcery.com>
243
244 PR middle-end/70643
245 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
246
10c3c424
CP
2472016-04-13 Cesar Philippidis <cesar@codesourcery.com>
248
249 PR testsuite/68242
250 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
251 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
252
27f9add3
TS
2532016-04-12 Thomas Schwinge <thomas@codesourcery.com>
254
58d32aeb
TS
255 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
256 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
257 GOACC_declare prototype.
258
d97633ef
TS
259 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
260 Merge this file, and...
261 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
262 ... this file, and...
263 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
264 ... this file, and...
265 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
266 ... this file, and...
267 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
268 ... this file, and...
269 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
270 ... this file, and...
271 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
272 ... this file, and...
273 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
274 ... this file, and...
275 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
276 ... this file, and...
277 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
278 ... this file, and...
279 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
280 ... this file, and...
281 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
282 ... this file, and...
283 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
284 ... this file into...
285 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
286 file.
287
27f9add3
TS
288 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
289 Make failure observable.
290
21f3a236
JJ
2912016-04-12 Jakub Jelinek <jakub@redhat.com>
292
293 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
294 field.
295 * target.c (gomp_target_fallback_firstprivate,
296 gomp_target_unshare_firstprivate): Removed.
297 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
298 before waiting for dependencies.
299 (gomp_target_task_fn): Don't copy firstprivate vars here.
300 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
301 firstprivate_copies here.
302 (gomp_create_target_task): Don't initialize firstprivate_copies field.
303 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
304 explicit/implicit firstprivate.
305
c42cfb5c
CP
3062016-04-08 Cesar Philippidis <cesar@codesourcery.com>
307
308 PR lto/70289
309 PR ipa/70348
310 PR tree-optimization/70373
311 PR middle-end/70533
312 PR middle-end/70534
313 PR middle-end/70535
314 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
315 test.
316 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
317 test.
318 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
319 test.
320 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
321 test.
322 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
323 test.
324 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
325 test.
326 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
327 test.
328 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
329 test.
330 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
331 test.
332 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
333 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
334 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
335 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
336 test.
337 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
338 test.
339 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
340 test.
341 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
342 test.
343 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
344 coverage.
345 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
346 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
347 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
348 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
349 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
350 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
351 coverage.
352 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
353 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
354 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
355 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
356 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
357 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
358 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
359 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
360 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
361 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
362 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
363 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
364 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
365 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
366 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
367
2620c80d
TS
3682016-03-30 Thomas Schwinge <thomas@codesourcery.com>
369 James Norris <jnorris@codesourcery.com>
370 Nathan Sidwell <nathan@codesourcery.com>
371 Julian Brown <julian@codesourcery.com>
372 Cesar Philippidis <cesar@codesourcery.com>
373 Chung-Lin Tang <cltang@codesourcery.com>
374 Tom de Vries <tom@codesourcery.com>
375
376 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
377 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
378 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
379 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
380 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
381 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
382 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
383 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
384 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
385 XFAIL.
386 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
387 Incorporate...
388 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
389 file.
390 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
391 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
392 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
393 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
394 Likewise.
395 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
396 Likewise.
397 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
398 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
399 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
400 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
401 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
402 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
403 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
404 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
405 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
406 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
407 Likewise.
408 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
409 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
410 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
411 file...
412 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
413 file into...
414 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
415 file. Update.
416 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
417 file.
418 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
419 Likewise.
420 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
421 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
422 ... this new file. Update.
423 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
424 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
425 ... this new file. Update.
426 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
427 file. Incorporate...
428 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
429 file, and...
430 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
431 file, and...
432 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
433 file.
434 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
435
ce83104b
TS
4362016-03-29 Thomas Schwinge <thomas@codesourcery.com>
437
438 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
439 set-torture-options.
440
6e0df3b7
TS
4412016-03-24 Thomas Schwinge <thomas@codesourcery.com>
442
443 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
444 gcc-dg-runtest.
445 * testsuite/libgomp.oacc-c/c.exp: Likewise.
446 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
447 -fno-builtin-acc_on_device instead of -O0.
448 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
449 -O0.
450 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
451 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
452 Likewise.
453 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
454 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
455 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
456 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
457 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
458 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
459 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
460 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
461 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
462 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
463 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
464 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
465 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
466 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
467 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
468 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
469 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
470 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
471 Don't specify -O2.
472 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
473 Likewise.
474 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
475 Likewise.
476
f9c8babb
ML
4772016-03-24 Martin Liska <mliska@suse.cz>
478
479 * plugin/plugin-hsa.c (packet_store_release): New function
480 that is taken from the HSA runtime manual.
481 (GOMP_OFFLOAD_run): Use the function.
482
04833609
JJ
4832016-03-23 Jakub Jelinek <jakub@redhat.com>
484
485 PR c++/70376
486 * testsuite/libgomp.c++/pr70376.C: New test.
487
d79ee524
TV
4882016-03-23 Tom de Vries <tom@codesourcery.com>
489
490 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
491 initialization of lresult and lvresult.
492 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
493
b6d1f2b5
JN
4942016-03-23 James Norris <jnorris@codesourcery.com>
495 Daichi Fukuoka <dc-fukuoka@sgi.com>
496
497 PR libgomp/69414
498 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
499 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
500 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
501 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
502
7397fce2
ML
5032016-03-23 Martin Liska <mliska@suse.cz>
504
505 PR hsa/70337
506 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
507 argument just in case a dispatched kernel uses that argument.
508
ee2e7d51
TS
5092016-03-16 Thomas Schwinge <thomas@codesourcery.com>
510
511 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
512 -ftree-parallelize-loops/-fopenacc changes.
513 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
514 Likewise.
515 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
516 Likewise.
517 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
518 Likewise.
519 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
520 Likewise.
521 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
522 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
523
be9f7143
TS
5242016-03-13 Thomas Schwinge <thomas@codesourcery.com>
525
526 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
527 always_ld_library_path the path to libgcc_s.
528
f6c1032d
CP
5292016-03-10 Cesar Philippidis <cesar@codesourcery.com>
530
531 PR testsuite/70009
532 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
533
5a6452e6
TV
5342016-03-09 Tom de Vries <tom@codesourcery.com>
535
536 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
537 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
538 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
539 Same.
540 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
541 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
542 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
543 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
544
96a71bd5
MJ
5452016-03-07 Martin Jambor <mjambor@suse.cz>
546
547 * testsuite/lib/libgomp.exp
548 (check_effective_target_hsa_offloading_selected_nocache): New.
549 (check_effective_target_hsa_offloading_selected): Likewise.
550 * testsuite/libgomp.hsa.c/c.exp: Likewise.
551 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
552 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
553 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
554 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
555 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
556 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
557 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
558 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
559 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
560 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
561 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
562 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
563 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
564 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
565 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
566 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
567
02e0b5b2
MJ
5682016-03-07 Martin Jambor <mjambor@suse.cz>
569
570 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
571 non-shared memory accelerators.
572 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
573 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
574 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
575 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
576 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
577 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
578 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
579 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
580 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
581
45548f30
MJ
5822016-03-07 Martin Jambor <mjambor@suse.cz>
583
584 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
585 ALWAYS_CFLAGS.
586
da3d46cb
JJ
5872016-03-02 Jakub Jelinek <jakub@redhat.com>
588
589 PR libgomp/69555
590 * testsuite/libgomp.c++/pr69555-1.C: New test.
591 * testsuite/libgomp.c++/pr69555-2.C: New test.
592
622174b2
KM
5932016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
594 Martin Jambor <mjambor@suse.cz>
595
596 * testsuite/lib/libgomp.exp
597 (check_effective_target_offload_device_shared_as): New proc.
598 * testsuite/libgomp.c++/declare_target-1.C: New test.
599
e6861a99
IV
6002016-02-25 Ilya Verbin <ilya.verbin@intel.com>
601
602 PR driver/68463
603 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
604
f99c3557
TS
6052016-02-23 Thomas Schwinge <thomas@codesourcery.com>
606
607 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
608 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
609 dims.
610 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
611 -ftree-parallelize-loops/-fopenacc changes.
612 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
613 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
614 Likewise.
615 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
616 Likewise.
617 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
618 Likewise.
619 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
620 Likewise.
621 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
622 Likewise.
623 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
624 Likewise.
625 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
626 Likewise.
627 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
628 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
629 Likewise.
630 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
631 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
632 Likewise.
633 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
634 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
635 Likewise.
636
d5ace3b5
CP
6372016-02-22 Cesar Philippidis <cesar@codesourcery.com>
638
639 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
640
f3609a89
JJ
6412016-02-19 Jakub Jelinek <jakub@redhat.com>
642
643 PR driver/69805
644 * testsuite/libgomp.c/pr69805.c: New test.
645
2175df99
TV
6462016-02-16 Tom de Vries <tom@codesourcery.com>
647
648 PR lto/67709
649 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
650
17b6426c
TV
6512016-02-09 Tom de Vries <tom@codesourcery.com>
652
653 PR tree-optimization/69599
654 * testsuite/libgomp.c/omp-nested-3.c: New test.
655 * testsuite/libgomp.c/pr46032-2.c: New test.
656 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
657 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
658
34df756c
TV
6592016-02-09 Tom de Vries <tom@codesourcery.com>
660
661 PR lto/69707
662 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
663
5854ee30
AM
6642016-02-02 Alexander Monakov <amonakov@ispras.ru>
665
666 * testsuite/libgomp.c/target-31.c: Fix testcase.
667
e70b6ad7
AM
6682016-02-02 Alexander Monakov <amonakov@ispras.ru>
669
670 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
671 clause.
672 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
673 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
674 reduction and map clauses.
675 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
676
bd78a45f
JN
6772016-02-02 James Norris <jnorris@codesourcery.com>
678
679 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
680
41d809d3
TS
6812016-02-02 Thomas Schwinge <thomas@codesourcery.com>
682
18f60146
TS
683 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
684 * oacc-parallel.c (GOACC_host_data): Remove function definition.
685
1a06f5e6
TS
686 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
687 cases.
688
033ff3d1
TS
689 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
690 variables.
691 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
692 (hsa_kmt_lib): Set variables.
693 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
694 always_ld_library_path.
695 * Makefile.in: Regenerate.
696 * configure: Likewise.
697 * testsuite/Makefile.in: Likewise.
698
4a88d9b7
TS
699 * plugin/configfrag.ac (offload_additional_options)
700 (offload_additional_lib_paths): Don't amend for hsa offloading.
701 * configure: Regenerate.
702
41d809d3
TS
703 * plugin/configfrag.ac: Don't configure for offloading target if
704 we don't build the corresponding plugin.
705 * configure: Regenerate.
706
b6adbb9f
NS
7072016-02-01 Nathan Sidwell <nathan@codesourcery.com>
708
709 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
710 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
711
8dfdb419
TV
7122016-01-26 Tom de Vries <tom@codesourcery.com>
713
714 PR tree-optimization/69110
715 * testsuite/libgomp.c/pr69110.c: New test.
716
02ef53f2
RB
7172016-01-25 Richard Biener <rguenther@suse.de>
718
719 PR lto/69393
720 * testsuite/libgomp.c++/pr69393.C: New testcase.
721
eb4048f2
IV
7222016-01-22 Ilya Verbin <ilya.verbin@intel.com>
723
724 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
725 function wasn't mapped to the device with non-shared memory.
726
b235cdd5
IV
7272016-01-20 Ilya Verbin <ilya.verbin@intel.com>
728
729 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
730
b2b40051
MJ
7312016-01-19 Martin Jambor <mjambor@suse.cz>
732 Martin Liska <mliska@suse.cz>
733
734 * plugin/Makefrag.am: Add HSA plugin requirements.
735 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
736 (HSA_RUNTIME_LIB): Likewise.
737 (HSA_RUNTIME_CPPFLAGS): Likewise.
738 (HSA_RUNTIME_INCLUDE): New substitution.
739 (HSA_RUNTIME_LIB): Likewise.
740 (HSA_RUNTIME_LDFLAGS): Likewise.
741 (hsa-runtime): New configure option.
742 (hsa-runtime-include): Likewise.
743 (hsa-runtime-lib): Likewise.
744 (PLUGIN_HSA): New substitution variable.
745 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
746 configure options.
747 (PLUGIN_HSA_CPPFLAGS): Likewise.
748 (PLUGIN_HSA_LDFLAGS): Likewise.
749 (PLUGIN_HSA_LIBS): Likewise.
750 Check that we have access to HSA run-time.
751 * libgomp-plugin.h (offload_target_type): New element
752 OFFLOAD_TARGET_TYPE_HSA.
753 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
754 args.
755 (bool gomp_create_target_task): Updated.
756 (gomp_device_descr): Extra parameter of run_func and async_run_func,
757 new field can_run_func.
758 * libgomp_g.h (GOMP_target_ext): Update prototype.
759 * oacc-host.c (host_run): Added a new parameter args.
760 * target.c (calculate_firstprivate_requirements): New function.
761 (copy_firstprivate_data): Likewise.
762 (gomp_target_fallback_firstprivate): Use them.
763 (gomp_target_unshare_firstprivate): New function.
764 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
765 devices.
766 (GOMP_target): Do host fallback for all shared memory devices. Do not
767 pass any args to plugins.
768 (GOMP_target_ext): Introduce device-specific argument parameter args.
769 Allow host fallback if device shares memory. Do not remap data if
770 device has shared memory.
771 (gomp_target_task_fn): Likewise. Also treat shared memory devices
772 like host fallback for mappings.
773 (GOMP_target_data): Treat shared memory devices like host fallback.
774 (GOMP_target_data_ext): Likewise.
775 (GOMP_target_update): Likewise.
776 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
777 gomp_create_target_task.
778 (GOMP_target_enter_exit_data): Likewise.
779 (omp_target_alloc): Treat shared memory devices like host fallback.
780 (omp_target_free): Likewise.
781 (omp_target_is_present): Likewise.
782 (omp_target_memcpy): Likewise.
783 (omp_target_memcpy_rect): Likewise.
784 (omp_target_associate_ptr): Likewise.
785 (gomp_load_plugin_for_device): Also load can_run.
786 * task.c (GOMP_PLUGIN_target_task_completion): Free
787 firstprivate_copies.
788 (gomp_create_target_task): Accept new argument args and store it to
789 ttask.
790 * plugin/plugin-hsa.c: New file.
791
5d7804a9
TV
7922016-01-18 Tom de Vries <tom@codesourcery.com>
793
794 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
795 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
796 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
797 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
798 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
799 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
800 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
801 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
802 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
803 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
804 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
805 Same.
806 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
807 Same.
808 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
809 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
810 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
811 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
812 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
813 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
814 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
815 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
816 Same.
817 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
818
cb11f3cf
JJ
8192016-01-15 Jakub Jelinek <jakub@redhat.com>
820
821 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
822
33a126a6
CP
8232016-01-15 Cesar Philippidis <cesar@codesourcery.com>
824
825 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
826
cdf6119d
JN
8272016-01-12 James Norris <jnorris@codesourcery.com>
828
829 * libgomp.texi: Updates for OpenACC.
830
0d58938e
AM
8312016-01-11 Alexander Monakov <amonakov@ispras.ru>
832
833 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
834
95918b49
L
8352016-01-07 H.J. Lu <hongjiu.lu@intel.com>
836
837 PR fortran/66680
838 * testsuite/libgomp.fortran/pr66680.f90: New test.
839
8fc708b7
JJ
8402016-01-07 Jakub Jelinek <jakub@redhat.com>
841
842 PR middle-end/68960
843 * testsuite/libgomp.c/pr68960.c: New test.
844
e9b596c1
NS
8452016-01-06 Nathan Sidwell <nathan@acm.org>
846
1a14faf2 847 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
e9b596c1
NS
848 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
849
21fa2a29
JJ
8502016-01-04 Jakub Jelinek <jakub@redhat.com>
851
818ab71a
JJ
852 Update copyright years.
853
21fa2a29
JJ
854 * libgomp.texi: Bump @copying's copyright year.
855
9310efbc
NS
8562015-12-31 Nathan Sidwell <nathan@acm.org>
857
858 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
859 dg-additional-options syntax.
860 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
861 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
862 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
863 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
864 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
865 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
866 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
867 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
868 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
869 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
870 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
871 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
872 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
873 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
874 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
875 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
876 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
877 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
878
4a38b02b
IV
8792015-12-15 Ilya Verbin <ilya.verbin@intel.com>
880
881 * libgomp.h (REFCOUNT_LINK): Define.
882 (struct splay_tree_key_s): Add link_key.
883 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
884 Replace target address of the pointer with target address of newly
885 mapped object in the splay tree. Set link pointer on target to the
886 device address of the mapped object.
887 (gomp_unmap_vars): Restore target address of the pointer in the splay
888 tree for REFCOUNT_LINK objects after unmapping.
889 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
890 declare target link" objects.
891 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
892 "omp declare target link" objects, which were mapped for the image.
893 (gomp_exit_data): Restore target address of the pointer in the splay
894 tree for REFCOUNT_LINK objects after unmapping.
895 * testsuite/libgomp.c/target-link-1.c: New file.
896
d84ffc0a
IV
8972015-12-14 Ilya Verbin <ilya.verbin@intel.com>
898
899 * libgomp.h (gomp_device_state): New enum.
900 (struct gomp_device_descr): Replace is_initialized with state.
901 (gomp_fini_device): Remove declaration.
902 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
903 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
904 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
905 (acc_set_device_type): Use state instead of is_initialized.
906 (acc_set_device_num): Likewise.
907 * target.c (resolve_device): Use state instead of is_initialized.
908 Do not initialize finalized device.
909 (gomp_map_vars): Do nothing if device is finalized.
910 (gomp_unmap_vars): Likewise.
911 (gomp_update): Likewise.
912 (GOMP_offload_register_ver): Use state instead of is_initialized.
913 (GOMP_offload_unregister_ver): Likewise.
914 (gomp_init_device): Likewise.
915 (gomp_unload_device): Likewise.
916 (gomp_fini_device): Remove.
917 (gomp_get_target_fn_addr): Do nothing if device is finalized.
918 (GOMP_target): Go to host fallback if device is finalized.
919 (GOMP_target_ext): Likewise.
920 (gomp_exit_data): Do nothing if device is finalized.
921 (gomp_target_task_fn): Go to host fallback if device is finalized.
922 (gomp_target_fini): New static function.
923 (gomp_target_init): Use state instead of is_initialized.
924 Call gomp_target_fini at exit.
925
76680678
TV
9262015-12-09 Tom de Vries <tom@codesourcery.com>
927
928 PR tree-optimization/68716
929 * testsuite/libgomp.c/omp-nested-2.c: New test.
930
ff7a55bf
TS
9312015-12-02 Thomas Schwinge <thomas@codesourcery.com>
932
933 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
934 target openacc_nvidia_accel_selected.
935 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
936 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
937 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
938 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
939
37d5ad46
JB
9402015-12-01 Julian Brown <julian@codesourcery.com>
941 James Norris <James_Norris@mentor.com>
942
943 * oacc-parallel.c (GOACC_host_data): New function.
944 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
945 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
946 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
947 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
948 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
949 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
950 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
951
db941d7e
CP
9522015-11-30 James Norris <jnorris@codesourcery.com>
953 Cesar Philippidis <cesar@codesourcery.com>
954
955 libgomp/
956 * libgomp.oacc-fortran/routine-5.f90: New test.
957 * libgomp.oacc-fortran/routine-7.f90: New test.
958 * libgomp.oacc-fortran/routine-9.f90: New test.
959
e0ca27c5
TV
9602015-11-30 Tom de Vries <tom@codesourcery.com>
961
962 PR tree-optimization/46032
963 * testsuite/libgomp.c/pr46032.c: New test.
964
aec17bfe
JJ
9652015-11-27 Jakub Jelinek <jakub@redhat.com>
966
8e4e4719
JJ
967 PR libgomp/68579
968 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
969 (gomp_create_target_task): Call it before freeing
970 GOMP_TARGET_TASK_DATA tasks.
971
aec17bfe
JJ
972 PR c/63326
973 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
974 in between case label and OpenMP standalone directives.
975 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
976
6cfe90e6
DE
9772015-11-26 David Edelsohn <dje.gcc@gmail.com>
978
979 * configure: Regenerate.
980
0e65fd7d
JJ
9812015-11-26 Jakub Jelinek <jakub@redhat.com>
982
983 * testsuite/libgomp.c/target-35.c: New test.
984
dc7a8b4b
JN
9852015-11-22 James Norris <jnorris@codesourcery.com>
986 Cesar Philippidis <cesar@codesourcery.com>
987
988 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
989 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
990 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
991 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
992 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
993
48a78aee
JJ
9942015-11-20 Jakub Jelinek <jakub@redhat.com>
995
996 PR middle-end/68221
997 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
998 * testsuite/libgomp.c/reduction-12.c: Likewise.
999 * testsuite/libgomp.c++/reduction-11.C: Likewise.
1000 * testsuite/libgomp.c++/reduction-12.C: Likewise.
1001
2d256816
NS
10022015-11-19 Nathan Sidwell <nathan@codesourcery.com>
1003
1004 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
1005 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
1006 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
1007 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
1008 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
1009 and fix.
1010 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1011 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1012
33f47f42
NS
10132015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1014
1015 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
1016 worker & gang cases.
1017 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
1018
3d7bfee0
CP
10192015-11-17 Cesar Philippidis <cesar@codesourcery.com>
1020
1021 * config/nvptx/priority_queue.c: New file.
1022
00b9bd52
JJ
10232015-11-14 Jakub Jelinek <jakub@redhat.com>
1024
1025 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
1026 sections.
1027
e4606348
JJ
10282015-11-14 Jakub Jelinek <jakub@redhat.com>
1029 Aldy Hernandez <aldyh@redhat.com>
1030 Ilya Verbin <ilya.verbin@intel.com>
1031
1032 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
1033 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
1034 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
1035 iterators or IV by chunk size.
1036 * parallel.c (gomp_resolve_num_threads): Don't assume that
1037 if thr->ts.team is non-NULL, then pool must be non-NULL.
1038 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
1039 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
1040 GOMP_PLUGIN_target_task_completion.
1041 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
1042 * Makefile.in: Regenerate.
1043 * libgomp.h: Shuffle prototypes and forward definitions around so
1044 priority queues can be defined.
1045 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
1046 (enum gomp_target_task_state): New enum.
1047 (struct gomp_target_task): Add state, tgt, task and team fields.
1048 (gomp_create_target_task): Change return type to bool, add
1049 state argument.
1050 (gomp_target_task_fn): Change return type to bool.
1051 (struct gomp_device_descr): Add async_run_func.
1052 (struct gomp_task): Remove children, next_child, prev_child,
1053 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
1054 Add pnode field.
1055 (struct gomp_taskgroup): Remove children.
1056 Add taskgroup_queue.
1057 (struct gomp_team): Change task_queue type to a priority queue.
1058 (splay_compare): Define inline.
1059 (priority_queue_offset): New.
1060 (priority_node_to_task): New.
1061 (task_to_priority_node): New.
1062 * oacc-mem.c: Do not include splay-tree.h.
1063 * priority_queue.c: New file.
1064 * priority_queue.h: New file.
1065 * splay-tree.c: Do not include splay-tree.h.
1066 (splay_tree_foreach_internal): New.
1067 (splay_tree_foreach): New.
1068 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
1069 (splay_tree_callback): Define typedef.
1070 * target.c (splay_compare): Move to libgomp.h.
1071 (GOMP_target): Don't adjust *thr in any way around running offloaded
1072 task.
1073 (GOMP_target_ext): Likewise. Handle target nowait.
1074 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
1075 return value from gomp_create_target_task, if false, fallthrough
1076 as if no dependencies exist.
1077 (gomp_target_task_fn): Change return type to bool, return true
1078 if the task should have another part scheduled later. Handle
1079 target nowait.
1080 (gomp_load_plugin_for_device): Initialize async_run.
1081 * task.c (gomp_init_task): Initialize children_queue.
1082 (gomp_clear_parent_in_list): New.
1083 (gomp_clear_parent_in_tree): New.
1084 (gomp_clear_parent): Handle priorities.
1085 (GOMP_task): Likewise.
1086 (priority_queue_move_task_first,
1087 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
1088 New functions.
1089 (gomp_create_target_task): Use priority queues. Change return type
1090 to bool, add state argument, return false if for async
1091 {{enter,exit} data,update} constructs no dependencies need to be
1092 waited for, handle target nowait. Set task->fn to NULL instead of
1093 gomp_target_task_fn.
1094 (verify_children_queue): Remove.
1095 (priority_list_upgrade_task): New.
1096 (priority_queue_upgrade_task): New.
1097 (verify_task_queue): Remove.
1098 (priority_list_downgrade_task): New.
1099 (priority_queue_downgrade_task): New.
1100 (gomp_task_run_pre): Use priority queues.
1101 Abstract code out to priority_queue_downgrade_task.
1102 (gomp_task_run_post_handle_dependers): Use priority queues.
1103 (gomp_task_run_post_remove_parent): Likewise.
1104 (gomp_task_run_post_remove_taskgroup): Likewise.
1105 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
1106 tasks specially.
1107 (GOMP_taskwait): Likewise.
1108 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
1109 priority-queue_upgrade_task.
1110 (GOMP_taskgroup_start): Use priority queues.
1111 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
1112 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
1113 barrier.
1114 * taskloop.c (GOMP_taskloop): Handle priorities.
1115 * team.c (gomp_new_team): Call priority_queue_init.
1116 (free_team): Call priority_queue_free.
1117 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
1118 team created for target nowait in implicit parallel region.
1119 (gomp_team_start): For nested check, test thr->ts.level instead of
1120 thr->ts.team != NULL.
1121 * testsuite/libgomp.c/doacross-3.c: New test.
1122 * testsuite/libgomp.c/ordered-5.c: New test.
1123 * testsuite/libgomp.c/priority.c: New test.
1124 * testsuite/libgomp.c/target-31.c: New test.
1125 * testsuite/libgomp.c/target-32.c: New test.
1126 * testsuite/libgomp.c/target-33.c: New test.
1127 * testsuite/libgomp.c/target-34.c: New test.
1128
1d1ab74f
NS
11292015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1130
c5a64cfe
NS
1131 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
1132
1d1ab74f
NS
1133 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
1134 loop is sequential.
1135
dd3c1b14
NS
11362015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1137
1138 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
1139 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
1140
6e232ba4
JN
11412015-11-12 James Norris <jnorris@codesourcery.com>
1142 Joseph Myers <joseph@codesourcery.com>
1143
1144 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
1145 * oacc-parallel.c (GOACC_declare): New function.
1146 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
1147 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
1148 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
1149 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
1150 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
1151
fffeedeb
NS
11522015-11-12 Nathan Sidwell <nathan@codesourcery.com>
1153
1154 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
1155
182190f2
NS
11562015-11-1 Nathan Sidwell <nathan@codesourcery.com>
1157
1158 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
1159 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
1160
36fa0f5f
NS
11612015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1162
d350c40c
NS
1163 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
1164 inadvertent commit.
1165
11662015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1167
36fa0f5f
NS
1168 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
1169 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
1170 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
1171 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
1172 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
1173
66a5f0b4
TS
11742015-11-06 Thomas Schwinge <thomas@codesourcery.com>
1175
1176 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
1177 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1178
e01d41e5
JJ
11792015-11-05 Jakub Jelinek <jakub@redhat.com>
1180 Ilya Verbin <ilya.verbin@intel.com>
1181
1182 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
1183 GOMP_loop_nonmonotonic_dynamic_start,
1184 GOMP_loop_nonmonotonic_guided_next,
1185 GOMP_loop_nonmonotonic_guided_start,
1186 GOMP_loop_ull_nonmonotonic_dynamic_next,
1187 GOMP_loop_ull_nonmonotonic_dynamic_start,
1188 GOMP_loop_ull_nonmonotonic_guided_next,
1189 GOMP_loop_ull_nonmonotonic_guided_start,
1190 GOMP_parallel_loop_nonmonotonic_dynamic,
1191 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
1192 (GOMP_target_41): Renamed to ...
1193 (GOMP_target_ext): ... this. Add num_teams and thread_limit
1194 arguments.
1195 (GOMP_target_data_41): Renamed to ...
1196 (GOMP_target_data_ext): ... this.
1197 (GOMP_target_update_41): Renamed to ...
1198 (GOMP_target_update_ext): ... this.
1199 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
1200 GOMP_target_data_ext and GOMP_target_update_ext instead of
1201 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
1202 Export GOMP_loop_nonmonotonic_dynamic_next,
1203 GOMP_loop_nonmonotonic_dynamic_start,
1204 GOMP_loop_nonmonotonic_guided_next,
1205 GOMP_loop_nonmonotonic_guided_start,
1206 GOMP_loop_ull_nonmonotonic_dynamic_next,
1207 GOMP_loop_ull_nonmonotonic_dynamic_start,
1208 GOMP_loop_ull_nonmonotonic_guided_next,
1209 GOMP_loop_ull_nonmonotonic_guided_start,
1210 GOMP_parallel_loop_nonmonotonic_dynamic and
1211 GOMP_parallel_loop_nonmonotonic_guided.
1212 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
1213 GOMP_parallel_loop_nonmonotonic_guided,
1214 GOMP_loop_nonmonotonic_dynamic_start,
1215 GOMP_loop_nonmonotonic_guided_start,
1216 GOMP_loop_nonmonotonic_dynamic_next,
1217 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
1218 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
1219 GOMP_loop_ull_nonmonotonic_guided_start,
1220 GOMP_loop_ull_nonmonotonic_dynamic_next,
1221 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
1222 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
1223 functions.
1224 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
1225 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
1226 Use gomp_map_val function.
1227 (gomp_target_fallback_firstprivate): New static function.
1228 (GOMP_target_41): Renamed to ...
1229 (GOMP_target_ext): ... this. Add num_teams and thread_limit
1230 arguments. Move firstprivate fallback handling into a new
1231 function.
1232 (GOMP_target_data_41): Renamed to ...
1233 (GOMP_target_data_ext): ... this.
1234 (GOMP_target_update_41): Renamed to ...
1235 (GOMP_target_update_ext): ... this.
1236 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
1237 gomp_map_0len_lookup instead of gomp_map_lookup.
1238 (omp_target_is_present): Use gomp_map_0len_lookup instead of
1239 gomp_map_lookup.
1240 * testsuite/libgomp.c/target-28.c: Likewise.
1241 * testsuite/libgomp.c/monotonic-1.c: New test.
1242 * testsuite/libgomp.c/monotonic-2.c: New test.
1243 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
1244 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
1245 * testsuite/libgomp.c/pr66199-5.c: New test.
1246 * testsuite/libgomp.c/pr66199-6.c: New test.
1247 * testsuite/libgomp.c/pr66199-7.c: New test.
1248 * testsuite/libgomp.c/pr66199-8.c: New test.
1249 * testsuite/libgomp.c/pr66199-9.c: New test.
1250 * testsuite/libgomp.c/reduction-11.c: New test.
1251 * testsuite/libgomp.c/reduction-12.c: New test.
1252 * testsuite/libgomp.c/reduction-13.c: New test.
1253 * testsuite/libgomp.c/reduction-14.c: New test.
1254 * testsuite/libgomp.c/reduction-15.c: New test.
1255 * testsuite/libgomp.c/target-12.c (main): Adjust for
1256 omp_target_is_present change for one-past-last element.
1257 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
1258 the same var is both mapped and privatized.
1259 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
1260 handling of zero-length array sections.
1261 * testsuite/libgomp.c/target-28.c: New test.
1262 * testsuite/libgomp.c/target-29.c: New test.
1263 * testsuite/libgomp.c/target-30.c: New test.
1264 * testsuite/libgomp.c/target-teams-1.c: New test.
1265 * testsuite/libgomp.c++/member-6.C: New test.
1266 * testsuite/libgomp.c++/member-7.C: New test.
1267 * testsuite/libgomp.c++/monotonic-1.C: New test.
1268 * testsuite/libgomp.c++/monotonic-2.C: New test.
1269 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
1270 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
1271 * testsuite/libgomp.c++/pr66199-3.C: New test.
1272 * testsuite/libgomp.c++/pr66199-4.C: New test.
1273 * testsuite/libgomp.c++/pr66199-5.C: New test.
1274 * testsuite/libgomp.c++/pr66199-6.C: New test.
1275 * testsuite/libgomp.c++/pr66199-7.C: New test.
1276 * testsuite/libgomp.c++/pr66199-8.C: New test.
1277 * testsuite/libgomp.c++/pr66199-9.C: New test.
1278 * testsuite/libgomp.c++/reduction-11.C: New test.
1279 * testsuite/libgomp.c++/reduction-12.C: New test.
1280 * testsuite/libgomp.c++/target-13.C: New test.
1281 * testsuite/libgomp.c++/target-14.C: New test.
1282 * testsuite/libgomp.c++/target-15.C: New test.
1283 * testsuite/libgomp.c++/target-16.C: New test.
1284 * testsuite/libgomp.c++/target-17.C: New test.
1285 * testsuite/libgomp.c++/target-18.C: New test.
1286 * testsuite/libgomp.c++/target-19.C: New test.
1287
ccc8282b
NS
12882015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1289
1290 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
1291 and reduction copy.
1292 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1293 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1294 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1295 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1296 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1297 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1298 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1299 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1300 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1301 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
1302 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
1303 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1304 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1305 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
1306
5d6823a2
NS
13072015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1308
1309 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
1310 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
1311 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
1312 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
1313 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
1314 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
1315 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
1316 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
1317
5c06742f
NS
13182015-11-03 Nathan Sidwell <nathan@codesourcery.com>
1319
1320 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
1321 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
1322 (GOMP_OFFLOAD_openacc_parallel): Likewise.
1323 * oacc-host.c (host_openacc_exec): Likewise.
1324 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
1325
4bf9e5a8
TS
13262015-11-03 Julian Brown <julian@codesourcery.com>
1327 Thomas Schwinge <thomas@codesourcery.com>
1328
1329 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
1330 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1331 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
1332 Likewise.
1333 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
1334 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
1335
13362015-11-03 James Norris <jnorris@codesourcery.com>
1337
1338 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
1339 file.
1340 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
1341 Likewise.
1342 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
1343 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
1344 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
1345 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
1346 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
1347
a0e701d8
NS
13482015-10-29 Nathan Sidwell <nathan@codesourcery.com>
1349
1350 * openacc.h (enum acc_device_t): Reformat. Ensure layout
1351 compatibility.
1352 (enum acc_async_t): Reformat.
1353 (acc_on_device): Declare compatible with builtin and provide C++
1354 wrapper.
1355 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
1356
41e977ac
TS
13572015-10-29 Thomas Schwinge <thomas@codesourcery.com>
1358 Cesar Philippidis <cesar@codesourcery.com>
1359
1360 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
1361 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
1362 ... this. Add a description of the test at the top of the file.
1363 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
1364 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
1365 ... this. Add a description of the test at the top of the file.
1366
e3091406
NS
13672015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1368
1369 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
1370 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
1371 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
1372 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
1373 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
1374 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
1375
a1c1908b
NS
13762015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1377
1378 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
1379 dimensions.
1380
b3962a4a
TS
13812015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1382
1383 PR testsuite/68063
1384 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
1385
88bae6f4
TS
13862015-10-27 James Norris <jnorris@codesourcery.com>
1387
1388 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
1389 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
1390
8baa7864
TS
13912015-10-26 Thomas Schwinge <thomas@codesourcery.com>
1392
bdeb752c
TS
1393 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
1394 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1395
ecd4fd43
TS
1396 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
1397 acc_device_nvidia usage.
1398 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1399 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1400 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
1401
aa8b7d30
TS
1402 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
1403 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
1404
7c8f138d
TS
1405 PR libgomp/66518
1406 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
1407
8baa7864
TS
1408 PR libgomp/65437
1409 PR libgomp/66518
1410 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
1411 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
1412
88ebcde5
TV
14132015-10-23 Tom de Vries <tom@codesourcery.com>
1414
1415 PR testsuite/68063
1416 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
1417
9ef83c04
NS
14182015-10-20 Nathan Sidwell <nathan@codesourcery.com>
1419
1420 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
1421 vector_length.
1422 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1423
3837c6d6
IV
14242015-10-14 Ilya Verbin <ilya.verbin@intel.com>
1425 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
1426
1427 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
1428 to 0 when mapnum is 0.
1429
ac8a1965
SH
14302015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1431
1432 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
1433 Cast to int from int32_t.
1434
d9a6bd32
JJ
14352015-10-13 Jakub Jelinek <jakub@redhat.com>
1436 Aldy Hernandez <aldyh@redhat.com>
1437 Ilya Verbin <ilya.verbin@intel.com>
1438
1439 * config/linux/affinity.c (omp_get_place_num_procs,
1440 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
1441 * config/linux/doacross.h: New file.
1442 * config/posix/affinity.c (omp_get_place_num_procs,
1443 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
1444 * config/posix/doacross.h: New file.
1445 * env.c: Include gomp-constants.h.
1446 (struct gomp_task_icv): Rename run_sched_modifier to
1447 run_sched_chunk_size.
1448 (gomp_max_task_priority_var): New variable.
1449 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
1450 (handle_omp_display_env): Change _OPENMP value from 201307 to
1451 201511. Print OMP_MAX_TASK_PRIORITY.
1452 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
1453 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
1454 chunk_size and run_sched_modifier to run_sched_chunk_size.
1455 (omp_get_max_task_priority, omp_get_initial_device,
1456 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
1457 omp_get_partition_place_nums): New functions.
1458 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
1459 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
1460 to chunk_size.
1461 (omp_get_num_places_, omp_get_place_num_procs_,
1462 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
1463 omp_get_place_proc_ids_8_, omp_get_place_num_,
1464 omp_get_partition_num_places_, omp_get_partition_place_nums_,
1465 omp_get_partition_place_nums_8_, omp_get_initial_device_,
1466 omp_get_max_task_priority_): New functions.
1467 * libgomp_g.h (GOMP_loop_doacross_static_start,
1468 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
1469 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
1470 GOMP_loop_ull_doacross_dynamic_start,
1471 GOMP_loop_ull_doacross_guided_start,
1472 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
1473 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
1474 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
1475 GOMP_target_data_41, GOMP_target_update_41,
1476 GOMP_target_enter_exit_data): New prototypes.
1477 (GOMP_task): Add prototype argument.
1478 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
1479 (struct gomp_doacross_work_share): New type.
1480 (struct gomp_work_share): Add doacross field.
1481 (struct gomp_task_icv): Rename run_sched_modifier to
1482 run_sched_chunk_size.
1483 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
1484 GOMP_TASK_UNDEFERRED. Add comments.
1485 (struct gomp_task_depend_entry): Add comments.
1486 (struct gomp_task): Likewise.
1487 (struct gomp_taskgroup): Likewise.
1488 (struct gomp_target_task): New type.
1489 (struct gomp_team): Add comment.
1490 (gomp_get_place_proc_ids_8, gomp_doacross_init,
1491 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
1492 gomp_create_target_task, gomp_target_task_fn): New prototypes.
1493 (struct target_var_desc): New type.
1494 (struct target_mem_desc): Adjust comment. Use struct
1495 target_var_desc instead of splay_tree_key for list.
1496 (REFCOUNT_INFINITY): Define.
1497 (struct splay_tree_key_s): Remove copy_from field.
1498 (struct gomp_device_descr): Add dev2dev_func field.
1499 (enum gomp_map_vars_kind): New enum.
1500 (gomp_map_vars): Add one argument.
1501 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
1502 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
1503 omp_get_place_num_procs, omp_get_place_num_procs_,
1504 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
1505 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
1506 omp_get_place_num_, omp_get_partition_num_places,
1507 omp_get_partition_num_places_, omp_get_partition_place_nums,
1508 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
1509 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
1510 omp_target_free, omp_target_is_present, omp_target_memcpy,
1511 omp_target_memcpy_rect, omp_target_associate_ptr and
1512 omp_target_disassociate_ptr.
1513 (GOMP_4.0.2): Renamed to ...
1514 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
1515 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
1516 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
1517 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
1518 GOMP_loop_doacross_static_start, GOMP_doacross_post,
1519 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
1520 GOMP_loop_ull_doacross_guided_start,
1521 GOMP_loop_ull_doacross_runtime_start,
1522 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
1523 GOMP_doacross_ull_wait.
1524 * libgomp.texi: Document omp_get_max_task_priority.
1525 Rename modifier argument to chunk_size for omp_set_schedule and
1526 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
1527 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
1528 to run_sched_chunk_size renaming.
1529 (GOMP_loop_ordered_runtime_start): Likewise.
1530 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1531 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
1532 GOMP_parallel_loop_runtime_start): New functions.
1533 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
1534 to run_sched_chunk_size renaming.
1535 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
1536 GOMP_loop_doacross_guided_start): New functions or aliases.
1537 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
1538 run_sched_modifier to run_sched_chunk_size renaming.
1539 (GOMP_loop_ull_ordered_runtime_start): Likewise.
1540 (gomp_loop_ull_doacross_static_start,
1541 gomp_loop_ull_doacross_dynamic_start,
1542 gomp_loop_ull_doacross_guided_start,
1543 GOMP_loop_ull_doacross_runtime_start): New functions.
1544 (GOMP_loop_ull_doacross_static_start,
1545 GOMP_loop_ull_doacross_dynamic_start,
1546 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
1547 * oacc-mem.c (acc_map_data, present_create_copy,
1548 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
1549 to gomp_map_vars.
1550 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
1551 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
1552 instead of false to gomp_map_vars.
1553 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
1554 * omp.h.in (omp_lock_hint_t): New type.
1555 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1556 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1557 omp_get_place_num, omp_get_partition_num_places,
1558 omp_get_partition_place_nums, omp_get_initial_device,
1559 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
1560 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
1561 omp_target_associate_ptr, omp_target_disassociate_ptr): New
1562 prototypes.
1563 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
1564 (omp_lock_hint_none, omp_lock_hint_uncontended,
1565 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
1566 omp_lock_hint_speculative): New parameters.
1567 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1568 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1569 omp_get_place_num, omp_get_partition_num_places,
1570 omp_get_partition_place_nums, omp_get_initial_device,
1571 omp_get_max_task_priority): New interfaces.
1572 (omp_set_schedule, omp_get_schedule): Rename modifier argument
1573 to chunk_size.
1574 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
1575 (omp_lock_hint_none, omp_lock_hint_uncontended,
1576 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
1577 omp_lock_hint_speculative): New parameters.
1578 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1579 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1580 omp_get_place_num, omp_get_partition_num_places,
1581 omp_get_partition_place_nums, omp_get_initial_device,
1582 omp_get_max_task_priority): New functions and subroutines.
1583 * ordered.c: Include stdarg.h and string.h.
1584 (MAX_COLLAPSED_BITS): Define.
1585 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
1586 gomp_doacross_ull_init, GOMP_doacross_ull_post,
1587 GOMP_doacross_ull_wait): New functions.
1588 * target.c: Include errno.h.
1589 (resolve_device): If device is not initialized, call
1590 gomp_init_device on it.
1591 (gomp_map_lookup): New function.
1592 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
1593 Don't bump refcount if REFCOUNT_INFINITY. Handle
1594 GOMP_MAP_ALWAYS_TO_P.
1595 (get_kind): Rename is_openacc argument to short_mapkind.
1596 (gomp_map_pointer): Use gomp_map_lookup.
1597 (gomp_map_fields_existing): New function.
1598 (gomp_map_vars): Rename is_openacc argument to short_mapkind
1599 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
1600 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
1601 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
1602 Adjust for tgt->list changed type and copy_from living in there.
1603 (gomp_copy_from_async): Adjust for tgt->list changed type and
1604 copy_from living in there.
1605 (gomp_unmap_vars): Likewise.
1606 (gomp_update): Likewise. Rename is_openacc argument to
1607 short_mapkind. Don't fail if object is not mapped.
1608 (gomp_load_image_to_device): Initialize refcount to
1609 REFCOUNT_INFINITY.
1610 (gomp_target_fallback): New function.
1611 (gomp_get_target_fn_addr): Likewise.
1612 (GOMP_target): Adjust gomp_map_vars caller, use
1613 gomp_get_target_fn_addr and gomp_target_fallback.
1614 (GOMP_target_41): New function.
1615 (gomp_target_data_fallback): New function.
1616 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
1617 (GOMP_target_data_41): New function.
1618 (GOMP_target_update): Adjust gomp_update caller.
1619 (GOMP_target_update_41): New function.
1620 (gomp_exit_data, GOMP_target_enter_exit_data,
1621 gomp_target_task_fn, omp_target_alloc, omp_target_free,
1622 omp_target_is_present, omp_target_memcpy,
1623 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
1624 omp_target_associate_ptr, omp_target_disassociate_ptr,
1625 gomp_load_plugin_for_device): New functions.
1626 * task.c: Include gomp-constants.h. Include taskloop.c
1627 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
1628 (gomp_task_handle_depend): New function.
1629 (GOMP_task): Use it. Add priority argument. Use
1630 gomp-constant.h constants instead of hardcoded numbers.
1631 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
1632 (gomp_create_target_task): New function.
1633 (verify_children_queue, verify_taskgroup_queue,
1634 verify_task_queue): New functions.
1635 (gomp_task_run_pre): Call verify_*_queue functions.
1636 If an upcoming tied task is about to leave the sibling or
1637 taskgroup queues in an invalid state, adjust appropriately.
1638 Remove taskgroup argument. Add comments.
1639 (gomp_task_run_post_handle_dependers): Add comments.
1640 (gomp_task_run_post_remove_parent): Likewise.
1641 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
1642 (GOMP_taskwait): Likewise. Add comments.
1643 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
1644 problem such that the first non parent_depends_on task does not
1645 end up at the end of the children queue.
1646 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
1647 GOMP_TASK_UNDEFERRED.
1648 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
1649 * taskloop.c: New file.
1650 * testsuite/lib/libgomp.exp
1651 (check_effective_target_offload_device_nonshared_as): New proc.
1652 * testsuite/libgomp.c/affinity-2.c: New test.
1653 * testsuite/libgomp.c/doacross-1.c: New test.
1654 * testsuite/libgomp.c/doacross-2.c: New test.
1655 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
1656 Add map clause to target.
1657 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
1658 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
1659 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
1660 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
1661 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
1662 Likewise.
1663 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
1664 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
1665 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
1666 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
1667 not defined. Use those where needed.
1668 * testsuite/libgomp.c/for-4.c: New test.
1669 * testsuite/libgomp.c/for-5.c: New test.
1670 * testsuite/libgomp.c/for-6.c: New test.
1671 * testsuite/libgomp.c/linear-1.c: New test.
1672 * testsuite/libgomp.c/ordered-4.c: New test.
1673 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
1674 only allowed on the loop iterator.
1675 * testsuite/libgomp.c/pr66199-3.c: New test.
1676 * testsuite/libgomp.c/pr66199-4.c: New test.
1677 * testsuite/libgomp.c/reduction-7.c: New test.
1678 * testsuite/libgomp.c/reduction-8.c: New test.
1679 * testsuite/libgomp.c/reduction-9.c: New test.
1680 * testsuite/libgomp.c/reduction-10.c: New test.
1681 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
1682 map(tofrom:s).
1683 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
1684 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
1685 * testsuite/libgomp.c/target-11.c: New test.
1686 * testsuite/libgomp.c/target-12.c: New test.
1687 * testsuite/libgomp.c/target-13.c: New test.
1688 * testsuite/libgomp.c/target-14.c: New test.
1689 * testsuite/libgomp.c/target-15.c: New test.
1690 * testsuite/libgomp.c/target-16.c: New test.
1691 * testsuite/libgomp.c/target-17.c: New test.
1692 * testsuite/libgomp.c/target-18.c: New test.
1693 * testsuite/libgomp.c/target-19.c: New test.
1694 * testsuite/libgomp.c/target-20.c: New test.
1695 * testsuite/libgomp.c/target-21.c: New test.
1696 * testsuite/libgomp.c/target-22.c: New test.
1697 * testsuite/libgomp.c/target-23.c: New test.
1698 * testsuite/libgomp.c/target-24.c: New test.
1699 * testsuite/libgomp.c/target-25.c: New test.
1700 * testsuite/libgomp.c/target-26.c: New test.
1701 * testsuite/libgomp.c/target-27.c: New test.
1702 * testsuite/libgomp.c/taskloop-1.c: New test.
1703 * testsuite/libgomp.c/taskloop-2.c: New test.
1704 * testsuite/libgomp.c/taskloop-3.c: New test.
1705 * testsuite/libgomp.c/taskloop-4.c: New test.
1706 * testsuite/libgomp.c++/ctor-13.C: New test.
1707 * testsuite/libgomp.c++/doacross-1.C: New test.
1708 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
1709 Replace offload_device with offload_device_nonshared_as.
1710 * testsuite/libgomp.c++/for-12.C: New test.
1711 * testsuite/libgomp.c++/for-13.C: New test.
1712 * testsuite/libgomp.c++/for-14.C: New test.
1713 * testsuite/libgomp.c++/linear-1.C: New test.
1714 * testsuite/libgomp.c++/member-1.C: New test.
1715 * testsuite/libgomp.c++/member-2.C: New test.
1716 * testsuite/libgomp.c++/member-3.C: New test.
1717 * testsuite/libgomp.c++/member-4.C: New test.
1718 * testsuite/libgomp.c++/member-5.C: New test.
1719 * testsuite/libgomp.c++/ordered-1.C: New test.
1720 * testsuite/libgomp.c++/reduction-5.C: New test.
1721 * testsuite/libgomp.c++/reduction-6.C: New test.
1722 * testsuite/libgomp.c++/reduction-7.C: New test.
1723 * testsuite/libgomp.c++/reduction-8.C: New test.
1724 * testsuite/libgomp.c++/reduction-9.C: New test.
1725 * testsuite/libgomp.c++/reduction-10.C: New test.
1726 * testsuite/libgomp.c++/reference-1.C: New test.
1727 * testsuite/libgomp.c++/simd14.C: New test.
1728 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
1729 * testsuite/libgomp.c++/target-5.C: New test.
1730 * testsuite/libgomp.c++/target-6.C: New test.
1731 * testsuite/libgomp.c++/target-7.C: New test.
1732 * testsuite/libgomp.c++/target-8.C: New test.
1733 * testsuite/libgomp.c++/target-9.C: New test.
1734 * testsuite/libgomp.c++/target-10.C: New test.
1735 * testsuite/libgomp.c++/target-11.C: New test.
1736 * testsuite/libgomp.c++/target-12.C: New test.
1737 * testsuite/libgomp.c++/taskloop-1.C: New test.
1738 * testsuite/libgomp.c++/taskloop-2.C: New test.
1739 * testsuite/libgomp.c++/taskloop-3.C: New test.
1740 * testsuite/libgomp.c++/taskloop-4.C: New test.
1741 * testsuite/libgomp.c++/taskloop-5.C: New test.
1742 * testsuite/libgomp.c++/taskloop-6.C: New test.
1743 * testsuite/libgomp.c++/taskloop-7.C: New test.
1744 * testsuite/libgomp.c++/taskloop-8.C: New test.
1745 * testsuite/libgomp.c++/taskloop-9.C: New test.
1746 * testsuite/libgomp.fortran/affinity1.f90: New test.
1747 * testsuite/libgomp.fortran/affinity2.f90: New test.
1748
1f600fea
TV
17492015-10-13 Tom de Vries <tom@codesourcery.com>
1750
1751 PR tree-optimization/67476
1752 * testsuite/libgomp.c/autopar-3.c: New test.
1753 * testsuite/libgomp.c/autopar-4.c: New test.
1754 * testsuite/libgomp.c/autopar-5.c: New test.
1755 * testsuite/libgomp.c/autopar-6.c: New test.
1756 * testsuite/libgomp.c/autopar-7.c: New test.
1757 * testsuite/libgomp.c/autopar-8.c: New test.
1758
058a654b
JN
17592015-10-12 James Norris <jnorris@codesourcery.com>
1760
1761 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
1762 initializer.
1763
9e531d37
DM
17642015-10-09 David Malcolm <dmalcolm@redhat.com>
1765
1766 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
1767 using load_gcc_lib.
1768
113020dc
TS
17692015-10-02 Thomas Schwinge <thomas@codesourcery.com>
1770
1771 * oacc-ptx.h: Remove file, moving its content into...
1772 * config/nvptx/fortran.c: ... here...
1773 * config/nvptx/oacc-init.c: ..., here...
1774 * config/nvptx/oacc-parallel.c: ..., and here.
1775 * config/nvptx/openacc.f90: New file.
1776 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
1777 (link_ptx): Don't link in predefined bits of PTX code.
1778
cc3cd79b
NS
17792015-09-30 Nathan Sidwell <nathan@codesourcery.com>
1780 Bernd Schmidt <bernds@codesourcery.com>
1781
1782 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
1783 (struct targ_ptx_obj): New.
1784 (nvptx_tdata): Move earlier, change data format.
1785 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
1786 objects.
1787 (GOMP_OFFLOAD_load_image): Adjust.
1788
4e2a5450
TS
17892015-09-30 Thomas Schwinge <thomas@codesourcery.com>
1790
1791 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
1792 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1793 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1794 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1795 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1796 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1797 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1798 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1799 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1800 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1801 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1802 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1803 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1804 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1805 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1806 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1807 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1808 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1809 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1810 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1811 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1812 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1813 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1814 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1815 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1816 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1817 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1818 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1819 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1820 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1821 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1822 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1823 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1824 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1825 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1826 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1827 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1828 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1829 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1830 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1831 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1832 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1833 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1834 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1835 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1836 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1837 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1838 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1839 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1840 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1841 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1842 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1843 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1844 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1845 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1846 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1847 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1848 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1849 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1850 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1851 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1852 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1853 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1854
164453bb
NS
18552015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1856
1857 * oacc-init.c (acc_on_device): Force optimization level.
1858
a12a0437
NS
18592015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1860
1861 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
1862 (cuda_errlist): Delete.
1863 (cuda_error): Reimplement.
1864
3e32ee19
NS
18652015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1866
1867 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
1868 array.
1869 * libgomp.map (GOACC_parallel_keyed): New.
1870 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
1871 all callers.
1872 (GOACC_parallel_keyed): New interface. Lose geometry arguments
1873 and take keyed varargs list. Adjust call to exec_func.
1874 (GOACC_parallel): Force host fallback.
1875 * libgomp_g.h (GOACC_parallel): Remove.
1876 (GOACC_parallel_keyed): Declare.
1877 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
1878 (stuct targ_gn_descriptor): Replace name field with launch field.
1879 (nvptx_exec): Lose separate geometry args, take array. Process
1880 dynamic dimensions and adjust.
1881 (struct nvptx_tdata): Replace fn_names field with fn_descs.
1882 (GOMP_OFFLOAD_load_image): Adjust for change in function table
1883 data.
1884 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
1885 passing.
1886 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
1887 passing.
1888
6bb4c3e2
CLT
18892015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1890
1891 PR libgomp/67141
1892 * oacc-int.h (goacc_host_init): Add declaration.
1893 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
1894 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
1895
74032f47 18962015-09-08 Aditya Kumar <hiraditya@msn.com>
34b18169 1897 Sebastian Pop <s.pop@samsung.com>
74032f47
AK
1898
1899 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
1900 match o/p.
1901 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
1902 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
1903 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
1904 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
1905 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1906
97875f4a
JJ
19072015-09-03 Jakub Jelinek <jakub@redhat.com>
1908
1909 * configure.tgt: Add missing ;; in between nvptx and rtems
1910 snippets.
1911
06441dd5
SH
19122015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1913
1914 * config/posix/pool.h (gomp_adjust_thread_attr): New.
1915 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
1916 (gomp_thread_pool_reservoir): Add priority member.
1917 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
1918 priority.
1919 (parse_thread_pools): Likewise.
1920 * team.c (gomp_team_start): Call configuration provided
1921 gomp_adjust_thread_attr(). Destroy thread attributes if
1922 necessary.
1923 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
1924
66c59f92
SH
19252015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1926
1927 * config/posix/pool.h: New.
1928 * config/rtems/pool.h: Likewise.
1929 * config/rtems/proc.c: Likewise.
1930 * libgomp.h (gomp_thread_destructor): Declare.
1931 * team.c: Include configuration provided "pool.h".
1932 (gomp_get_thread_pool): Define in configuration.
1933 (gomp_team_end): Call configuration defined
1934 gomp_release_thread_pool().
1935
13c41b2e
SH
19362015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1937
1938 * config/rtems/bar.c: New.
1939 * config/rtems/bar.h: Likewise.
1940 * config/rtems/mutex.c: Likewise.
1941 * config/rtems/mutex.h: Likewise.
1942 * config/rtems/sem.c: Likewise.
1943 * config/rtems/sem.h: Likewise.
1944 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
1945 <sys/lock.h> header file.
1946 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
1947 supported by Newlib.
1948 * configure: Regenerate.
1949
7892ec67
SH
19502015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1951
1952 * team.c (gomp_new_thread_pool): Delete and move content to ...
1953 (gomp_get_thread_pool): ... new function. Allocate and
1954 initialize thread pool on demand.
1955 (get_last_team): Use gomp_get_thread_pool().
1956 (gomp_team_start): Delete thread pool initialization.
1957
1b96e9a4
TV
19582015-09-03 Tom de Vries <tom@codesourcery.com>
1959
1960 PR tree-optimization/65637
1961 * testsuite/libgomp.c/autopar-2.c: New test.
1962
3ff2d74e
TV
19632015-08-29 Tom de Vries <tom@codesourcery.com>
1964
1965 PR tree-optimization/46193
1966 * testsuite/libgomp.c/pr46193.c: New test.
1967
2a21ff19
NS
19682015-08-24 Nathan Sidwell <nathan@codesourcery.com>
1969
1970 libgomp/
1971 * libgomp.map: Add 4.0.2 version.
1972 * target.c (offload_image_descr): Add version field.
1973 (gomp_load_image_to_device): Add version argument. Adjust plugin
1974 call. Improve load mismatch diagnostic.
1975 (gomp_unload_image_from_device): Add version argument. Adjust plugin
1976 call.
1977 (GOMP_offload_regster): Make stub function, move bulk to ...
1978 (GOMP_offload_register_ver): ... here. Process version argument.
1979 (GOMP_offload_unregister): Make stub function, move bulk to ...
1980 (GOMP_offload_unregister_ver): ... here. Process version argument.
1981 (gomp_init_device): Process version field.
1982 (gomp_unload_device): Process version field.
1983 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
1984 macros. Check plugin version.
1985 * libgomp.h (gomp_device_descr): Add version function field. Adjust
1986 loader and unloader types.
1987 * oacc-host.c: Include gomp-constants.h.
1988 (host_version): New.
1989 (host_load_image, host_unload_image): Adjust.
1990 (host_dispatch): Add host_version.
1991 * plugin/plugin-nvptx.c: Include gomp-constants.h.
1992 (GOMP_OFFLOAD_version): New.
1993 (GOMP_OFFLOAD_load_image): Add version arg and check it.
1994 (GOMP_OFFLOAD_unload_image): Likewise.
1995 * plugin/plugin-host.c: Include gomp-constants.h.
1996 (GOMP_OFFLOAD_version): New.
1997 (GOMP_OFFLOAD_load_image): Add version arg.
1998 (GOMP_OFFLOAD_unload_image): Likewise.
1999
1358a747
TV
20002015-08-24 Tom de Vries <tom@codesourcery.com>
2001
2002 PR tree-optimization/65468
2003 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
2004
6be5c241
TV
20052015-08-24 Tom de Vries <tom@codesourcery.com>
2006
2007 PR tree-optimization/65468
2008 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
2009
bfe7ac89
JV
20102015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
2011
2012 PR libgomp/66761
2013 PR libgomp/67303
2014 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
2015 (gomp_iter_guided_next): Idem.
2016 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
2017 (gomp_iter_ull_guided_next): Idem.
2018 * config/linux/wait.h (do_spin): Idem.
2019
b97e78b7
TS
20202015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2021
2022 * libgomp-plugin.h (enum offload_target_type): Remove
2023 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
2024 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
2025 * openacc.h (enum acc_device_t): Likewise.
2026 * openacc_lib.h: Likewise.
2027 * oacc-init.c (name_of_acc_device_t): Don't handle it.
2028 (acc_on_device): Just use __builtin_acc_on_device.
2029 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
2030 of acc_on_device builtin.
2031 * plugin/plugin-host.h: Remove file.
2032 * plugin/plugin-host.c: Likewise, but salvage some content into...
2033 * oacc-host.c: ... this file.
2034 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
2035 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
2036 * Makefile.in: Regenerate.
2037 * configure: Likewise.
2038 * testsuite/lib/libgomp.exp
2039 (check_effective_target_openacc_host_nonshm_selected): Remove.
2040 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
2041 ACC_DEVICE_TYPE=host_nonshm.
2042 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2043 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2044 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
2045 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2046 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2047 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2048
44a7d18d
TS
20492015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2050 Jakub Jelinek <jakub@redhat.com>
2051
2052 * config/nvptx/affinity.c: New file.
2053 * config/nvptx/alloc.c: Likewise.
2054 * config/nvptx/bar.c: Likewise.
2055 * config/nvptx/barrier.c: Likewise.
2056 * config/nvptx/critical.c: Likewise.
2057 * config/nvptx/env.c: Likewise.
2058 * config/nvptx/error.c: Likewise.
2059 * config/nvptx/fortran.c: Likewise.
2060 * config/nvptx/iter.c: Likewise.
2061 * config/nvptx/iter_ull.c: Likewise.
2062 * config/nvptx/libgomp-plugin.c: Likewise.
2063 * config/nvptx/lock.c: Likewise.
2064 * config/nvptx/loop.c: Likewise.
2065 * config/nvptx/loop_ull.c: Likewise.
2066 * config/nvptx/mutex.c: Likewise.
2067 * config/nvptx/oacc-async.c: Likewise.
2068 * config/nvptx/oacc-cuda.c: Likewise.
2069 * config/nvptx/oacc-host.c: Likewise.
2070 * config/nvptx/oacc-init.c: Likewise.
2071 * config/nvptx/oacc-mem.c: Likewise.
2072 * config/nvptx/oacc-parallel.c: Likewise.
2073 * config/nvptx/oacc-plugin.c: Likewise.
2074 * config/nvptx/omp-lock.h: Likewise.
2075 * config/nvptx/ordered.c: Likewise.
2076 * config/nvptx/parallel.c: Likewise.
2077 * config/nvptx/proc.c: Likewise.
2078 * config/nvptx/ptrlock.c: Likewise.
2079 * config/nvptx/sections.c: Likewise.
2080 * config/nvptx/sem.c: Likewise.
2081 * config/nvptx/single.c: Likewise.
2082 * config/nvptx/splay-tree.c: Likewise.
2083 * config/nvptx/target.c: Likewise.
2084 * config/nvptx/task.c: Likewise.
2085 * config/nvptx/team.c: Likewise.
2086 * config/nvptx/time.c: Likewise.
2087 * config/nvptx/work.c: Likewise.
2088 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
2089 * configure: Regenerate.
2090 * configure.tgt (config_path): Set to "nvptx" for target
2091 nvptx*-*-*.
2092
96a2d174
TS
20932015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2094
2095 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
2096
9ebddeb0
NS
20972015-08-03 Nathan Sidwell <nathan@codesourcery.com>
2098
2099 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
2100 (cuda_errlist): Constify.
2101 (errmsg): Move into ...
2102 (cuda_error): ... here. Make smaller.
2103 (_XSTR, _STR): Delete.
2104 (cuda_synames): Delete.
2105 (verify_device_library): Delete.
2106 (nvptx_init): Don't call it.
2107
12efb1d7
TV
21082015-07-28 Tom de Vries <tom@codesourcery.com>
2109
2110 * testsuite/libgomp.c/uns-outer-4.c: New test.
2111
710ee218
CP
21122015-07-24 Cesar Philippidis <cesar@codesourcery.com>
2113
2114 * testsuite/libgomp.c/pr66714.c: New test.
2115
27c4ac7d
MB
21162015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
2117
2118 PR libgomp/66950
2119 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
2120 (fib_ref): New function.
2121 (fib): Correct corner cases in the recursion.
2122 (main): Replace the non-simd loop with fib_ref call.
2123 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
2124 subroutine.
2125 (fibonacci): Lower the parameter N to 30. Correct accordingly check
2126 for the last array element value. Replace the non-simd loop with
2127 fib_ref call. Remove redundant b_ref array. Remove the comparison
2128 of the last array element with according Fibonacci sequence element.
2129 (fib): Correct corner cases in the recursion.
2130
22be2349
NS
21312015-07-21 Nathan Sidwell <nathan@codesourcery.com>
2132
2133 * target.c (gomp_offload_image_to_device): Rename to ...
2134 (gomp_load_image_to_device): ... here.
2135 (GOMP_offload_register): Adjust call.
2136 (gomp_init_device): Likewise.
2137 (gomp_unload_image_from_device): New. Broken out of ...
2138 (GOMP_offload_unregister): ... here. Call it.
2139 (gomp_unload_device): New.
2140 * libgomp.h (gomp_unload_device): Declare.
2141 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
2142 mem maps.
2143
f3e9a059
NS
21442015-07-20 Nathan Sidwell <nathan@codesourcery.com>
2145
a091118d
NS
2146 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
2147 wait=-specific if.
2148 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
2149 !=0 condition.
2150 (goacc_waits): Move !num_waits handling to ...
2151 (GOACC_wait): ... here, the only caller that might have zero waits.
2152
f3e9a059
NS
2153 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
2154 (struct ptx_image_data): Move earlier, add fns field.
2155 (struct ptx_device): Add images and image_lock fields.
2156 (ptx_images, ptx_image_lock): Delete.
2157 (nvptx_open_device): Initialize images and image_lock fields.
2158 (nvptx_close_device): Destroy image_lock.
2159 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
2160 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
2161 fields.
2162
afb2d80b
NS
21632015-07-17 Nathan Sidwell <nathan@codesourcery.com>
2164
896c28a7
NS
2165 * target.c (GOMP_offload_register): Use int for device type arg.
2166 (GOMP_offload_unregister): Likewise.
2167
ebe4a560
NS
2168 * target.c (struct_offload_image_descr): Constify host_table.
2169 (gomp_offload_image_to_device): Likewise.
2170 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
2171
afb2d80b
NS
2172 * libgomp.h (gomp_device_descr): Constify target data arguments.
2173 * target.c (struct offload_image_descr): Constify target_data.
2174 (gomp_offload_image_to_device): Likewise.
2175 (GOMP_offload_register): Likewise.
2176 (GOMP_offload_unrefister): Likewise.
2177 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
2178 GOMP_OFFLOAD_unload_image): Constify target data.
2179 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
2180 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
2181
a4cb876d
NS
21822015-07-16 Nathan Sidwell <nathan@codesourcery.com>
2183
2184 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
2185 Workaround driver library const error.
2186 (struct nvptx_tdata, nvptx_tdata_t): New.
2187 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
2188 type.
2189
28ef6a27
MB
21902015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
2191
2192 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
2193 of EPS parameter from integer to real.
2194 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
2195 type of EPS parameter from integer to real.
2196
6dba0113
SH
21972015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
2198
2199 * team.c (get_last_team): New.
2200 (gomp_new_team): Recycle last non-nested team if possible.
2201 (gomp_team_end): Move team work share list free lock destruction
2202 to ...
2203 (free_team): ... here.
2204
4c1cb4da
MB
22052015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
2206
2207 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
2208 and ref from int to double. Replaced their comparison with
2209 an inequality of their difference and EPS.
2210 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
2211 comparison of pri and a reference number with an inequality of their
2212 difference and EPS.
2213 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
2214 the comparison of sum and sum_ref with an inequality of their
2215 difference and EPS.
2216 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
2217 the comparison of pri and a reference number with an inequality of
2218 their difference and EPS.
2219
343587dc
MB
22202015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
2221
2222 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
2223 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
2224 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
2225 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
2226 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
2227 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
2228 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
2229 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
2230 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
2231 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
2232 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
2233 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
2234 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
2235 variables.
2236 (vec_mult): Likewise. Add #pragma omp taskwait.
2237 (main): Adjust caller.
2238 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
2239 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
2240 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
2241 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
2242 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
2243 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
2244 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
2245 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
2246 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
2247 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
2248 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
2249 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
2250 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
2251 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
2252 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
2253 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
2254 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
2255 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
2256 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
2257 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
2258 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
2259 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
2260 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
2261 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
2262 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
2263 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
2264 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
2265 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
2266 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
2267 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
2268 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
2269 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
2270 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
2271 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
2272 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
2273 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
2274 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
2275 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
2276 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
2277 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
2278 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
2279 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
2280 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
2281 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
2282 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
2283 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
2284 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
2285 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
2286 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
2287 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
2288 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
2289 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
2290 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
2291 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
2292 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
2293 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
2294 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
2295 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
2296 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
2297 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
2298 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
2299 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
2300 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
2301 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
2302 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
2303 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
2304 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
2305 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
2306 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
2307 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
2308 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
2309 (vec_mult): Add !$omp taskwait.
2310 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
2311 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
2312 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
2313 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
2314 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
2315 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
2316 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
2317 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
2318 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
2319 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
2320 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
2321 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
2322 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
2323 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
2324 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
2325 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
2326 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
2327 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
2328 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
2329 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
2330 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
2331 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
2332 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
2333 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
2334 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
2335 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
2336 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
2337 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
2338 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
2339 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
2340 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
2341 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
2342 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
2343 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
2344 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
2345 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
2346 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
2347 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
2348 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
2349 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
2350 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
2351 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
2352 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
2353 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
2354 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
2355 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
2356 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
2357 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
2358 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
2359 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
2360 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
2361 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
2362 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
2363 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
2364 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
2365 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
2366 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
2367 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
2368 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
2369 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
2370 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
2371 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
2372 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
2373 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
2374 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
2375 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
2376 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
2377
9f620bf1
TV
23782015-07-10 Tom de Vries <tom@codesourcery.com>
2379
2380 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
2381 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
2382
a92defda
TS
23832015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2384
2385 PR libgomp/65099
2386 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
2387 in a 64-bit configuration.
2388 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
2389 offloading testing if no such device is available.
2390 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2391 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2392
cadb53a5
TV
23932015-07-08 Tom de Vries <tom@codesourcery.com>
2394
2395 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
2396 second call to f.
2397 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2398
712cb0bb
TV
23992015-07-07 Tom de Vries <tom@codesourcery.com>
2400
2401 PR tree-optimization/66642
2402 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
2403 iteration count case.
2404 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
2405 function, factor out of ...
2406 (main): ... here. Test low iteration count case.
2407
e5210c77
SH
24082015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
2409
2410 * libgomp.h (gomp_thread_pool): Comment last_team field.
2411
f70360e7
UB
24122015-07-02 Uros Bizjak <ubizjak@gmail.com>
2413
2414 * testsuite/libgomp.c++/pr66702-1.C: Require
2415 vect_simd_clones effective target.
2416 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
2417
b451c271
TV
24182015-06-30 Tom de Vries <tom@codesourcery.com>
2419
2420 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
2421 already set. Use DEFAULT_CFLAGS in dg-runtest.
2422 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
2423 "-O2".
2424
f8e89d9f
TV
24252015-06-30 Tom de Vries <tom@codesourcery.com>
2426
2427 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
2428 already set. Use DEFAULT_CFLAGS in dg-runtest.
2429 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
2430 * testsuite/libgomp.c++/pr64824.C: Same.
2431 * testsuite/libgomp.c++/pr64868.C: Same.
2432 * testsuite/libgomp.c++/pr66199-1.C: Same.
2433 * testsuite/libgomp.c++/pr66199-2.C: Same.
2434 * testsuite/libgomp.c++/target-2.C: Same.
2435 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
2436 -std=<standard> option.
2437 * testsuite/libgomp.c++/udr-11.C: Same.
2438 * testsuite/libgomp.c++/udr-12.C: Same.
2439 * testsuite/libgomp.c++/udr-13.C: Same.
2440 * testsuite/libgomp.c++/udr-14.C: Same.
2441 * testsuite/libgomp.c++/udr-15.C: Same.
2442 * testsuite/libgomp.c++/udr-16.C: Same.
2443 * testsuite/libgomp.c++/udr-17.C: Same.
2444 * testsuite/libgomp.c++/udr-18.C: Same.
2445 * testsuite/libgomp.c++/udr-19.C: Same.
2446 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
2447 * testsuite/libgomp.c++/simd-1.C: Same.
2448 * testsuite/libgomp.c++/simd-2.C: Same.
2449 * testsuite/libgomp.c++/simd-3.C: Same.
2450 * testsuite/libgomp.c++/simd-4.C: Same.
2451 * testsuite/libgomp.c++/simd-5.C: Same.
2452 * testsuite/libgomp.c++/simd-6.C: Same.
2453 * testsuite/libgomp.c++/simd-7.C: Same.
2454 * testsuite/libgomp.c++/simd-8.C: Same.
2455 * testsuite/libgomp.c++/simd-9.C: Same.
2456 * testsuite/libgomp.c++/simd10.C: Same.
2457 * testsuite/libgomp.c++/simd11.C: Same.
2458 * testsuite/libgomp.c++/simd12.C: Same.
2459 * testsuite/libgomp.c++/simd13.C: Same.
2460
3446fe48
JJ
24612015-06-30 Jakub Jelinek <jakub@redhat.com>
2462
2463 PR middle-end/66702
2464 * testsuite/libgomp.c++/pr66702-1.C: New test.
2465 * testsuite/libgomp.c++/pr66702-2.C: New test.
2466
8a36714a
TV
24672015-06-30 Tom de Vries <tom@codesourcery.com>
2468
2469 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
2470 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
2471 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
2472 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
2473
4f75d608
TV
24742015-06-30 Tom de Vries <tom@codesourcery.com>
2475
2476 PR tree-optimization/66652
2477 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
2478 using restrict pointers.
2479 (main): Add arguments to calls to f.
2480 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2481
6d9d1eeb
AT
24822015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
2483
2484 * configure.ac: Fix check for header <sys/sysctl.h>.
2485 * configure: Regenerate.
2486 * config.h.in: Likewise.
2487
1222f22b
TV
24882015-06-23 Tom de Vries <tom@codesourcery.com>
2489
2490 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
2491 abort.
2492 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
2493
d7efbbf6
TS
24942015-06-19 Thomas Schwinge <thomas@codesourcery.com>
2495
bfcd036f
TS
2496 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
2497 acc_device_nvidia.
2498
d7efbbf6
TS
2499 PR libgomp/66518
2500 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
2501 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2502
d7bfc710
TV
25032015-06-15 Tom de Vries <tom@codesourcery.com>
2504
2505 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
2506 dg-additional-options for any remaining options.
2507 * testsuite/libgomp.c/atomic-2.c: Same.
2508 * testsuite/libgomp.c/atomic-4.c: Same.
2509 * testsuite/libgomp.c/atomic-5.c: Same.
2510 * testsuite/libgomp.c/atomic-6.c: Same.
2511 * testsuite/libgomp.c/autopar-1.c: Same.
2512 * testsuite/libgomp.c/copyin-1.c: Same.
2513 * testsuite/libgomp.c/copyin-2.c: Same.
2514 * testsuite/libgomp.c/copyin-3.c: Same.
2515 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
2516 * testsuite/libgomp.c/nestedfn-5.c: Same.
2517 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
2518 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
2519 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
2520 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2521 * testsuite/libgomp.c/pr32362-1.c: Same.
2522 * testsuite/libgomp.c/pr32362-2.c: Same.
2523 * testsuite/libgomp.c/pr32362-3.c: Same.
2524 * testsuite/libgomp.c/pr39591-1.c: Same.
2525 * testsuite/libgomp.c/pr39591-2.c: Same.
2526 * testsuite/libgomp.c/pr39591-3.c: Same.
2527 * testsuite/libgomp.c/pr58392.c: Same.
2528 * testsuite/libgomp.c/pr58756.c: Same.
2529 * testsuite/libgomp.c/simd-1.c: Same.
2530 * testsuite/libgomp.c/simd-10.c: Same.
2531 * testsuite/libgomp.c/simd-11.c: Same.
2532 * testsuite/libgomp.c/simd-12.c: Same.
2533 * testsuite/libgomp.c/simd-13.c: Same.
2534 * testsuite/libgomp.c/simd-14.c: Same.
2535 * testsuite/libgomp.c/simd-15.c: Same.
2536 * testsuite/libgomp.c/simd-2.c: Same.
2537 * testsuite/libgomp.c/simd-3.c: Same.
2538 * testsuite/libgomp.c/simd-4.c: Same.
2539 * testsuite/libgomp.c/simd-5.c: Same.
2540 * testsuite/libgomp.c/simd-6.c: Same.
2541 * testsuite/libgomp.c/simd-7.c: Same.
2542 * testsuite/libgomp.c/simd-8.c: Same.
2543 * testsuite/libgomp.c/simd-9.c: Same.
2544
fb5b5352
TV
25452015-06-15 Tom de Vries <tom@codesourcery.com>
2546
2547 * testsuite/libgomp.c/pr35625.c: Fix typo.
2548
ca431bef
TV
25492015-06-15 Tom de Vries <tom@codesourcery.com>
2550
2551 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
2552 in dg-options.
2553 * testsuite/libgomp.c/atomic-3.c: Same.
2554 * testsuite/libgomp.c/debug-1.c: Same.
2555 * testsuite/libgomp.c/nqueens-1.c: Same.
2556 * testsuite/libgomp.c/pr26171.c: Same.
2557 * testsuite/libgomp.c/pr48591.c: Same.
2558 * testsuite/libgomp.c/pr64824.c: Same.
2559 * testsuite/libgomp.c/pr64868.c: Same.
2560 * testsuite/libgomp.c/pr66133.c: Same.
2561 * testsuite/libgomp.c/pr66199-1.c: Same.
2562 * testsuite/libgomp.c/pr66199-2.c: Same.
2563 * testsuite/libgomp.c/target-8.c: Same.
2564
0d8a9e20
TV
25652015-06-15 Tom de Vries <tom@codesourcery.com>
2566
2567 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
2568 -std={gnu99,c99}.
2569 * testsuite/libgomp.c/for-1.c: Same.
2570 * testsuite/libgomp.c/for-2.c: Same.
2571 * testsuite/libgomp.c/for-3.c: Same.
2572 * testsuite/libgomp.c/pr35625.c: Same.
2573 * testsuite/libgomp.c/pr39154.c: Same.
2574 * testsuite/libgomp.c/simd-16.c: Same.
2575 * testsuite/libgomp.c/simd-17.c: Same.
2576
a6860be9
TV
25772015-06-13 Tom de Vries <tom@codesourcery.com>
2578
2579 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
2580
ab3306d2
TV
25812015-06-13 Tom de Vries <tom@codesourcery.com>
2582
2583 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
2584 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2585 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
2586 (N): Define.
2587 (main): Use N instead of hardcoded constants.
2588
7c82d827
TV
25892015-06-05 Tom de Vries <tom@codesourcery.com>
2590
2591 merge from gomp4 branch:
2592 2015-05-28 Tom de Vries <tom@codesourcery.com>
2593
2594 PR tree-optimization/65443
2595 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
2596 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
2597 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
2598
c469078d
BRF
25992015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2600
2601 * testsuite/libgomp.graphite/bounds.c: Adjust for
2602 cleanup-tree-dump removal.
2603 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
2604 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2605 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2606 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
2607 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2608 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2609 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2610 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2611 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2612 * testsuite/libgomp.graphite/pr41118.c: Likewise.
2613
bb3caa35
UB
26142015-05-28 Uros Bizjak <ubizjak@gmail.com>
2615
2616 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
2617 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
2618 (futex_wake) [!__x86_64__]: Ditto.
2619
9fb5fd44
JB
26202015-05-28 Julian Brown <julian@codesourcery.com>
2621
2622 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
2623 function comment. Only call gomp_fatal if new argument is true.
2624 (acc_dev_num_out_of_range): New function.
2625 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
2626 acc_dev_num_out_of_range as appropriate.
2627 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
bb3caa35
UB
2628 (acc_get_device_num, acc_set_device_num): Update calls to
2629 resolve_device.
9fb5fd44
JB
2630 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
2631 output.
2632
32eaed93
JB
26332015-05-28 Julian Brown <julian@codesourcery.com>
2634
2635 PR libgomp/65742
32eaed93
JB
2636 * oacc-init.c (plugin/plugin-host.h): Include.
2637 (acc_on_device): Check whether we're in an offloaded region for
2638 host_nonshm
2639 plugin. Don't use __builtin_acc_on_device.
2640 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
2641 nonshm_exec flag in thread-local data.
2642 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
2643 data for host_nonshm plugin.
2644 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
2645 for host_nonshm plugin.
2646 * plugin/plugin-host.h: New.
2647
ea023bcf
UB
26482015-05-27 Uros Bizjak <ubizjak@gmail.com>
2649
8ed501f1
UB
2650 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
2651
26522015-05-27 Uros Bizjak <ubizjak@gmail.com>
2653
2654 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
2655 Declare as int.
2656 (FUTEX_PRIVATE_FLAG): Remove L suffix.
2657 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
2658 Declare as int.
2659
26602015-05-27 Uros Bizjak <ubizjak@gmail.com>
2661
bb3caa35 2662 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
ea023bcf 2663
1716efeb
CLT
26642015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
2665
2666 * target.c (gomp_map_pointer): New function abstracting out
2667 GOMP_MAP_POINTER handling.
2668 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
2669 gomp_map_pointer().
2670
41b37d5e
JJ
26712015-05-19 Jakub Jelinek <jakub@redhat.com>
2672
2673 PR middle-end/66199
2674 * testsuite/libgomp.c/pr66199-1.c: New test.
2675 * testsuite/libgomp.c/pr66199-2.c: New test.
2676 * testsuite/libgomp.c++/pr66199-1.C: New test.
2677 * testsuite/libgomp.c++/pr66199-2.C: New test.
2678 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
2679 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
2680
c8319826
JB
26812015-05-19 Julian Brown <julian@codesourcery.com>
2682
2683 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
2684 on cuInit failure.
2685
b37dddbc
JJ
26862015-05-13 Jakub Jelinek <jakub@redhat.com>
2687
2688 PR middle-end/66133
2689 * testsuite/libgomp.c/pr66133.c: New test.
2690
55fba601
MH
26912015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2692
2693 * Makefile.in: Regenerated with automake-1.11.6.
2694 * aclocal.m4: Likewise.
2695 * config.h.in: Likewise.
2696 * configure: Likewise.
2697 * testsuite/Makefile.in: Likewise.
2698
1be0899d
JM
26992015-05-08 Jason Merrill <jason@redhat.com>
2700
2701 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
2702 _Complex.
2703
2704 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
2705
d2463960
JB
27062015-05-06 Julian Brown <julian@codesourcery.com>
2707
2708 * oacc-init.c (acc_device_lock): Add explanatory comment.
2709 (resolve_device): Add comment about locking requirement.
2710 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
2711 gomp_init_device and gomp_fini_device calls.
2712 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
2713 (acc_get_device_num, acc_set_device_num): Add locking around
2714 resolve_device and gomp_init_device calls.
2715
e38fdba4
JB
27162015-05-06 Julian Brown <julian@codesourcery.com>
2717
2718 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
2719 goacc_thread_lock on error paths.
2720 * oacc-mem.c (lookup_host): Remove locking from function. Note
2721 locking requirement for caller in function comment.
2722 (lookup_dev): Likewise.
2723 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
2724 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
2725 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
2726 Add locking.
2727
ae8ffbbb
TS
27282015-05-05 Thomas Schwinge <thomas@codesourcery.com>
2729
2730 PR testsuite/65205
2731 PR libgomp/65993
2732 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
2733 don't expect "0x" prefix for "%p" format specifier, don't expect
2734 "(nil)" for NULL pointer.
2735 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2736 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2737 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2738 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2739 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2740 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2741 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2742 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2743 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2744 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2745 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2746 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2747 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2748 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2749 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2750 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2751 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2752 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2753 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2754 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2755 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2756 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2757 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2758 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2759 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2760 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2761 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2762 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2763 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
2764 accurately specify what we're looking for.
2765 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2766 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2767 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2768 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2769 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2770
1309f1d2
JN
27712015-04-30 James Norris <jnorris@codesourcery.com>
2772
2773 PR testsuite/65205
2774 * testsuite/lib/libgomp.exp
2775 (check_effective_target_openacc_host_selected)
2776 (check_effective_target_openacc_host_nonshm_selected): New
2777 procedures.
2778 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
2779 dg-shouldfail.
2780 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
2781 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
2782 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2783 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2784 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2785 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2786 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2787 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2788 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2789 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2790 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2791 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2792 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2793 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2794 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2795 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2796 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2797 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2798 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2799 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2800 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2801 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2802 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2803 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2804 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2805 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2806 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2807 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2808 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2809 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2810 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2811 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2812 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2813 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2814 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2815 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2816 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2817 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2818 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2819 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2820 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2821 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2822 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2823
d93bdab5
JB
28242015-04-08 Julian Brown <julian@codesourcery.com>
2825
2826 * libgomp.h (target_mem_desc: Remove mem_map field.
2827 (acc_dispatch_t): Remove open_device_func, close_device_func,
2828 get_device_num_func, set_device_num_func, target_data members.
2829 Change create_thread_data_func argument to device number instead of
2830 generic pointer.
2831 * oacc-async.c (assert.h): Include.
2832 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
2833 (acc_wait_all, acc_wait_all_async): Use current host thread's
2834 active device, not base_dev.
2835 * oacc-cuda.c (acc_get_current_cuda_device)
2836 (acc_get_current_cuda_context, acc_get_cuda_stream)
2837 (acc_set_cuda_stream): Likewise.
2838 * oacc-host.c (host_dispatch): Don't set open_device_func,
2839 close_device_func, get_device_num_func or set_device_num_func.
2840 * oacc-init.c (base_dev, init_key): Remove.
2841 (cached_base_dev): New.
2842 (name_of_acc_device_t): New.
2843 (acc_init_1): Initialise default-numbered device, not zeroth.
2844 (acc_shutdown_1): Close all devices of a given type.
2845 (goacc_destroy_thread): Don't use base_dev.
2846 (lazy_open, lazy_init, lazy_init_and_open): Remove.
2847 (goacc_attach_host_thread_to_device): New.
2848 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
2849 (acc_get_num_devices): Don't use base_dev.
2850 (acc_set_device_type): Reimplement.
2851 (acc_get_device_type): Don't use base_dev.
2852 (acc_get_device_num): Tweak logic.
2853 (acc_set_device_num): Likewise.
2854 (acc_on_device): Use acc_get_device_type.
2855 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
2856 (goacc_lazy_initialize): Reimplement with acc_init and
2857 goacc_attach_host_thread_to_device.
2858 * oacc-int.h (goacc_thread): Add base_dev field.
2859 (base_dev): Remove extern declaration.
2860 (goacc_attach_host_thread_to_device): Add prototype.
2861 * oacc-mem.c (acc_malloc): Use current thread's device instead of
2862 base_dev.
2863 (acc_free): Likewise.
2864 (acc_memcpy_to_device): Likewise.
2865 (acc_memcpy_from_device): Likewise.
2866 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
2867 goacc_lazy_initialize (throughout).
2868 (GOACC_parallel): Use tgt_offset to locate target functions.
2869 * target.c (gomp_map_vars): Don't set tgt->mem_map.
2870 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
2871 (gomp_load_plugin_for_device): Remove open_device, close_device,
2872 get_device_num, set_device_num openacc hook initialisation. Don't set
2873 openacc.target_data.
2874 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
2875 (GOMP_OFFLOAD_openacc_close_device)
2876 (GOMP_OFFLOAD_openacc_get_device_num)
2877 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
2878 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
2879 to int.
2880 * plugin/plugin-nvptx.c (ptx_inited): Remove.
2881 (instantiated_devices, ptx_dev_lock): New.
2882 (struct ptx_image_data): New.
2883 (ptx_devices, ptx_images, ptx_image_lock): New.
2884 (fini_streams_for_device): Reorder cuStreamDestroy call.
2885 (nvptx_get_num_devices): Remove forward declaration.
2886 (nvptx_init): Change return type to bool.
2887 (nvptx_fini): Remove.
2888 (nvptx_attach_host_thread_to_device): New.
2889 (nvptx_open_device): Return struct ptx_device* instead of void*.
2890 (nvptx_close_device): Change argument type to struct ptx_device*,
2891 return type to void.
2892 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
2893 (kernel_target_data, kernel_host_table): Remove static globals.
2894 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
2895 (GOMP_OFFLOAD_init_device): Reimplement.
2896 (GOMP_OFFLOAD_fini_device): Likewise.
2897 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
2898 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
2899 (GOMP_OFFLOAD_host2dev): Use ORD argument.
2900 (GOMP_OFFLOAD_openacc_open_device)
2901 (GOMP_OFFLOAD_openacc_close_device)
2902 (GOMP_OFFLOAD_openacc_set_device_num)
2903 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
2904 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
2905 (device number).
2906
2907 testsuite/
2908 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
2909
a51df54e
IV
29102015-04-06 Ilya Verbin <ilya.verbin@intel.com>
2911
2912 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
2913 * libgomp.h (struct gomp_memory_mapping): Remove.
2914 (struct target_mem_desc): Change type of mem_map from
2915 gomp_memory_mapping * to splay_tree_s *.
2916 (struct gomp_device_descr): Remove register_image_func, get_table_func.
2917 Add load_image_func, unload_image_func.
2918 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
2919 Remove offload_regions_registered.
2920 (gomp_init_tables): Remove.
2921 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2922 to splay_tree_s *.
2923 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
2924 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
2925 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
2926 offload_regions_registered.
2927 Initialize load_image_func, unload_image_func, mem_map.root.
2928 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
2929 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
2930 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
2931 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
2932 gomp_memory_mapping *. Use dev's lock and splay_tree.
2933 (lookup_dev): Use dev's lock.
2934 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
2935 (acc_is_present): Likewise.
2936 (acc_map_data): Likewise.
2937 (acc_unmap_data): Likewise. Use dev's lock.
2938 (present_create_copy): Likewise.
2939 (delete_copyout): Pass dev to lookup_host instead of mem_map.
2940 (update_dev_host): Likewise.
2941 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
2942 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
2943 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
2944 (GOMP_OFFLOAD_get_table): Remove
2945 (GOMP_OFFLOAD_load_image): New function.
2946 (GOMP_OFFLOAD_unload_image): New function.
2947 * target.c (register_lock): New mutex for offload image registration.
2948 (num_devices): Do not guard with PLUGIN_SUPPORT.
2949 (gomp_realloc_unlock): New static function.
2950 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
2951 before gomp_fatal.
2952 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
2953 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
2954 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
2955 mem_map's.
2956 (gomp_unmap_vars): Likewise.
2957 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
2958 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
2959 (gomp_offload_image_to_device): New static function.
2960 (GOMP_offload_register): Add mutex lock.
2961 Call gomp_offload_image_to_device for all initialized devices.
2962 Replace gomp_realloc with gomp_realloc_unlock.
2963 (GOMP_offload_unregister): New function.
2964 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
2965 get_table_func from the plugin with calls to init_device_func and
2966 gomp_offload_image_to_device.
2967 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2968 to splay_tree_s *.
2969 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
2970 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
2971 (GOMP_target_data): Do not call gomp_init_tables.
2972 (GOMP_target_update): Likewise. Remove argument from gomp_update.
2973 (gomp_load_plugin_for_device): Replace register_image and get_table
2974 with load_image and unload_image in DLSYM ().
2975 (gomp_register_images_for_device): Remove function.
2976 (gomp_target_init): Do not initialize current_device.mem_map.*,
2977 current_device.offload_regions_registered.
2978 Remove call to gomp_register_images_for_device.
2979 Do not free offload_images and num_offload_images.
2980
6c384511
JJ
29812015-03-30 Jakub Jelinek <jakub@redhat.com>
2982
2983 PR fortran/65597
2984 * testsuite/libgomp.fortran/pr65597.f90: New test.
2985
3e8165a5
TV
29862015-03-27 Tom de Vries <tom@codesourcery.com>
2987
2988 PR testsuite/65594
2989 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
2990 (init, check): New function.
2991 (foo): Change return type to void.
2992 (main): Call init and check.
2993
4d688c9a
TV
29942015-03-27 Tom de Vries <tom@codesourcery.com>
2995
2996 PR testsuite/65594
2997 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
2998 (foo): Use M for non-inner loops to scale down test-case.
2999
01c0b3b0
KT
30002015-03-25 Kai Tietz <ktietz@redhat.com>
3001
3002 PR libgomp/64972
3003 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
3004 (GOACC_data_start): Likewise.
3005 * target.c (gomp_map_vars): Likewise.
3006
844d9a76
JDA
30072015-03-21 John David Anglin <danglin@gcc.gnu.org>
3008
3009 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
3010 hppa*-*-hpux*.
3011
9b65e171
JJ
30122015-03-19 Jakub Jelinek <jakub@redhat.com>
3013
3014 * testsuite/libgomp.c/target-10.c: New test.
3015 * testsuite/libgomp.c++/target-4.C: New test.
3016
db397e2e
IV
30172015-03-13 Ilya Verbin <ilya.verbin@intel.com>
3018
3019 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
3020 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
3021
cd93945d
SH
30222015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
3023
3024 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
3025 * configure.ac (*-*-rtems*): Assume Pthread is supported.
3026 (pthread.h): Check for this header file.
3027 * configure: Regenerate.
3028
05deba9f
TV
30292015-02-25 Tom de Vries <tom@codesourcery.com>
3030
3031 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
3032 (check_reduction_op, check_reduction_macro, max, min):
3033 Declare.
3034 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
3035 function.
3036 (main): Use new functions.
3037
196904d8
IT
30382015-02-18 Ilya Tocar <ilya.tocar@intel.com>
3039
3040 * target.c (gomp_load_plugin_for_device): Use const char * instead of
3041 char * for variables holding dlerror return values.
3042 (DLSYM_OPT): Ditto.
3043
a2818955
TS
30442015-02-17 Thomas Schwinge <thomas@codesourcery.com>
3045
3046 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
3047
26f93312
TS
30482015-02-17 Thomas Schwinge <thomas@codesourcery.com>
3049 Cesar Philippidis <cesar@codesourcery.com>
3050
3051 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
3052 GOACC_ctaid, and GOACC_nctaid routines.
3053
fa01ffcc
JJ
30542015-02-11 Jakub Jelinek <jakub@redhat.com>
3055
3056 PR c/64824
3057 * testsuite/libgomp.c/atomic-18.c: New test.
3058 * testsuite/libgomp.c++/atomic-16.C: New test.
3059
4886ec8e
JJ
30602015-02-04 Jakub Jelinek <jakub@redhat.com>
3061
3062 PR c/64824
3063 PR c/64868
3064 * testsuite/libgomp.c/pr64824.c: New test.
3065 * testsuite/libgomp.c/pr64868.c: New test.
3066 * testsuite/libgomp.c++/pr64824.C: New test.
3067 * testsuite/libgomp.c++/pr64868.C: New test.
3068
02d3e45e
DE
30692015-02-01 David Edelsohn <dje.gcc@gmail.com>
3070
3071 PR libgomp/64635
3072 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
3073 Link with -lpthread.
3074 * config/aix/plugin-suffix.h: Delete.
3075
b5f7a6ca
JH
30762015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
3077
3078 PR libgomp/64635
3079 * configure.tgt (*-*-aix*): Use config_path "aix posix".
3080 (*-*-darwin*): Use config_path "bsd darwin posix".
3081 (*-*-hpux*): Use config_path "hpux posix".
3082 * target.c: Add include of plugin-suffix.h and use
3083 SONAME_SUFFIX macro.
3084 * config/aix/plugin-suffix.h: New file.
3085 * config/darwin/plugin-suffix.h: New file.
3086 * config/hpux/plugin-suffix.h: New file.
3087 * config/posix/plugin-suffix.h: New file.
3088
b8910447
JJ
30892015-01-23 Jakub Jelinek <jakub@redhat.com>
3090
3091 PR middle-end/64734
3092 * libgomp.c/pr64734.c: New test.
3093
a0c88d06
TV
30942015-01-23 Tom de Vries <tom@codesourcery.com>
3095
3096 PR libgomp/64672
3097 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
3098
1506ae0e
TV
30992015-01-23 Tom de Vries <tom@codesourcery.com>
3100
3101 PR libgomp/64707
3102 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
3103 dg-options.
3104
128b26dc
TS
31052015-01-19 Thomas Schwinge <thomas@codesourcery.com>
3106
bed62c21 3107 PR libgomp/64625
128b26dc
TS
3108 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
3109 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
3110 formal parameter. Update all users.
3111 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
3112 Document unused formal parameter.
3113
6e36114c
TS
31142015-01-16 Thomas Schwinge <thomas@codesourcery.com>
3115
3116 * oacc-parallel.c: Don't include <alloca.h>.
3117 (GOACC_parallel): Use gomp_alloca instead of alloca.
3118
973e9808
GP
31192015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
3120
3121 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
3122
41dbbb37
TS
31232015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3124 James Norris <jnorris@codesourcery.com>
3125 Tom de Vries <tom@codesourcery.com>
3126 Julian Brown <julian@codesourcery.com>
3127 Cesar Philippidis <cesar@codesourcery.com>
3128 Nathan Sidwell <nathan@codesourcery.com>
3129 Tobias Burnus <burnus@net-b.de>
3130
3131 * Makefile.am (search_path): Add $(top_srcdir)/../include.
3132 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
3133 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
3134 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
3135 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
3136 Include $(top_srcdir)/plugin/Makefrag.am.
3137 (nodist_libsubinclude_HEADERS): Add openacc.h.
3138 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
3139 openacc.f90, openacc.mod, openacc_kinds.mod.
3140 (omp_lib.mod): Generalize into...
3141 (%.mod): ... this new rule.
3142 (openacc_kinds.mod, openacc.mod): New rules.
3143 * plugin/configfrag.ac: New file.
3144 * configure.ac: Move plugin/offloading support into it. Include
3145 it. Instantiate testsuite/libgomp-test-support.pt.exp.
3146 * plugin/Makefrag.am: New file.
3147 * testsuite/Makefile.am (OFFLOAD_TARGETS)
3148 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
3149 export.
3150 (libgomp-test-support.exp): New rule.
3151 (all-local): Depend on it.
3152 * Makefile.in: Regenerate.
3153 * testsuite/Makefile.in: Regenerate.
3154 * config.h.in: Likewise.
3155 * configure: Likewise.
3156 * configure.tgt: Harden shell syntax.
3157 * env.c: Include "oacc-int.h".
3158 (parse_acc_device_type): New function.
3159 (gomp_debug_var, goacc_device_type, goacc_device_num): New
3160 variables.
3161 (initialize_env): Initialize those. Call
3162 goacc_runtime_initialize.
3163 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
3164 (gomp_fatal): Call gomp_vfatal.
3165 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
3166 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
3167 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
3168 (splay_tree_node, splay_tree, splay_tree_key)
3169 (struct target_mem_desc, struct splay_tree_key_s)
3170 (struct gomp_memory_mapping, struct acc_dispatch_t)
3171 (struct gomp_device_descr, gomp_acc_insert_pointer)
3172 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
3173 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
3174 (gomp_free_memmap, gomp_fini_device): New declarations.
3175 (gomp_vdebug, gomp_debug): New macros.
3176 Include "splay-tree.h".
3177 * libgomp.map (OACC_2.0): New symbol version. Use for
3178 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
3179 acc_set_device_type_h_, acc_get_device_type,
3180 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
3181 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
3182 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
3183 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
3184 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
3185 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
3186 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
3187 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
3188 acc_copyin_array_h_, acc_present_or_copyin,
3189 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
3190 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
3191 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
3192 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
3193 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
3194 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
3195 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
3196 acc_update_device, acc_update_device_32_h_,
3197 acc_update_device_64_h_, acc_update_device_array_h_,
3198 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
3199 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
3200 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
3201 acc_is_present_64_h_, acc_is_present_array_h_,
3202 acc_memcpy_to_device, acc_memcpy_from_device,
3203 acc_get_current_cuda_device, acc_get_current_cuda_context,
3204 acc_get_cuda_stream, acc_set_cuda_stream.
3205 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
3206 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
3207 GOACC_update, GOACC_wait, GOACC_get_thread_num,
3208 GOACC_get_num_threads.
3209 (GOMP_PLUGIN_1.0): New symbol version. Use for
3210 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
3211 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
3212 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
3213 GOMP_PLUGIN_acc_thread.
3214 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
3215 environment variable.
3216 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
3217 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
3218 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
3219 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
3220 (splay_tree_remove): New declarations.
3221 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
3222 (splay_tree_remove, splay_tree_lookup): Move into...
3223 * splay-tree.c: ... this new file.
3224 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
3225 (splay_tree_node, splay_tree, splay_tree_key)
3226 (struct target_mem_desc, struct splay_tree_key_s)
3227 (struct gomp_device_descr): Don't declare.
3228 (num_devices_openmp): New variable.
3229 (gomp_get_num_devices ): Use it.
3230 (gomp_init_targets_once): New function.
3231 (gomp_get_num_devices ): Use it.
3232 (get_kind, gomp_copy_from_async, gomp_free_memmap)
3233 (gomp_fini_device, gomp_register_image_for_device): New functions.
3234 (gomp_map_vars): Add devaddrs parameter.
3235 (gomp_update): Add mm parameter.
3236 (gomp_init_device): Move most of it into...
3237 (gomp_init_tables): ... this new function.
3238 (gomp_register_images_for_device): Remove function.
3239 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
3240 Make them hidden instead of static.
3241 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
3242 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
3243 (GOMP_target_end_data, GOMP_target_update)
3244 (gomp_load_plugin_for_device, gomp_target_init): Update for
3245 OpenACC changes.
3246 * oacc-async.c: New file.
3247 * oacc-cuda.c: Likewise.
3248 * oacc-host.c: Likewise.
3249 * oacc-init.c: Likewise.
3250 * oacc-int.h: Likewise.
3251 * oacc-mem.c: Likewise.
3252 * oacc-parallel.c: Likewise.
3253 * oacc-plugin.c: Likewise.
3254 * oacc-plugin.h: Likewise.
3255 * oacc-ptx.h: Likewise.
3256 * openacc.f90: Likewise.
3257 * openacc.h: Likewise.
3258 * openacc_lib.h: Likewise.
3259 * plugin/plugin-host.c: Likewise.
3260 * plugin/plugin-nvptx.c: Likewise.
3261 * libgomp-plugin.c: Likewise.
3262 * libgomp-plugin.h: Likewise.
3263 * libgomp_target.h: Remove file after merging content into the
3264 former file. Update all users.
3265 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
3266 (offload_targets_s, offload_targets_s_openacc): New variables.
3267 (check_effective_target_openacc_nvidia_accel_present)
3268 (check_effective_target_openacc_nvidia_accel_selected): New
3269 procedures.
3270 (libgomp_init): Update for OpenACC changes.
3271 * testsuite/libgomp-test-support.exp.in: New file.
3272 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
3273 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3274 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3275 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
3276 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
3277 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
3278 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
3279 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
3280 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3281 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
3282 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
3283 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
3284 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
3285 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3286 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3287 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3288 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3289 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3290 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3291 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3292 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
3293 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3294 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3295 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
3296 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3297 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3298 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3299 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3300 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3301 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3302 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3303 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3304 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3305 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
3306 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
3307 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
3308 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
3309 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
3310 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
3311 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3312 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3313 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3314 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3315 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3316 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3317 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
3318 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
3319 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3320 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3321 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3322 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3323 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3324 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3325 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
3326 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
3327 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3328 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3329 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
3330 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3331 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
3332 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3333 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
3334 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3335 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
3336 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
3337 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
3338 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
3339 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
3340 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
3341 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
3342 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
3343 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3344 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3345 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3346 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
3347 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
3348 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3349 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3350 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
3351 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
3352 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
3353 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
3354 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3355 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3356 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3357 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
3358 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
3359 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
3360 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3361 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
3362 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
3363 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
3364 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
3365 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
3366 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
3367 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
3368 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
3369 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
3370 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
3371 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
3372 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
3373 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
3374 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
3375 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
3376 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
3377 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
3378 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
3379 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
3380 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
3381 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
3382 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
3383 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3384 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
3385 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
3386 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3387 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3388 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
3389 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3390 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
3391 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
3392 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
3393 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
3394 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
3395 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
3396 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3397 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
3398 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3399 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
3400 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
3401 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
3402 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
3403 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
3404 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
3405 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
3406 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
3407 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3408 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3409 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3410 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3411 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
3412 Likewise.
3413 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
3414 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
3415 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
3416 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3417 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
3418 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3419 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3420 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3421 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3422 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3423 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3424 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3425 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3426 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3427 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3428 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3429 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3430 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3431 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3432 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3433 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3434 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3435 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3436 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3437 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3438 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3439 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3440 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3441 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3442 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3443 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3444 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3445 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3446 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3447 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3448 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3449 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3450 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3451 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3452 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3453 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3454 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3455 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3456 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3457 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3458 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3459 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3460 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3461 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3462 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3463 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3464 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3465 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3466 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3467 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3468 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3469 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3470 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3471 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3472 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3473
f1f3453e
TS
34742015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3475 Julian Brown <julian@codesourcery.com>
3476 David Malcolm <dmalcolm@redhat.com>
3477
3478 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
3479 to "GNU Offloading and Multi Processing Runtime Library". Change
3480 all users.
3481 * configure: Regenerate.
3482 * libgomp.texi: Update.
3483
f9a0eca4
TS
34842015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3485
b335ef4e
TS
3486 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
3487 "$tgt_dir/lib32".
3488 * configure: Regenerate.
3489
f9a0eca4
TS
3490 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
3491 "intelmic" in $offload_targets.
3492
b67cd4e3
JJ
34932015-01-05 Jakub Jelinek <jakub@redhat.com>
3494
5624e564
JJ
3495 Update copyright years.
3496
b67cd4e3
JJ
3497 * libgomp.texi: Bump @copying's copyright year.
3498
3b41b583
KT
34992014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3500
3501 * testsuite/lib/libgomp.exp: Load target-utils.exp.
3502 Move load of target-supportes.exp earlier.
3503
2354caec
IV
35042014-12-10 Ilya Verbin <ilya.verbin@intel.com>
3505
3506 * testsuite/libgomp.c/target-9.c: New test.
3507
f50eecba
VR
35082014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
3509
3510 * config.h.in: Regenerate.
3511 * configure: Regenerate.
3512 * configure.ac: Add GCC_CHECK_EMUTLS.
3513 * libgomp.h: Add check for USE_EMUTLS: this case
3514 is equal to HAVE_TLS.
3515 * team.c: Likewise.
3516
68bc9270
UB
35172014-12-03 Uros Bizjak <ubizjak@gmail.com>
3518
3519 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
3520
476ff787
AT
35212014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
3522 Ilya Verbin <ilya.verbin@intel.com>
3523
3524 * testsuite/libgomp.c/target-critical-1.c: New test.
3525
31a30e62
JJ
35262014-11-26 Jakub Jelinek <jakub@redhat.com>
3527
3528 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
68bc9270 3529 to dg-options unless expensive testing is on.
31a30e62
JJ
3530 (TESTITERS): Define to N if not defined.
3531 (main): Use TESTITERS instead of N.
3532 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
3533 dg-additional-options depending on whether expensive testing is on.
3534 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
3535 Decrease N to 100000 and CHUNKSZ to 10000.
3536
3f9e8f13
JJ
35372014-11-24 Jakub Jelinek <jakub@redhat.com>
3538
3539 PR fortran/63938
31a30e62
JJ
3540 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
3541 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3f9e8f13 3542
c8451a46
SE
35432014-11-21 Steve Ellcey <sellcey@imgtec.com>
3544
3545 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
3546
a699d672
L
35472014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3548
3549 PR bootstrap/63784
3550 * configure: Regenerated.
3551
4a19f719
UB
35522014-11-19 Uros Bizjak <ubizjak@gmail.com>
3553
3554 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
3555 vect_simd_clones effective target.
3556 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
3557
b1bf6c52
JJ
35582014-11-14 Jakub Jelinek <jakub@redhat.com>
3559
3560 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
3561 of 32 as block_size.
3562 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
3563 instead of 32 as block_size.
3564
d64ae614
AT
35652014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
3566 Ilya Verbin <ilya.verbin@intel.com>
3567
3568 * Makefile.in: Regenerate.
3569 * configure: Regenerate.
3570 * configure.ac: Set up offload_additional_options,
3571 offload_additional_lib_paths and offload_targets.
3572 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
3573 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
3574 * testsuite/Makefile.in: Regenerate.
3575 * testsuite/lib/libgomp.exp (libgomp_init): Append
3576 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
3577 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
3578 build directory to LD_LIBRARY_PATH for intelmic offload targets.
3579
122d7303
AT
35802014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
3581 Ilya Verbin <ilya.verbin@intel.com>
3582 Kirill Yukhin <kirill.yukhin@intel.com>
3583 Ilya Tocar <ilya.tocar@intel.com>
3584
3585 * testsuite/lib/libgomp.exp
3586 (check_effective_target_offload_device): New.
3587 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
3588 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
3589 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
3590 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
3591 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
3592 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
3593 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
3594 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
3595 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
3596 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
3597 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
3598 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
3599 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
3600 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
3601 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
3602 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
3603 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
3604 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
3605 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
3606 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
3607 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
3608 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
3609 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
3610 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
3611 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
3612 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
3613 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
3614 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
3615 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
3616 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
3617 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
3618 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
3619 * testsuite/libgomp.c/target-7.c: Fix test.
3620 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
3621 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
3622 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
3623 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
3624 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
3625 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
3626 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
3627 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
3628 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
3629 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
3630 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
3631 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
3632 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
3633 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
3634 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
3635 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
3636 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
3637 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
3638 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
3639 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
3640 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
3641 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
3642 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
3643 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
3644 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
3645 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
3646 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
3647 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
3648 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
3649 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
3650 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
3651
1df3f842
JJ
36522014-11-13 Jakub Jelinek <jakub@redhat.com>
3653 Ilya Verbin <ilya.verbin@intel.com>
3654 Thomas Schwinge <thomas@codesourcery.com>
3655 Andrey Turetskiy <andrey.turetskiy@intel.com>
3656
3657 * libgomp.map (GOMP_4.0.1): New symbol version.
3658 Add GOMP_offload_register.
3659 * libgomp_target.h: New file.
3660 * splay-tree.h: New file.
3661 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
3662 (gomp_target_init): New forward declaration.
3663 (gomp_is_initialized): New static variable.
3664 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
3665 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
3666 New structures.
3667 (offload_images, num_offload_images, devices, num_devices): New static
3668 variables.
3669 (splay_compare): New static function.
3670 (struct gomp_device_descr): New structure.
3671 (gomp_get_num_devices): Call gomp_target_init.
3672 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
3673 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
3674 (GOMP_offload_register): New function.
3675 (GOMP_target): Arrange for host callback to be performed in a separate
3676 initial thread and contention group, inheriting ICVs from
3677 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
3678 Add device initialization and lookup for target function in splay tree.
3679 (GOMP_target_data): Add device initialization and call gomp_map_vars.
3680 (GOMP_target_end_data): Call gomp_unmap_vars.
3681 (GOMP_target_update): Add device initialization and call gomp_update.
3682 (gomp_load_plugin_for_device, gomp_register_images_for_device)
3683 (gomp_target_init): New static functions.
3684
85c64bbe
BS
36852014-11-13 Bernd Schmidt <bernds@codesourcery.com>
3686 Thomas Schwinge <thomas@codesourcery.com>
3687 Ilya Verbin <ilya.verbin@intel.com>
3688 Andrey Turetskiy <andrey.turetskiy@intel.com>
3689
3690 * config.h.in: Regenerate.
3691 * configure: Regenerate.
3692 * configure.ac: Check for libdl, required for plugin support.
3693 (PLUGIN_SUPPORT): Define if plugins are supported.
3694 (enable_offload_targets): Support Intel MIC targets.
3695 (OFFLOAD_TARGETS): List of target names suitable for offloading.
3696
ebf6d33b
FXC
36972014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3698
3699 PR target/63610
3700 * configure: Regenerate.
3701
8c768629
RO
37022014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3703
3704 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
3705
c1d62412
MP
37062014-10-06 Marek Polacek <polacek@redhat.com>
3707
3708 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
3709 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
3710 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
3711 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3712
44a0c6cb
MP
37132014-10-06 Marek Polacek <polacek@redhat.com>
3714
3715 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
3716 * testsuite/libgomp.c/nqueens-1.c: Likewise.
3717 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3718 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3719 * testsuite/libgomp.c/pr36802-2.c: Likewise.
3720 * testsuite/libgomp.c/pr36802-3.c: Likewise.
3721 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3722 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3723 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
3724 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
3725 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
3726 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
3727 * testsuite/libgomp.c/omp-single-1.c: Likewise.
3728 * testsuite/libgomp.c/omp-single-2.c: Likewise.
3729 * testsuite/libgomp.c/omp_matvec.c: Likewise.
3730 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
3731 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
3732 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
3733 declarations.
3734
5771c391
JJ
37352014-10-03 Jakub Jelinek <jakub@redhat.com>
3736
3737 PR libgomp/61200
3738 * testsuite/libgomp.c/pr61200.c: New test.
3739
bce16b88
JJ
37402014-09-18 Jakub Jelinek <jakub@redhat.com>
3741
3742 PR c++/63248
3743 * testsuite/libgomp.c++/pr63248.C: New test.
3744
3696163c
JJ
37452014-08-04 Jakub Jelinek <jakub@redhat.com>
3746
3747 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
3748 is not zero, but taskgroup->children is NULL and there are
3749 any task->children, schedule those instead of waiting.
3750 * testsuite/libgomp.c/depend-6.c: New test.
3751 * testsuite/libgomp.c/depend-7.c: New test.
3752 * testsuite/libgomp.c/depend-8.c: New test.
3753 * testsuite/libgomp.c/depend-9.c: New test.
3754 * testsuite/libgomp.c/depend-10.c: New test.
3755
0494285a
JJ
37562014-08-01 Jakub Jelinek <jakub@redhat.com>
3757
3758 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
3759 (struct gomp_taskwait): New type.
3760 (struct gomp_task): Add taskwait and parent_depends_on, remove
3761 in_taskwait and taskwait_sem fields.
3762 (gomp_finish_task): Don't destroy taskwait_sem.
3763 * task.c (gomp_init_task): Don't init in_taskwait, instead init
3764 taskwait and parent_depends_on.
3765 (GOMP_task): For if (0) tasks with depend clause that depend on
3766 earlier tasks don't defer them, instead call
3767 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
3768 Initialize redundant_out field, for redundant out entries just
3769 move them at the end of linked list instead of removing them
3770 completely, and set redundant_out flag instead of redundant.
3771 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
3772 that task.
3773 (gomp_task_run_post_handle_dependers): If parent is in
3774 gomp_task_maybe_wait_for_dependencies and newly runnable task
3775 is not parent_depends_on, queue it in parent->children linked
3776 list after all runnable tasks with parent_depends_on set.
3777 Adjust for addition of taskwait indirection.
3778 (gomp_task_run_post_remove_parent): If parent is in
3779 gomp_task_maybe_wait_for_dependencies and task to be removed
3780 is parent_depends_on, decrement n_depend and if needed awake
3781 parent. Adjust for addition of taskwait indirection.
3782 (GOMP_taskwait): Adjust for addition of taskwait indirection.
3783 (gomp_task_maybe_wait_for_dependencies): New function.
3784 * testsuite/libgomp.c/depend-5.c: New test.
3785
60ab4b44
TB
37862014-07-13 Tobias Burnus <burnus@net-b.de>
3787
3788 * testsuite/libgomp.fortran/pr34020.f90: Make compile
0494285a 3789 with TS 18508/Fortran 2015.
60ab4b44 3790
773ec47f
MP
37912014-07-06 Marek Polacek <polacek@redhat.com>
3792
3793 PR c/6940
3794 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
3795
f707da16
JJ
37962014-07-03 Jakub Jelinek <jakub@redhat.com>
3797
3798 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
3799 matches regex $lang_source_re, add $lang_include_flags to options.
3800 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
3801 * testsuite/libgomp.c++/c++.exp: Likewise.
3802 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
3803 and lang_include_flags instead of adding -fintrinsic-modules-path= to
3804 ALWAYS_CFLAGS.
3805 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
3806
07b6c044
TS
38072014-07-03 Thomas Schwinge <thomas@codesourcery.com>
3808
3809 * testsuite/libgomp.fortran/fortran.exp: Explain
3810 gfortran-dg-runtest usage.
3811
da6f124d
JJ
38122014-06-25 Jakub Jelinek <jakub@redhat.com>
3813
3814 * testsuite/libgomp.fortran/simd5.f90: New test.
3815 * testsuite/libgomp.fortran/simd6.f90: New test.
3816 * testsuite/libgomp.fortran/simd7.f90: New test.
3817
b46ebd6c
JJ
38182014-06-24 Jakub Jelinek <jakub@redhat.com>
3819
56ad0e38
JJ
3820 * testsuite/libgomp.c/for-2.c: Define SC to static for
3821 #pragma omp for simd testing.
3822 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
3823 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
3824 SC macro.
3825 * testsuite/libgomp.c/simd-14.c: New test.
3826 * testsuite/libgomp.c/simd-15.c: New test.
3827 * testsuite/libgomp.c/simd-16.c: New test.
3828 * testsuite/libgomp.c/simd-17.c: New test.
3829 * testsuite/libgomp.c++/for-10.C: Define SC to static for
3830 #pragma omp for simd testing.
3831 * testsuite/libgomp.c++/simd10.C: New test.
3832 * testsuite/libgomp.c++/simd11.C: New test.
3833 * testsuite/libgomp.c++/simd12.C: New test.
3834 * testsuite/libgomp.c++/simd13.C: New test.
3835
b46ebd6c
JJ
3836 * testsuite/libgomp.fortran/aligned1.f03: New test.
3837 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
3838 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
3839 tasks with !$omp parallel !$omp single.
3840 * testsuite/libgomp.fortran/target8.f90: New test.
3841 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
3842 not to use trim in the combiner, instead call elemental function.
3843 (fn): New elemental function.
3844 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
3845 Make elemental.
3846 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
3847 omp_in): Likewise.
3848 * testsuite/libgomp.fortran/udr12.f90: New test.
3849 * testsuite/libgomp.fortran/udr13.f90: New test.
3850 * testsuite/libgomp.fortran/udr14.f90: New test.
3851 * testsuite/libgomp.fortran/udr15.f90: New test.
3852
f014c653
JJ
38532014-06-18 Jakub Jelinek <jakub@redhat.com>
3854
3855 * omp_lib.f90.in (openmp_version): Set to 201307.
3856 * omp_lib.h.in (openmp_version): Likewise.
3857 * testsuite/libgomp.c/target-8.c: New test.
3858 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
3859 and inbranch clauses.
3860 * testsuite/libgomp.fortran/depend-3.f90: New test.
3861 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
3862 openmp_version.
3863 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3864 * testsuite/libgomp.fortran/target1.f90: New test.
3865 * testsuite/libgomp.fortran/target2.f90: New test.
3866 * testsuite/libgomp.fortran/target3.f90: New test.
3867 * testsuite/libgomp.fortran/target4.f90: New test.
3868 * testsuite/libgomp.fortran/target5.f90: New test.
3869 * testsuite/libgomp.fortran/target6.f90: New test.
3870 * testsuite/libgomp.fortran/target7.f90: New test.
3871
92d28cbb
JJ
38722014-06-10 Jakub Jelinek <jakub@redhat.com>
3873
3874 PR fortran/60928
3875 * testsuite/libgomp.fortran/allocatable9.f90: New test.
3876 * testsuite/libgomp.fortran/allocatable10.f90: New test.
3877 * testsuite/libgomp.fortran/allocatable11.f90: New test.
3878 * testsuite/libgomp.fortran/allocatable12.f90: New test.
3879 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
3880 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
3881 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
3882 * testsuite/libgomp.fortran/associate1.f90: New test.
3883 * testsuite/libgomp.fortran/associate2.f90: New test.
3884 * testsuite/libgomp.fortran/procptr1.f90: New test.
3885
5f23671d
JJ
38862014-06-06 Jakub Jelinek <jakub@redhat.com>
3887
3888 * testsuite/libgomp.fortran/simd1.f90: New test.
3889 * testsuite/libgomp.fortran/udr1.f90: New test.
3890 * testsuite/libgomp.fortran/udr2.f90: New test.
3891 * testsuite/libgomp.fortran/udr3.f90: New test.
3892 * testsuite/libgomp.fortran/udr4.f90: New test.
3893 * testsuite/libgomp.fortran/udr5.f90: New test.
3894 * testsuite/libgomp.fortran/udr6.f90: New test.
3895 * testsuite/libgomp.fortran/udr7.f90: New test.
3896 * testsuite/libgomp.fortran/udr8.f90: New test.
3897 * testsuite/libgomp.fortran/udr9.f90: New test.
3898 * testsuite/libgomp.fortran/udr10.f90: New test.
3899 * testsuite/libgomp.fortran/udr11.f90: New test.
3900
0389fbb5
UB
39012014-05-27 Uros Bizjak <ubizjak@gmail.com>
3902
3903 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
3904 vect_simd_clones effective target.
3905 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
3906
decaaec8
JJ
39072014-05-21 Jakub Jelinek <jakub@redhat.com>
3908
3909 PR middle-end/61252
3910 * testsuite/libgomp.c++/simd-9.C: New test.
3911
72832460
UB
39122014-05-18 Uros Bizjak <ubizjak@gmail.com>
3913
3914 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
3915 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
3916 texts according to their @menu entry positions.
3917
dd2fc525
JJ
39182014-05-11 Jakub Jelinek <jakub@redhat.com>
3919
3920 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
3921 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
3922 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
3923 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
3924 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
3925 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
3926 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
3927 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
3928 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
3929 * testsuite/libgomp.fortran/depend-1.f90: New test.
3930 * testsuite/libgomp.fortran/depend-2.f90: New test.
3931 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
3932 * testsuite/libgomp.fortran/simd1.f90: New test.
3933 * testsuite/libgomp.fortran/simd2.f90: New test.
3934 * testsuite/libgomp.fortran/simd3.f90: New test.
3935 * testsuite/libgomp.fortran/simd4.f90: New test.
3936 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
3937
95782571
JJ
39382014-05-02 Jakub Jelinek <jakub@redhat.com>
3939
3940 * testsuite/libgomp.c/simd-10.c: New test.
3941 * testsuite/libgomp.c/simd-11.c: New test.
3942 * testsuite/libgomp.c/simd-12.c: New test.
3943 * testsuite/libgomp.c/simd-13.c: New test.
3944
f7468577
JJ
39452014-04-24 Jakub Jelinek <jakub@redhat.com>
3946
42056eac
JJ
3947 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
3948 atomic type clauses in any order and optional comma in between.
3949 * testsuite/libgomp.c++/atomic-15.C: Likewise.
3950 * testsuite/libgomp.c/atomic-17.c: Likewise.
3951
f7468577
JJ
3952 * testsuite/libgomp.c/simd-7.c: New test.
3953 * testsuite/libgomp.c/simd-8.c: New test.
3954 * testsuite/libgomp.c/simd-9.c: New test.
3955 * testsuite/libgomp.c/loop-16.c: New test.
3956
ab18f2f5
RH
39572014-04-02 Richard Henderson <rth@redhat.com>
3958
3959 * config/linux/futex.h (futex_wait): Get error value from errno.
3960 (futex_wake): Likewise.
3961
8bcc90b0
JJ
39622014-03-25 Jakub Jelinek <jakub@redhat.com>
3963
3964 PR c++/60331
3965 * testsuite/libgomp.c++/udr-11.C: New test.
3966 * testsuite/libgomp.c++/udr-12.C: New test.
3967 * testsuite/libgomp.c++/udr-13.C: New test.
3968 * testsuite/libgomp.c++/udr-14.C: New test.
3969 * testsuite/libgomp.c++/udr-15.C: New test.
3970 * testsuite/libgomp.c++/udr-16.C: New test.
3971 * testsuite/libgomp.c++/udr-17.C: New test.
3972 * testsuite/libgomp.c++/udr-18.C: New test.
3973 * testsuite/libgomp.c++/udr-19.C: New test.
3974
18d73c7f
RS
39752014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3976
3977 Update copyright years
3978
f9030485
RS
39792014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3980
3981 * hashtab.h: Use the standard form for the copyright notice.
3982
98db73df
TB
39832014-01-02 Tobias Burnus <burnus@net-b.de>
3984
3985 * libgomp.texi: Bump @copying's copyright year.
3986
ae246f7f
AT
39872013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
3988
3989 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
3990 alloca () with __builtin_alloca ().
3991 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
3992 * testsuite/libgomp.c/lock-3.c: Likewise.
3993 * testsuite/libgomp.c/pr48591.c: Likewise.
3994
fa00a5fe
JJ
39952013-12-17 Jakub Jelinek <jakub@redhat.com>
3996
3997 PR testsuite/59534
3998 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
3999 comparisons.
4000
e9792e1d
JJ
40012013-12-16 Jakub Jelinek <jakub@redhat.com>
4002
4003 PR libgomp/58756
4004 * testsuite/libgomp.c/pr58756.c: New test.
4005
cab37c89
JJ
40062013-12-12 Jakub Jelinek <jakub@redhat.com>
4007
4008 PR libgomp/59467
4009 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
4010 !$omp parallel.
4011
de14871c
TS
40122013-11-07 Thomas Schwinge <thomas@codesourcery.com>
4013
1707a5de
TS
4014 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
4015 ALWAYS_CFLAGS.
4016 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
4017 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
4018 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4019 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
4020 Likewise.
4021
70f05c43
TS
4022 * libgomp_g.h: Include <stddef.h> for size_t.
4023
de14871c
TS
4024 * libgomp.spec.in: Update comment about libgomp's dependencies.
4025 * configure.ac: Likewise.
4026 * configure: Regenerate.
4027
83fd6c5b
TB
40282013-10-16 Tobias Burnus <burnus@net-b.de>
4029
4030 * libgomp.texi: (Runtime Library Routines): Update references for
4031 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
4032 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
4033 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
4034 (Environment Variables): Update references for OpenMP 4.0. Add
4035 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
4036 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
4037 order.
4038
c8673881
JJ
40392013-10-14 Jakub Jelinek <jakub@redhat.com>
4040
4041 * env.c (parse_bind_var): Initialize value to avoid
4042 (false positive) warning.
4043
f89163fd
JJ
40442013-10-12 Jakub Jelinek <jakub@redhat.com>
4045
4046 PR libgomp/58691
4047 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
4048 to check variable.
4049 (gomp_init_num_threads): Move i variable declaration into
4050 #ifdef CPU_ALLOC_SIZE block.
4051 * config/linux/affinity.c (gomp_affinity_init_level): Test
4052 gomp_places_list_len == 0 rather than gomp_places_list == 0
4053 when checking for topology reading error.
4054 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
4055 * env.c (parse_affinity): Add ignore argument, if true, don't populate
4056 gomp_places_list, only parse env var and always return false.
4057 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
4058 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
4059 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
4060 and either of these variables were parsed correctly into a places
4061 list.
4062
1d340638
TS
40632013-10-11 Thomas Schwinge <thomas@codesourcery.com>
4064 Jakub Jelinek <jakub@redhat.com>
4065
4066 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
4067 of 5 loopfn matches.
4068 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
4069 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
4070 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
4071 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
4072 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
4073 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4074 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4075 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
4076
71a81c21
TS
40772013-10-11 Thomas Schwinge <thomas@codesourcery.com>
4078
bd87f731
TS
4079 * Makefile.am (omp_lib.mod): Streamline rule.
4080 * Makefile.in: Regenerate.
4081
f5745bed
TS
4082 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
4083 exceptions.
4084
b5512c66
TS
4085 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
4086 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4087 * testsuite/libgomp.fortran/lib2.f: Likewise.
4088 * testsuite/libgomp.fortran/lib3.f: Likewise.
4089
451c19c4
TS
4090 * configure.ac: Typo fix.
4091 * configure: Regenerate.
4092
86a6016d
TS
4093 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
4094 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4095
71a81c21
TS
4096 * omp.h.in: Don't touch the user's namespace.
4097
acf0174b
JJ
40982013-10-11 Jakub Jelinek <jakub@redhat.com>
4099 Tobias Burnus <burnus@net-b.de>
4100 Richard Henderson <rth@redhat.com>
4101
4102 * target.c: New file.
4103 * Makefile.am (libgomp_la_SOURCES): Add target.c.
4104 * Makefile.in: Regenerated.
4105 * libgomp_g.h (GOMP_task): Add depend argument.
4106 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
4107 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
4108 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
4109 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
4110 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
4111 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
4112 GOMP_taskgroup_start, GOMP_taskgroup_end,
4113 GOMP_parallel_sections): New prototypes.
4114 * fortran.c (omp_is_initial_device): Add ialias_redirect.
4115 (omp_is_initial_device_): New function.
4116 (ULP, STR1, STR2, ialias_redirect): Removed.
4117 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
4118 omp_set_default_device_8_, omp_get_default_device_,
4119 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
4120 functions.
4121 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
4122 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
4123 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
4124 @@GOMP_4.0.
4125 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
4126 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
4127 omp_set_default_device, omp_set_default_device_,
4128 omp_set_default_device_8_, omp_get_default_device,
4129 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
4130 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
4131 omp_get_team_num_): Export @@OMP_4.0.
4132 * team.c (struct gomp_thread_start_data): Add place field.
4133 (gomp_thread_start): Clear thr->thread_pool and
4134 thr->task before returning. Use gomp_team_barrier_wait_final
4135 instead of gomp_team_barrier_wait. Initialize thr->place.
4136 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
4137 team_cancelled and task_queued_count fields.
4138 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
4139 before calling pthread_exit.
4140 (gomp_free_thread): No longer static. Use
4141 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
4142 (gomp_team_start): Add flags argument. Set
4143 thr->thread_pool->threads_busy to nthreads immediately after creating
4144 new pool. Use gomp_managed_threads_lock instead of
4145 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
4146 (gomp_team_end): Use gomp_managed_threads_lock instead of
4147 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
4148 of gomp_team_barrier_wait. If team->team_cancelled, call
4149 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
4150 rather than thr->ts.work_share.
4151 (initialize_team): Don't call gomp_sem_init here.
4152 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
4153 caller.
4154 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
4155 * env.c (gomp_global_icv): Add default_device_var, target_data and
4156 bind_var initializers.
4157 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
4158 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
4159 gomp_places_list_len): New variables.
4160 (parse_bind_var, parse_one_place, parse_places_var): New functions.
4161 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
4162 sized places.
4163 (gomp_cancel_var): New global variable.
4164 (parse_int): New function.
4165 (handle_omp_display_env): New function.
4166 (initialize_env): Use it. Initialize default_device_var.
4167 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
4168 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
4169 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
4170 been successfully parsed (and call gomp_init_affinity in that case).
4171 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4172 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4173 omp_get_team_num, omp_is_initial_device): New functions.
4174 * libgomp.h: Include stdlib.h.
4175 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
4176 Define.
4177 (struct target_mem_desc): Forward declare.
4178 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
4179 and thread_limit_var fields.
4180 (gomp_get_num_devices): New prototype.
4181 (gomp_cancel_var): New extern decl.
4182 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
4183 team_cancelled and task_queued_count fields. Add comments about
4184 task_{,queued_,running_}count.
4185 (gomp_cancel_kind): New enum.
4186 (gomp_work_share_end_cancel): New prototype.
4187 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
4188 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
4189 and depend fields.
4190 (struct gomp_taskgroup): New type.
4191 (struct gomp_task_depend_entry,
4192 struct gomp_dependers_vec): New types.
4193 (gomp_finish_task): Free depend_hash if non-NULL.
4194 (struct gomp_team_state): Add place_partition_off
4195 and place_partition_len fields.
4196 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
4197 gomp_places_list_len): New extern decls.
4198 (struct gomp_thread): Add place field.
4199 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
4200 (gomp_init_thread_affinity): Add place argument.
4201 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4202 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4203 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4204 gomp_affinity_init_level, gomp_affinity_print_place): New
4205 prototypes.
4206 (gomp_team_start): Add flags argument.
4207 (gomp_thread_limit_var, gomp_remaining_threads_count,
4208 gomp_remaining_threads_lock): Remove.
4209 (gomp_managed_threads_lock): New variable.
4210 (struct gomp_thread_pool): Add threads_busy field.
4211 (gomp_free_thread): New prototype.
4212 * task.c: Include hashtab.h.
4213 (hash_entry_type): New typedef.
4214 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
4215 (gomp_init_task): Clear dependers, depend_hash, depend_count,
4216 copy_ctors_done and taskgroup fields.
4217 (GOMP_task): Add depend argument, handle depend clauses. If
4218 gomp_team_barrier_cancelled or if it's taskgroup has been
4219 cancelled, don't queue or start new tasks. Set copy_ctors_done
4220 field if needed. Initialize taskgroup field. If copy_ctors_done
4221 and already cancelled, don't discard the task. If taskgroup is
4222 non-NULL, enqueue the task into taskgroup queue. Increment
4223 num_children field in taskgroup. Increment task_queued_count.
4224 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
4225 gomp_task_run_post_remove_taskgroup): New inline functions.
4226 (gomp_task_run_post_handle_depend_hash,
4227 gomp_task_run_post_handle_dependers,
4228 gomp_task_run_post_handle_depend): New functions.
4229 (GOMP_taskwait): Use them. If more than one new tasks
4230 have been queued, wake other threads if needed.
4231 (gomp_barrier_handle_tasks): Likewise. If
4232 gomp_team_barrier_cancelled, don't start any new tasks, just free
4233 all tasks.
4234 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
4235 * omp_lib.f90.in
4236 (omp_proc_bind_kind, omp_proc_bind_false,
4237 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
4238 omp_proc_bind_spread): New params.
4239 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4240 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4241 omp_get_team_num, omp_is_initial_device): New interfaces.
4242 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
4243 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
4244 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
4245 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
4246 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
4247 useless use omp_lib_kinds.
4248 * omp.h.in (omp_proc_bind_t): New typedef.
4249 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4250 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4251 omp_get_team_num, omp_is_initial_device): New prototypes.
4252 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
4253 through to gomp_team_start.
4254 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
4255 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
4256 Adjust gomp_parallel_loop_start callers.
4257 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
4258 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
4259 GOMP_loop_end_cancel): New functions.
4260 (GOMP_parallel_end): Add ialias_redirect.
4261 * hashtab.h: New file.
4262 * libgomp.texi (Environment Variables): Minor cleanup,
4263 update section refs to OpenMP 4.0rc2.
4264 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
4265 environment variables.
4266 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
4267 team->work_shares_to_free to thr->ts.work_share before calling
4268 free_work_share.
4269 (gomp_work_share_end_cancel): New function.
4270 * config/linux/proc.c: Include errno.h.
4271 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
4272 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
4273 sizeof (cpu_set_t) to determine number of iterations. Fix up check
4274 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
4275 gomp_cpuset_size is sizeof (cpu_set_t).
4276 (gomp_init_num_threads): Initialize gomp_cpuset_size,
4277 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
4278 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
4279 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
4280 contain any logical CPUs.
4281 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
4282 is NULL. Use gomp_cpusetp instead of &cpuset and pass
4283 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
4284 pthread_getaffinity_np. Check gomp_places_list instead of
4285 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
4286 * config/linux/bar.c (gomp_barrier_wait_end,
4287 gomp_barrier_wait_last): Use BAR_* defines.
4288 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
4289 from state where needed. Set work_share_cancelled to 0 on last
4290 thread.
4291 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
4292 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
4293 functions.
4294 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
4295 Add cpusetsize argument.
4296 (gomp_cpuset_size, gomp_cpusetp): Declare.
4297 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
4298 (affinity_counter): Remove.
4299 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
4300 if CPU_ALLOC_SIZE isn't defined.
4301 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
4302 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
4303 bind current thread to the first place.
4304 (gomp_init_thread_affinity): Rewritten. Add place argument, just
4305 pthread_setaffinity_np to gomp_places_list[place].
4306 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4307 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4308 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4309 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
4310 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
4311 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
4312 (gomp_barrier_t): Add awaited_final field.
4313 (gomp_barrier_init): Initialize awaited_final field.
4314 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
4315 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
4316 prototypes.
4317 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
4318 defines.
4319 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
4320 gomp_team_barrier_cancelled): New inline functions.
4321 (gomp_barrier_last_thread,
4322 gomp_team_barrier_set_task_pending,
4323 gomp_team_barrier_clear_task_pending,
4324 gomp_team_barrier_set_waiting_for_tasks,
4325 gomp_team_barrier_waiting_for_tasks,
4326 gomp_team_barrier_done): Use BAR_* defines.
4327 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
4328 (gomp_barrier_wait_end): Use BAR_* defines.
4329 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
4330 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
4331 Use BAR_* defines.
4332 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
4333 gomp_team_barrier_cancel): New functions.
4334 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
4335 argument.
4336 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4337 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4338 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4339 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
4340 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
4341 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
4342 (gomp_barrier_t): Add cancellable field.
4343 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
4344 gomp_team_barrier_cancel): New prototypes.
4345 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
4346 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
4347 gomp_team_barrier_cancelled): New inline functions.
4348 (gomp_barrier_wait_start, gomp_barrier_last_thread,
4349 gomp_team_barrier_set_task_pending,
4350 gomp_team_barrier_clear_task_pending,
4351 gomp_team_barrier_set_waiting_for_tasks,
4352 gomp_team_barrier_waiting_for_tasks,
4353 gomp_team_barrier_done): Use BAR_* defines.
4354 * barrier.c (GOMP_barrier_cancel): New function.
4355 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
4356 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
4357 omp_proc_bind_spread): New params.
4358 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4359 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4360 omp_get_team_num, omp_is_initial_device): New externals.
4361 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
4362 New functions.
4363 (gomp_resolve_num_threads): Adjust for thread_limit now being in
4364 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
4365 infinity. If not nested, just return minimum of max_num_threads
4366 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
4367 to the returned value. Otherwise, don't update atomically
4368 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
4369 (GOMP_parallel_end): Adjust for thread_limit now being in
4370 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
4371 infinity. Adjust threads_busy in the pool rather than
4372 gomp_remaining_threads_count. Remember team->nthreads and call
4373 gomp_team_end before adjusting threads_busy, if not nested
4374 afterwards, just set it to 1 non-atomically. Add ialias.
4375 (GOMP_parallel_start): Adjust gomp_team_start caller.
4376 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
4377 * testsuite/libgomp.c/affinity-1.c: New test.
4378 * testsuite/libgomp.c/atomic-15.c: New test.
4379 * testsuite/libgomp.c/atomic-16.c: New test.
4380 * testsuite/libgomp.c/atomic-17.c: New test.
4381 * testsuite/libgomp.c/cancel-for-1.c: New test.
4382 * testsuite/libgomp.c/cancel-for-2.c: New test.
4383 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
4384 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
4385 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
4386 * testsuite/libgomp.c/cancel-sections-1.c: New test.
4387 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
4388 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
4389 * testsuite/libgomp.c/depend-1.c: New test.
4390 * testsuite/libgomp.c/depend-2.c: New test.
4391 * testsuite/libgomp.c/depend-3.c: New test.
4392 * testsuite/libgomp.c/depend-4.c: New test.
4393 * testsuite/libgomp.c/for-1.c: New test.
4394 * testsuite/libgomp.c/for-1.h: New file.
4395 * testsuite/libgomp.c/for-2.c: New test.
4396 * testsuite/libgomp.c/for-2.h: New file.
4397 * testsuite/libgomp.c/for-3.c: New test.
4398 * testsuite/libgomp.c/pr58392.c: New test.
4399 * testsuite/libgomp.c/simd-1.c: New test.
4400 * testsuite/libgomp.c/simd-2.c: New test.
4401 * testsuite/libgomp.c/simd-3.c: New test.
4402 * testsuite/libgomp.c/simd-4.c: New test.
4403 * testsuite/libgomp.c/simd-5.c: New test.
4404 * testsuite/libgomp.c/simd-6.c: New test.
4405 * testsuite/libgomp.c/target-1.c: New test.
4406 * testsuite/libgomp.c/target-2.c: New test.
4407 * testsuite/libgomp.c/target-3.c: New test.
4408 * testsuite/libgomp.c/target-4.c: New test.
4409 * testsuite/libgomp.c/target-5.c: New test.
4410 * testsuite/libgomp.c/target-6.c: New test.
4411 * testsuite/libgomp.c/target-7.c: New test.
4412 * testsuite/libgomp.c/taskgroup-1.c: New test.
4413 * testsuite/libgomp.c/thread-limit-1.c: New test.
4414 * testsuite/libgomp.c/thread-limit-2.c: New test.
4415 * testsuite/libgomp.c/thread-limit-3.c: New test.
4416 * testsuite/libgomp.c/udr-1.c: New test.
4417 * testsuite/libgomp.c/udr-2.c: New test.
4418 * testsuite/libgomp.c/udr-3.c: New test.
4419 * testsuite/libgomp.c++/affinity-1.C: New test.
4420 * testsuite/libgomp.c++/atomic-10.C: New test.
4421 * testsuite/libgomp.c++/atomic-11.C: New test.
4422 * testsuite/libgomp.c++/atomic-12.C: New test.
4423 * testsuite/libgomp.c++/atomic-13.C: New test.
4424 * testsuite/libgomp.c++/atomic-14.C: New test.
4425 * testsuite/libgomp.c++/atomic-15.C: New test.
4426 * testsuite/libgomp.c++/cancel-for-1.C: New test.
4427 * testsuite/libgomp.c++/cancel-for-2.C: New test.
4428 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
4429 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
4430 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
4431 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
4432 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
4433 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
4434 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
4435 * testsuite/libgomp.c++/cancel-test.h: New file.
4436 * testsuite/libgomp.c++/for-9.C: New test.
4437 * testsuite/libgomp.c++/for-10.C: New test.
4438 * testsuite/libgomp.c++/for-11.C: New test.
4439 * testsuite/libgomp.c++/simd-1.C: New test.
4440 * testsuite/libgomp.c++/simd-2.C: New test.
4441 * testsuite/libgomp.c++/simd-3.C: New test.
4442 * testsuite/libgomp.c++/simd-4.C: New test.
4443 * testsuite/libgomp.c++/simd-5.C: New test.
4444 * testsuite/libgomp.c++/simd-6.C: New test.
4445 * testsuite/libgomp.c++/simd-7.C: New test.
4446 * testsuite/libgomp.c++/simd-8.C: New test.
4447 * testsuite/libgomp.c++/target-1.C: New test.
4448 * testsuite/libgomp.c++/target-2.C: New test.
4449 * testsuite/libgomp.c++/target-2-aux.cc: New file.
4450 * testsuite/libgomp.c++/target-3.C: New test.
4451 * testsuite/libgomp.c++/taskgroup-1.C: New test.
4452 * testsuite/libgomp.c++/udr-1.C: New test.
4453 * testsuite/libgomp.c++/udr-2.C: New test.
4454 * testsuite/libgomp.c++/udr-3.C: New test.
4455 * testsuite/libgomp.c++/udr-4.C: New test.
4456 * testsuite/libgomp.c++/udr-5.C: New test.
4457 * testsuite/libgomp.c++/udr-6.C: New test.
4458 * testsuite/libgomp.c++/udr-7.C: New test.
4459 * testsuite/libgomp.c++/udr-8.C: New test.
4460 * testsuite/libgomp.c++/udr-9.C: New test.
4461
bd599dea
JJ
44622013-09-20 Jakub Jelinek <jakub@redhat.com>
4463
4464 PR testsuite/57605
4465 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
4466 ALWAYS_CFLAGS.
4467
3cbe17f7
AM
44682013-09-20 Alan Modra <amodra@gmail.com>
4469
4470 * configure: Regenerate.
4471
4befd127
JJ
44722013-09-19 Jakub Jelinek <jakub@redhat.com>
4473
4474 * testsuite/libgomp.c/sections-2.c: New test.
4475
946c8f7b
MS
44762013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
4477
4478 * testsuite/libgomp.fortran/strassen.f90:
4479 Add dg-skip-if aarch64_tiny.
4480
1ef3b58e
IS
44812013-06-20 Iain Sandoe <iain@codesourcery.com>
4482 Cesar Philippidis <cesar@codesourcery.com>
4483
4484 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
4485 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
4486 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
4487 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4488 * testsuite/libgomp.graphite/graphite.exp: Likewise.
4489 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
4490 Use dg-runtest rather than gfortran-dg-runtest.
4491
9275f73a
TS
44922013-06-10 Thomas Schwinge <thomas@codesourcery.com>
4493
4494 * testsuite/libgomp.c/icv-2.c: Extend current handling of
4495 Linux-based x86 systems to cover all GNU systems.
4496 * testsuite/libgomp.c/lock-3.c: Likewise.
4497 * testsuite/libgomp.c/pr48591.c: Likewise.
4498
492992e2
TS
44992013-06-06 Thomas Schwinge <thomas@codesourcery.com>
4500
48df3acb
TS
4501 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
4502 GNU/Hurd, as done for Linux-based systems.
4503
492992e2
TS
4504 * config/posix/ptrlock.h: Fix comment.
4505
4fed6b25
TB
45062013-05-27 Tobias Burnus <burnus@net-b.de>
4507
4508 PR fortran/57423
4509 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
4510 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
4511 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
4512 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
4513 omp_destroy_nest_lock): Correct arguments to match the one in
4514 the OpenMP spec.
4515 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
4516 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
4517 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
4518 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
4519
5a0f4dd3
JJ
45202013-05-16 Jakub Jelinek <jakub@redhat.com>
4521
4522 * testsuite/libgomp.c/loop-13.c: New test.
4523 * testsuite/libgomp.c/loop-14.c: New test.
4524 * testsuite/libgomp.c/loop-15.c: New test.
4525 * testsuite/libgomp.c++/loop-13.C: New test.
4526 * testsuite/libgomp.c++/loop-14.C: New test.
4527 * testsuite/libgomp.c++/loop-15.C: New test.
4528
6d840d99
JJ
45292013-02-06 Jakub Jelinek <jakub@redhat.com>
4530
4531 PR middle-end/56217
4532 * testsuite/libgomp.c++/pr56217.C: New test.
4533
bed8d8a6
AM
45342013-02-01 Alan Modra <amodra@gmail.com>
4535
4536 * task.c (GOMP_task, GOMP_taskwait): Comment.
4537
3b35cd04
DV
45382013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
4539 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
4540
4541 PR libgomp/55561
4542 * config/linux/wait.h (do_spin): Use atomic load for addr.
4543 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
4544 for intptr and ptrlock.
4545 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
4546 for ptrlock.
4547
9a647288
AM
45482013-01-22 Alan Modra <amodra@gmail.com>
4549
4550 PR libgomp/51376
4551 PR libgomp/56073
4552 * task.c (GOMP_task): Revert 2011-12-09 change.
4553 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
4554 barrier to read task->children..
4555 (gomp_barrier_handle_tasks): ..and matching atomic store with
4556 release barrier here when setting parent->children to NULL.
4557
f34dea03
JJ
45582013-01-16 Jakub Jelinek <jakub@redhat.com>
4559 Tobias Burnus <burnus@net-b.de>
4560
4561 PR driver/55884
4562 * testsuite/libgomp.fortran/fortran.exp: Use
4563 -fintrinsic-modules-path= instead of
4564 -fintrinsic-modules-path.
4565
8129609c
RS
45662013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
4567
4568 Update copyright years.
4569
aa86bf1e
TB
45702012-12-19 Tobias Burnus <burnus@net-b.de>
4571
4572 * testsuite/libgomp.fortran/fortran.exp: Set
4573 -fintrinsic-modules-path.
4574
2865ea66
TB
45752012-12-19 Tobias Burnus <burnus@net-b.de>
4576
4577 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
4578 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
4579
4c5ba8d0
JJ
45802012-11-21 Jakub Jelinek <jakub@redhat.com>
4581
4582 PR libgomp/55411
4583 * team.c (gomp_free_thread): Decrease gomp_managed_threads
4584 if pool had any threads_used.
4585
e9f958c2
JH
45862012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
4587
4588 * testsuite/libgomp.c++/pr24455.C: Use
4589 -Wl,-undefined,dynamic_lookup on darwin.
4590
a57d75dc
DE
45912012-11-07 David Edelsohn <dje.gcc@gmail.com>
4592
4593 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
4594
c6c08485
DH
45952012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
4596
4597 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
4598
c1f37c00
IB
45992012-10-23 Ian Bolton <ian.bolton@arm.com>
4600 Jim MacArthur <jim.macarthur@arm.com>
4601 Marcus Shawcroft <marcus.shawcroft@arm.com>
4602 Nigel Stephens <nigel.stephens@arm.com>
4603 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4604 Richard Earnshaw <rearnsha@arm.com>
4605 Sofiane Naci <sofiane.naci@arm.com>
4606 Stephen Thomas <stephen.thomas@arm.com>
4607 Tejas Belagod <tejas.belagod@arm.com>
4608 Yufeng Zhang <yufeng.zhang@arm.com>
4609
4610 * configure.tgt: Add AArch64.
4611
7c424acd
JM
46122012-10-04 Jason Merrill <jason@redhat.com>
4613
4614 * testsuite/libgomp.c++/tls-init1.C: New.
4615
6608378b
DE
46162012-09-14 David Edelsohn <dje.gcc@gmail.com>
4617
4618 * configure: Regenerated.
4619
c24dbebb
CLT
46202012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
4621
4622 * config/linux/mips/futex.h (sys_futex0): Change to static
4623 function with noinline, nomips16 attributes under MIPS16. Adjust
4624 asm statement to place 'li v0,SYS_futex' immediately before
4625 syscall insn.
4626
3d3949df
SL
46272012-07-04 Sandra Loosemore <sandra@codesourcery.com>
4628
4629 * libgomp.texi (Library Index): Renamed from "Index" to prevent
4630 conflict with index.html on case-insensitive file systems.
4631
68a12ef3
UB
46322012-07-03 Uros Bizjak <ubizjak@gmail.com>
4633
4634 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
4635 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
4636
33ad93b9 46372012-07-02 Richard Guenther <rguenther@suse.de>
68a12ef3
UB
4638 Michael Matz <matz@suse.de>
4639 Tobias Grosser <tobias@grosser.es>
4640 Sebastian Pop <sebpop@gmail.com>
33ad93b9
RG
4641
4642 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4643 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
4644 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4645 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4646
e6fdc918
AS
46472012-06-28 Andreas Schwab <schwab@linux-m68k.org>
4648
4649 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
4650
62e0a1ed
RG
46512012-06-22 Richard Guenther <rguenther@suse.de>
4652
4653 Merge from graphite branch
4654 2012-01-13 Tobias Grosser <tobias@grosser.es>
4655
4656 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4657 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
4658
26127932
JJ
46592012-06-07 Jakub Jelinek <jakub@redhat.com>
4660
4661 PR middle-end/53580
4662 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
4663 use GOMP_barrier () call instead.
4664 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4665 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4666 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
4667 call GOMP_barrier instead.
4668 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4669
43fa5db5
JJ
46702012-06-06 Jakub Jelinek <jakub@redhat.com>
4671
4672 PR libgomp/52993
4673 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
4674 argument to memset call.
4675
e6d5f8c9
L
46762012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4677
4678 * configure: Regenerated.
4679
559d990c
MLI
46802012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4681
4682 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
4683
b9c23a61
L
46842012-03-31 H.J. Lu <hongjiu.lu@intel.com>
4685
4686 PR bootstrap/52812
4687 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
4688
c140ddf3
JJ
46892012-03-22 Jakub Jelinek <jakub@redhat.com>
4690
4691 PR middle-end/52547
4692 * testsuite/libgomp.c/pr52547.c: New test.
4693
6a26a74d
BRF
46942012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4695
4696 * testsuite/lib/libgomp.exp: load fortran-modules.exp
4697
b24513a1
RO
46982012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4699
4700 * configure.tgt (mips-sgi-irix6*): Remove.
4701
5c30094f
RO
47022012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4703
4704 * configure.tgt (alpha*-dec-osf*): Remove.
4705
4706 * config/osf/sem.h: Remove.
4707 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
4708
a339c9d6
EB
47092012-02-29 Eric Botcazou <ebotcazou@adacore.com>
4710
4711 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
4712
cc2de92d
RO
47132012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4714
4715 PR libstdc++/52188
4716 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
4717 Remove ENABLE_SYMVERS_SOL2.
4718 * configure: Regenerate.
4719 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
4720 (PREPROCESS): New variable.
4721 (libgomp.ver): New target.
4722 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
4723 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
4724 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
4725 Use libgomp.ver.
4726 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
4727 * Makefile.in: Regenerate.
4728
dd552284
WL
47292012-02-14 Walter Lee <walt@tilera.com>
4730
4731 * configure.tgt: Handle tilegx and tilepro.
4732 * config/linux/tile/futex.h: New file.
4733
31432e21
RG
47342012-02-08 Richard Guenther <rguenther@suse.de>
4735
4736 PR tree-optimization/46886
4737 * testsuite/libgomp.c/pr46886.c: New testcase.
4738
b9264b5f
MK
47392012-01-25 Matthias Klose <doko@ubuntu.com>
4740
4741 * config/linux/arm: Remove empty directory.
4742 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
4743
fbf7be80
AM
47442011-12-09 Alan Modra <amodra@gmail.com>
4745
4746 PR libgomp/51376
4747 * task.c (GOMP_taskwait): Don't access task->children outside of
4748 task_lock mutex region.
4749 (GOMP_task): Likewise.
4750
5de62d00
JJ
47512011-12-06 Jakub Jelinek <jakub@redhat.com>
4752
4753 PR libgomp/51132
4754 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
4755 to file scope.
4756 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
4757 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
4758 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4759 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4760 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
4761
45608a43
AM
47622011-12-02 Alan Modra <amodra@gmail.com>
4763
4764 * config/linux/affinity.c: Use atomic rather than sync builtin.
4765 * config/linux/lock.c: Likewise.
4766 * config/linux/ptrlock.h: Likewise.
4767 * config/linux/ptrlock.c: Likewise.
4768 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
4769 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
4770 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
4771 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
4772 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
4773 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
4774 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
4775 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
4776 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
4777 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
4778
ab6dd406
AM
47792011-11-30 Alan Modra <amodra@gmail.com>
4780
4781 PR libgomp/51298
4782 * config/linux/bar.h: Use atomic rather than sync builtins.
4783 * config/linux/bar.c: Likewise. Add missing acquire
4784 synchronisation on generation field.
4785 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
4786 double unlock.
4787
b40c885f
AM
47882011-11-30 Alan Modra <amodra@gmail.com>
4789
4790 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
4791 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
4792 * config/linux/mutex.h: Use atomic rather than sync builtins.
4793 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
4794 * config/linux/omp-lock.h: Comment fix.
4795 * config/linux/arm/mutex.h: Delete.
4796 * config/linux/powerpc/mutex.h: Delete.
4797 * config/linux/ia64/mutex.h: Delete.
4798 * config/linux/mips/mutex.h: Delete.
4799
3e348fcc
AM
48002011-11-30 Alan Modra <amodra@gmail.com>
4801
4802 PR libgomp/51249
4803 * config/linux/sem.h: Rewrite.
4804 * config/linux/sem.c: Rewrite.
4805
cef86eb2
RH
48062011-11-28 Richard Henderson <rth@redhat.com>
4807
4808 * libgomp.h (enum memmodel): New.
4809
c6084f68
AT
48102011-11-21 Andreas Tobler <andreast@fgznet.ch>
4811
4812 * configure: Regenerate.
4813
06fe026c
MK
48142011-10-10 Matthias Klose <doko@ubuntu.com>
4815
4816 * config/posix95: Remove empty directory.
4817
a6c975bd
JJ
48182011-08-26 Jakub Jelinek <jakub@redhat.com>
4819
4820 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
4821
c26dffff
JJ
48222011-08-19 Jakub Jelinek <jakub@redhat.com>
4823
4824 PR fortran/49792
4825 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
4826 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
4827
ddaad3c8
RO
48282011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4829
4830 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
4831
98d03683
RO
48322011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4833
4834 PR libgomp/49965
4835 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
4836
e0b23d9f
UB
48372011-08-03 Uros Bizjak <ubizjak@gmail.com>
4838
4839 * config/linux/proc.h: New.
4840 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
4841 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
4842 (gomp_init_num_threads): Update call to cpuset_popcount.
4843 (get_num_procs): Ditto.
4844 * config/linux/affinity.c (gomp_init_affinity): Call
4845 gomp_cpuset_popcount.
4846
20906c66
JJ
48472011-08-02 Jakub Jelinek <jakub@redhat.com>
4848
4849 PR fortran/42041
4850 PR fortran/46752
4851 * omp.h.in (omp_in_final): New prototype.
4852 * omp_lib.f90.in (omp_in_final): New interface.
4853 (omp_integer_kind, omp_logical_kind): Remove
4854 and replace all its uses in the module with 4.
4855 (openmp_version): Change to 201107.
4856 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
4857 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
4858 kind for the parameters.
4859 (omp_in_final): New external.
4860 (openmp_version): Change to 201107.
4861 * task.c (omp_in_final): New function.
4862 (gomp_init_task): Initialize final_task.
4863 (GOMP_task): Remove unused attribute from flags. Handle final
4864 tasks.
4865 (GOMP_taskyield): New function.
4866 (omp_in_final): Return true if if (false) or final (true) task
4867 or descendant of final (true).
4868 * fortran.c (omp_in_final_): New function.
4869 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
4870 (GOMP_3.0): Export GOMP_taskyield.
4871 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
4872 variables.
4873 (parse_unsigned_long_list): New function.
4874 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
4875 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
4876 even if parse_affinity returned false.
4877 * config/linux/affinity.c (gomp_init_affinity): Handle
4878 gomp_cpu_affinity_len == 0.
4879 * libgomp_g.h (GOMP_taskyield): New prototype.
4880 * libgomp.h (struct gomp_task): Add final_task field.
4881 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
4882 * team.c (gomp_team_start): Override new task's nthreads_var icv
4883 if list form OMP_NUM_THREADS has been used and it has value for
4884 the new nesting level.
4885
4886 * testsuite/libgomp.c/atomic-11.c: New test.
4887 * testsuite/libgomp.c/atomic-12.c: New test.
4888 * testsuite/libgomp.c/atomic-13.c: New test.
4889 * testsuite/libgomp.c/atomic-14.c: New test.
4890 * testsuite/libgomp.c/reduction-6.c: New test.
4891 * testsuite/libgomp.c/task-5.c: New test.
4892 * testsuite/libgomp.c++/atomic-2.C: New test.
4893 * testsuite/libgomp.c++/atomic-3.C: New test.
4894 * testsuite/libgomp.c++/atomic-4.C: New test.
4895 * testsuite/libgomp.c++/atomic-5.C: New test.
4896 * testsuite/libgomp.c++/atomic-6.C: New test.
4897 * testsuite/libgomp.c++/atomic-7.C: New test.
4898 * testsuite/libgomp.c++/atomic-8.C: New test.
4899 * testsuite/libgomp.c++/atomic-9.C: New test.
4900 * testsuite/libgomp.c++/task-8.C: New test.
4901 * testsuite/libgomp.c++/reduction-4.C: New test.
4902 * testsuite/libgomp.fortran/allocatable7.f90: New test.
4903 * testsuite/libgomp.fortran/allocatable8.f90: New test.
4904 * testsuite/libgomp.fortran/crayptr3.f90: New test.
4905 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
4906 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
4907 * testsuite/libgomp.fortran/pointer1.f90: New test.
4908 * testsuite/libgomp.fortran/pointer2.f90: New test.
4909 * testsuite/libgomp.fortran/task4.f90: New test.
4910
49112011-08-02 Tobias Burnus <burnus@net-b.de>
4912
4913 * libgomp.texi: Update OpenMP spec references to 3.1.
4914 (omp_in_final,OMP_PROC_BIND): New sections.
4915 (OMP_NUM_THREADS): Document that the value can be now a list.
4916 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
4917
c01ecafc
L
49182011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4919
4920 * config/linux/x86/futex.h: Check __x86_64__ instead of
4921 __LP64__.
4922
25142650
JJ
49232011-07-29 Jakub Jelinek <jakub@redhat.com>
4924
4925 PR middle-end/49897
4926 PR middle-end/49898
4927 * testsuite/libgomp.c/pr49897-1.c: New test.
4928 * testsuite/libgomp.c/pr49897-2.c: New test.
4929 * testsuite/libgomp.c/pr49898-1.c: New test.
4930 * testsuite/libgomp.c/pr49898-2.c: New test.
4931
f53d712f
L
49322011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4933
4934 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
4935 for ia32 instead of ilp32.
4936
4937 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
4938 * testsuite/libgomp.c/atomic-6.c: Likewise.
4939
3689198d
SP
49402011-07-23 Sebastian Pop <sebastian.pop@amd.com>
4941
4942 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
4943 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
4944
1a79cb73
RO
49452011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4946
4947 PR libgomp/45351
4948 * config/osf/sem.h: New file.
4949 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
4950
c1f51484
RO
49512011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4952
4953 PR target/49541
4954 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
4955 ldflags.
4956
bfee0724
JJ
49572011-07-15 Jakub Jelinek <jakub@redhat.com>
4958
4959 * config/linux/wait.h (do_spin): New inline, largely copied
4960 from do_wait, just don't do futex_wait here, instead return true if
4961 it should be done.
4962 (do_wait): Implement using do_spin.
4963 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
4964 to prototype.
4965 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4966 __sync_bool_compare_and_swap, pass the oldval to
4967 gomp_mutex_lock_slow.
4968 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
4969 If all mutex contenders are just spinning and not sleeping, don't
4970 change state to 2 unnecessarily. Optimize the loop when state has
4971 already become 2 to use just one atomic operation per loop instead
4972 of two.
4973 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
4974 to prototype.
4975 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4976 __sync_bool_compare_and_swap, pass the oldval to
4977 gomp_mutex_lock_slow.
4978
fb79f500
JJ
49792011-06-22 Jakub Jelinek <jakub@redhat.com>
4980
4981 PR libgomp/49490
4982 * iter.c (gomp_iter_static_next): For chunk size 0
4983 only use n ceil/ nthreads size for the first
4984 n % nthreads threads in the team instead of
4985 all threads except for the last few ones which
4986 get less work or none at all.
4987 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
4988 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
4989 chunk argument, set run_sched_modifier to 0 for static
4990 resp. 1 for other kinds. If chunk argument is 0
4991 and not static, set value to 1.
4992
4577f730
JJ
49932011-05-19 Jakub Jelinek <jakub@redhat.com>
4994
ea93a47b
JJ
4995 PR c++/49043
4996 * testsuite/libgomp.c++/pr49043.C: New test.
4997
4577f730
JJ
4998 PR c++/48869
4999 * testsuite/libgomp.c++/pr48869.C: New test.
5000
e7385332
JJ
50012011-05-06 Jakub Jelinek <jakub@redhat.com>
5002
5003 PR fortran/48894
5004 * fortran.c: Include limits.h.
5005 (TO_INT): Define.
5006 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
5007 *set.
5008 (omp_set_num_threads_8_, omp_set_schedule_8_,
5009 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
5010 omp_get_team_size_8_): Use TO_INT macro.
5011 * testsuite/libgomp.fortran/pr48894.f90: New test.
5012
20790697
JJ
50132011-04-13 Jakub Jelinek <jakub@redhat.com>
5014
5015 PR middle-end/48591
5016 * testsuite/libgomp.c/pr48591.c: New test.
5017
bf382f5f
RO
50182011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5019
5020 PR bootstrap/48135
5021 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
5022 * configure: Regenerate.
5023
113a53c1
JJ
50242011-02-27 Jakub Jelinek <jakub@redhat.com>
5025
5026 PR fortran/47886
5027 * testsuite/libgomp.fortran/task3.f90: New test.
5028
0024f1af
TB
50292011-02-24 Tobias Burnus <burnus@net-b.de>
5030
5031 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
5032
21e1e594
JJ
50332011-02-23 Jakub Jelinek <jakub@redhat.com>
5034
5035 PR libgomp/47854
5036 * libgomp.texi (omp_get_wtime): Don't say time in the past
5037 must be Unix Epoch.
5038
67962076
JJ
50392011-02-18 Jakub Jelinek <jakub@redhat.com>
5040
5041 PR libgomp/47804
5042 * testsuite/libgomp.fortran/fortran.exp: Check for both
5043 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
5044 but $blddir != "", still append ${blddir}/${lang_library_path}
5045 to ld_library_path.
5046
3808007c
TB
50472011-02-16 Tobias Burnus <burnus@net-b.de>
5048
5049 PR libgomp/47758
5050 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
5051 of libquadmath.a before adding its libpath to ldflags.
5052
53b4d41d
JJ
50532011-02-14 Jakub Jelinek <jakub@redhat.com>
5054
5055 PR libgomp/47731
5056 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
5057 to FUTEX_WAIT futex syscall.
5058 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
5059
029c8f3e
RW
50602011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5061
5062 * configure: Regenerate.
5063
bddd6626
BK
50642011-01-20 Benjamin Kosnik <bkoz@redhat.com>
5065
5066 PR libstdc++/36104
5067 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
5068
f1d4ab26
GP
50692011-01-16 Gerald Pfeifer
5070
5071 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
5072
2b503136
JJ
50732010-12-14 Jakub Jelinek <jakub@redhat.com>
5074
5075 PR fortran/46874
5076 * libgomp.fortran/allocatable6.f90: New test.
5077
c0f9d583
RO
50782010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5079
5080 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
5081 * configure: Regenerate.
5082
7de6ba7a
DK
50832010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
5084
5085 PR target/40125
5086 PR lto/46695
5087 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
5088 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
5089 * aclocal.m4: Regenerate.
5090 * configure: Regenerate.
5091 * Makefile.in: Regenerate.
5092 * testsuite/Makefile.in: Regenerate.
5093
b7516041
JJ
50942010-12-02 Jakub Jelinek <jakub@redhat.com>
5095
edaadf74
JJ
5096 PR fortran/46753
5097 * libgomp.fortran/pr46753.f90: New test.
5098
4c698cf8
JJ
5099 PR libgomp/43706
5100 * env.c (initialize_env): Default to spin count 300000
5101 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
5102 is specified.
5103
b7516041
JJ
5104 PR libgomp/45240
5105 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
5106 at the end if sync builtins aren't supported.
5107
6b43a34c
RO
51082010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5109
5110 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
5111
950691fa
RO
51122010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5113
5114 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
5115
fb9041ea
IS
51162010-11-24 Iain Sandoe <iains@gcc.gnu.org>
5117
5118 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
5119
1ec601bf
FXC
51202010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5121 Tobias Burnus <burnus@net-b.de>
5122
5123 PR fortran/32049
3e348fcc 5124 * configure.ac:
1ec601bf
FXC
5125 * configure: Regenerate.
5126
d213e92e
MS
51272010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
5128
5129 * config/linux/futex.h: New.
5130 * config/linux/arm/mutex.h: New.
5131 * configure.tgt (arm*-*-linux*): Add config path.
5132
89d5c66f
SP
51332010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5134
5135 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
5136
87350d4a
TB
51372010-09-23 Tobias Burnus <burnus@net-b.de>
5138
5139 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
5140 Change Fortran datatype to LOGICAL.
5141 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
5142 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
5143
75bc9e5e
RW
51442010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5145
5146 * configure: Regenerate.
5147
acb5c916
JJ
51482010-07-26 Jakub Jelinek <jakub@redhat.com>
5149
5150 * libgomp.texi: Add function keyword to a couple of Fortran
5151 interfaces, use integer instead of int for Fortran.
5152
6a2ba183
AH
51532010-07-26 Aldy Hernandez <aldyh@redhat.com>
5154
5155 * libgomp.texi: Fix spelling and pasto problems throughout.
5156 Adjust prototypes to match code.
5157
df161b69
TB
51582010-07-24 Tobias Burnus <burnus@net-b.de>
5159
5160 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
5161 silence -fwhole-file warning.
5162
16c9d3b1
RO
51632010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5164
5165 * configure.tgt (*-*-solaris2.[56]*): Removed.
5166
6d28b933
RO
51672010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5168
5169 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
5170 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
5171 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
5172 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
5173 targetting solaris2*.
5174 * configure: Regenerate.
5175 * config.h.in: Regenerate.
5176
5177 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
5178 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
5179 Add libgomp_version_dep.
5180 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
5181 versioning.
5182 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
5183 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
5184 * Makefile.in: Regenerate.
5185
5186 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
5187 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
5188 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
5189 to common block, protected by
5190 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
5191
07a67d6a
GP
51922010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
5193
5194 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
5195
dbd34b89
IS
51962010-06-09 Iain Sandoe <iains@gcc.gnu.org>
5197
5198 PR bootstrap/43170
5199 * configure: Regenerate.
5200
13917ae3
RW
52012010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5202
5203 PR other/43620
5204 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
5205 * configure: Regenerate.
5206 * Makefile.in: Regenerate.
5207 * testsuite/Makefile.in: Regenerate.
5208
b83a701b
JJ
52092010-04-26 Jakub Jelinek <jakub@redhat.com>
5210
5211 PR c/43893
5212 * testsuite/libgomp.c/pr43893.c: New test.
5213 * testsuite/libgomp.c++/pr43893.C: New test.
5214
78db7d92
JJ
52152010-04-21 Jakub Jelinek <jakub@redhat.com>
5216
5217 PR middle-end/43570
5218 * testsuite/libgomp.fortran/vla8.f90: New test.
5219
5221d7a9
JJ
52202010-04-20 Jakub Jelinek <jakub@redhat.com>
5221
e4ba7a60
JJ
5222 PR libgomp/43706
5223 * config/linux/affinity.c (gomp_init_affinity): Decrease
5224 gomp_available_cpus if affinity mask confines the process to fewer
5225 CPUs.
5226 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
5227 non-NULL, just return gomp_available_cpus.
5228
5221d7a9
JJ
5229 PR libgomp/43569
5230 * sections.c (gomp_sections_init): Initialize ws->mode.
5231
289a9f86
UB
52322010-04-14 Uros Bizjak <ubizjak@gmail.com>
5233
5234 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
5235 not unused bar variable.
5236 * configure: Regenerate.
5237
4d9e8446
RW
52382010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5239
5240 * Makefile.in: Regenerate.
5241 * aclocal.m4: Regenerate.
5242 * testsuite/Makefile.in: Regenerate.
5243
80f046cc
JJ
52442010-03-22 Jakub Jelinek <jakub@redhat.com>
5245
5246 PR libgomp/42942
5247 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
5248 (initialize_env): Adjust callers.
5249 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
5250 when the argument is 0.
5251
5252 * testsuite/libgomp.c/pr42942.c: New test.
5253
b58543c3
SP
52542010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
5255
5256 PR middle-end/42644
5257 PR middle-end/42130
5258 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
5259 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
5260
41d1138f
RO
52612010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5262
5263 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
5264 * testsuite/libgomp.c++/task-6.C: Likewise.
5265
6684eb28
SE
52662010-01-28 Steve Ellcey <sje@cup.hp.com>
5267
5268 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
5269
2122aa97
PB
52702010-01-26 Paolo Bonzini <bonzini@gnu.org>
5271
5272 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
5273 * configure: Regenerate.
5274
057dd91d
JJ
52752010-01-26 Jakub Jelinek <jakub@redhat.com>
5276
5277 PR fortran/42866
5278 * testsuite/libgomp.fortran/allocatable5.f90: New test.
5279
d0709b6a
PB
52802010-01-20 Paolo Bonzini <bonzini@gnu.org>
5281
5282 * configure.ac: Test for executability of GFORTRAN.
5283 * configure: Regenerate.
5284
b9497ab5
RO
52852010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5286
5287 * configure: Regenerate.
5288
45de5648
L
52892010-01-04 H.J. Lu <hongjiu.lu@intel.com>
5290
5291 PR libgomp/42602
5292 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
5293
e74003a1
RG
52942010-01-03 Richard Guenther <rguenther@suse.de>
5295
5296 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
5297
1b3abda8
SP
52982009-12-23 Sebastian Pop <sebpop@gmail.com>
5299
5300 * testsuite/libgomp.graphite/pr4118.c: New.
5301
e19977d3
IS
53022009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5303
5304 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
5305 for darwin, protect the test with require-effective-target tls_runtime.
5306 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
5307
1d32a772
IS
53082009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5309
5310 PR target/41605
5311 * testsuite/lib/libgomp.exp: Provide -B options to allow for
5312 link spec %s substitutions for static libraries.
5313
deb109b2
JH
53142009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
5315
5316 PR testsuite/42135
5317 * libgomp.graphite/force-parallel-2.c: Reduce array size.
5318
43e02a8a
RW
53192009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5320
5321 * Makefile.in: Regenerate.
5322 * configure: Regenerate.
5323 * testsuite/Makefile.in: Regenerate.
5324
17f35e23
DK
53252009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
5326
5327 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
5328 settings for LC_ALL and LANG.
5329
281e33e1
JJ
53302009-11-25 Jakub Jelinek <jakub@redhat.com>
5331
5332 PR fortran/42162
5333 * testsuite/libgomp.fortran/pr42162.f90: New test.
5334
2b32c27d
JJ
53352009-11-13 Jakub Jelinek <jakub@redhat.com>
5336
5337 PR middle-end/42029
281e33e1 5338 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 5339
89c74f4a
JJ
53402009-10-26 Jakub Jelinek <jakub@redhat.com>
5341
5342 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
5343 *s. Accept ld version without text in ()s.
5344 * configure: Regenerated.
5345
7e06c3d6
EB
53462009-10-22 Razya Ladelsky <razya@il.ibm.com>
5347
5348 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
5349
0046b1a7
RW
53502009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5351
5352 PR libgomp/41418
5353 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
5354 or a hyphen (happens with fortran language disabled).
5355 * configure: Regenerate.
5356
c82852f7
RW
53572009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5358
5359 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
5360 use sed script portable to Solaris /bin/sed for extracting ld
5361 version.
5362 * configure: Regenerate.
5363
98f3eb1f
AM
53642009-09-17 Alexander Monakov <amonakov@ispras.ru>
5365
5366 * testsuite/libgomp.graphite/bounds.c: New test.
5367
878f62e5
RW
53682009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5369
5370 * Makefile.am (libgomp_la_LINK): New.
5371 * Makefile.in: Regenerate.
5372
df58e648
RW
53732009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5374
5375 * configure.ac (AC_PREREQ): Bump to 2.64.
5376
5213506e
RW
53772009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5378
70fa0efa
RW
5379 * Makefile.am (install-html, install-pdf): Remove.
5380 * Makefile.in: Regenerate.
5381
5213506e
RW
5382 * Makefile.in: Regenerate.
5383 * aclocal.m4: Regenerate.
5384 * config.h.in: Regenerate.
5385 * configure: Regenerate.
5386 * testsuite/Makefile.in: Regenerate.
5387
84fec8a5
RW
53882009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5389
5390 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
5391 * Makefile.in: Regenerate.
5392
197c68cc
DK
53932009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
5394
5395 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
5396 * Makefile.in: Regenerate.
5397
693d54f2
TB
53982009-08-19 Tobias Burnus <burnus@net-b.de>
5399
5400 PR fortran/41102
5401 omp_lib.h.in: Fix -std=f95 errors.
5402
8cac884c
DE
54032009-08-14 David Edelsohn <edelsohn@gnu.org>
5404
5405 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
5406 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
5407 * testsuite/libgomp.graphite/graphite.exp: New.
5408
78729ee2
AT
54092009-08-05 Andreas Tobler <a.tobler@schweiz.org>
5410
5411 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
5412 only build.
5413
b13b7f39
DD
54142009-08-04 David Daney <ddaney@caviumnetworks.com>
5415
5416 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
5417 needed memory barrier semantics.
5418 * config/linux/mips/mutex.h: New file.
5419
1b3b24c2
RW
54202009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5421
5422 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
5423
396b7fa4
JM
54242009-07-16 Joseph Myers <joseph@codesourcery.com>
5425
5426 * configure: Regenerate.
5427
33cde516
RS
54282009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
5429
5430 PR testsuite/40699
5431 PR testsuite/40707
5432 PR testsuite/40709
5433 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
5434 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
5435 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
5436
bc21bfa5
RS
54372009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
5438
5439 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
5440 options when choosing a multilib.
5441
b30bfd40
RS
54422009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
5443
5444 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
5445 ld_library_path. Use add_path. Add just find_libgcc_s to
5446 ld_library_path, not every libgcc multilib directory.
5447 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
5448 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
5449 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
5450 Use add_path.
5451 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
5452
479c15c2
NF
54532009-06-09 Nathan Froyd <froydnj@codesourcery.com>
5454
5455 * Makefile.am (LTLDFLAGS): Define.
5456 (LINK): Define.
5457 * Makefile.in: Regenerate.
5458
667e6f89
JB
54592009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
5460
5461 PR fortran/39718
5462 * testsuite/libgomp.fortran/fortran.exp: Don't link with
5463 libgfortranbegin, check existence of libgfortran.a instead of
5464 libgfortranbegin.a.
5465
6dea8e99
JJ
54662009-05-20 Jakub Jelinek <jakub@redhat.com>
5467
5468 PR libgomp/40174
5469 * team.c (gomp_thread_start): Destroy thr->release semaphore.
5470 (gomp_free_pool_helper): Likewise.
5471
34d01e1d
VL
54722009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
5473 Jakub Jelinek <jakub@redhat.com>
5474
5475 PR fortran/35423
5476 * testsuite/libgomp.fortran/workshare2.f90: New test.
5477
748086b7
JJ
54782009-04-09 Nick Clifton <nickc@redhat.com>
5479
5480 * iter.c: Change copyright header to refer to version 3 of the
5481 GNU General Public License with version 3.1 of the GCC Runtime
5482 Library Exception and to point readers at the COPYING3 and
5483 COPYING3.RUNTIME files and the FSF's license web page.
5484 * alloc.c: Likewise.
5485 * barrier.c: Likewise.
5486 * config/bsd/proc.c: Likewise.
5487 * config/linux/affinity.c: Likewise.
5488 * config/linux/alpha/futex.h: Likewise.
5489 * config/linux/bar.c: Likewise.
5490 * config/linux/bar.h: Likewise.
5491 * config/linux/ia64/futex.h: Likewise.
5492 * config/linux/ia64/mutex.h: Likewise.
5493 * config/linux/lock.c: Likewise.
5494 * config/linux/mips/futex.h: Likewise.
5495 * config/linux/mutex.c: Likewise.
5496 * config/linux/mutex.h: Likewise.
5497 * config/linux/powerpc/futex.h: Likewise.
5498 * config/linux/proc.c: Likewise.
5499 * config/linux/ptrlock.c: Likewise.
5500 * config/linux/ptrlock.h: Likewise.
5501 * config/linux/s390/futex.h: Likewise.
5502 * config/linux/sem.c: Likewise.
5503 * config/linux/sem.h: Likewise.
5504 * config/linux/sparc/futex.h: Likewise.
5505 * config/linux/wait.h: Likewise.
5506 * config/linux/x86/futex.h: Likewise.
5507 * config/mingw32/proc.c: Likewise.
5508 * config/mingw32/time.c: Likewise.
5509 * config/posix/affinity.c: Likewise.
5510 * config/posix/bar.c: Likewise.
5511 * config/posix/bar.h: Likewise.
5512 * config/posix/lock.c: Likewise.
5513 * config/posix/mutex.h: Likewise.
5514 * config/posix/proc.c: Likewise.
5515 * config/posix/ptrlock.h: Likewise.
5516 * config/posix/sem.c: Likewise.
5517 * config/posix/sem.h: Likewise.
5518 * config/posix/time.c: Likewise.
5519 * config/posix95/lock.c: Likewise.
5520 * critical.c: Likewise.
5521 * env.c: Likewise.
5522 * error.c: Likewise.
5523 * fortran.c: Likewise.
5524 * iter_ull.c: Likewise.
5525 * libgomp.h: Likewise.
5526 * libgomp_f.h.in: Likewise.
5527 * libgomp_g.h: Likewise.
5528 * loop.c: Likewise.
5529 * loop_ull.c: Likewise.
5530 * omp.h.in: Likewise.
5531 * omp_lib.f90.in: Likewise.
5532 * omp_lib.h.in: Likewise.
5533 * ordered.c: Likewise.
5534 * parallel.c: Likewise.
5535 * sections.c: Likewise.
5536 * single.c: Likewise.
5537 * task.c: Likewise.
5538 * team.c: Likewise.
5539 * work.c: Likewise.
5540
55412009-04-09 Jakub Jelinek <jakub@redhat.com>
5542
5543 * testsuite/config/default.exp: Change copyright header to refer to
5544 version 3 of the GNU General Public License and to point readers
5545 at the COPYING3 file and the FSF's license web page.
5546
4f0ae266
JJ
55472009-04-08 Jakub Jelinek <jakub@redhat.com>
5548
5549 PR middle-end/39573
5550 * libgomp.c++/pr39573.C: New test.
5551
03742a9b
JJ
55522009-04-01 Jakub Jelinek <jakub@redhat.com>
5553
5554 PR other/39591
5555 * testsuite/libgomp.c/pr39591-1.c: New test.
5556 * testsuite/libgomp.c/pr39591-2.c: New test.
5557 * testsuite/libgomp.c/pr39591-3.c: New test.
5558
e50ea10b
UB
55592009-03-25 Uros Bizjak <ubizjak@gmail.com>
5560
5561 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
5562 * testsuite/libgomp.c/atomic-6.c: Ditto.
5563
c5cdb03f
JJ
55642009-03-23 Jakub Jelinek <jakub@redhat.com>
5565
5566 PR c/39495
5567 * testsuite/libgomp.c/loop-12.c: New test.
5568 * testsuite/libgomp.c/loop-11.c: New test.
5569 * testsuite/libgomp.c++/loop-11.C: New test.
5570 * testsuite/libgomp.c++/loop-12.C: New test.
5571 * testsuite/libgomp.c++/for-8.C: New test.
5572
7a9d3fe8
RW
55732009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5574
5575 * configure: Regenerate.
5576
3ad6b266
JJ
55772009-02-11 Jakub Jelinek <jakub@redhat.com>
5578
5579 PR middle-end/39154
5580 * testsuite/libgomp.c/pr39154.c: New test.
5581
b39dea08
ILT
55822009-01-30 Ian Lance Taylor <iant@google.com>
5583
5584 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
5585 libgomp_ld_is_gold. Get gold version number.
5586 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
5587 * configure: Rebuild.
5588
72c66596
IS
55892009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5590
e50ea10b 5591 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
5592 use libgfortran.a%s in their specs.
5593
876080ff
JJ
55942009-01-07 Jakub Jelinek <jakub@redhat.com>
5595
5596 PR libgomp/38086
5597 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
5598 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
5599 HAVE_AS_SYMVER_DIRECTIVE is not defined.
5600 * configure: Regenerated.
5601 * config.h.in: Likewise.
5602
e4ebaef3
JJ
56032008-12-28 Jakub Jelinek <jakub@redhat.com>
5604
5605 PR c++/38650
5606 * testsuite/libgomp.c/pr38650.c: New test.
5607 * testsuite/libgomp.c++/pr38650.C: New test.
5608
382017a6
JJ
56092008-12-27 Jakub Jelinek <jakub@redhat.com>
5610
5611 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
5612
79644b27
UB
56132008-12-26 Uros Bizjak <ubizjak@gmail.com>
5614
5615 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
5616
baafc534
RW
56172008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5618
5619 * configure: Regenerate.
5620
d9c194cb
JJ
56212008-12-08 Jakub Jelinek <jakub@redhat.com>
5622
5623 PR middle-end/36802
5624 * testsuite/libgomp.c/pr36802-1.c: New test.
5625 * testsuite/libgomp.c/pr36802-2.c: New test.
5626 * testsuite/libgomp.c/pr36802-3.c: New test.
5627
86a182bf
JJ
56282008-12-01 Janis Johnson <janis187@us.ibm.com>
5629
5630 PR libgomp/38270
5631 * config/linux/powerpc/mutex.h: New.
5632
956adfaf
JJ
56332008-12-01 Jakub Jelinek <jakub@redhat.com>
5634
a2d4cdc9
JJ
5635 PR c++/38257
5636 * testsuite/libgomp.c++/for-7.C: New test.
5637
956adfaf
JJ
5638 PR c++/38348
5639 * testsuite/libgomp.c++/for-6.C: New test.
5640
d4038ca2
JJ
56412008-11-26 Janis Johnson <janis187@us.ibm.com>
5642
5643 PR testsuite/28870
5644 * testsuite/lib/libgomp.exp: Include new timeout library files.
5645 (libgomp_target_compile): Set timeout value from new proc.
5646
8b159eea
SE
56472008-11-13 Steve Ellcey <sje@cup.hp.com>
5648
5649 PR libgomp/37938
5650 * config/linux/ia64/mutex.h: New.
5651
5c6ed53a
TB
56522008-11-04 Tobias Burnus <burnus@net-b.de>
5653
5654 PR libgomp/37935
5655 * libgomp.texi (Runtime library routines, environment variables):
5656 Update for OpenMP version 3.0.
5657
6b4a97ed
PG
56582008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
5659 Steve Ellcey <sje@cup.hp.com>
5660
5661 * configure: Regenerate for new libtool.
5662 * Makefile.in: Ditto.
5663 * testsuite/Makefile.in: Ditto.
5664
e2b34106
JJ
56652008-09-19 Jakub Jelinek <jakub@redhat.com>
5666 Andreas Tobler <a.tobler@schweiz.org>
5667
5668 * config/bsd/proc.c: New file.
8c3b3600 5669 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
5670 * configure.ac: Check for header <sys/sysctl.h>
5671 * configure: Regenerate.
5672 * config.h.in: Likewise.
5673
3606b8bf
JJ
56742008-09-05 Janis Johnson <janis187@us.ibm.com>
5675
5676 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
5677
6528b88d
AL
56782008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5679
5680 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
5681 * Makefile.in: Regenerated.
5682 * testsuite/Makefile.in: Regenerated.
5683
d9b14b12 56842008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 5685
a16b68bb 5686 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
5687 depend on blddir if blddir exists.
5688 (libgomp_target_compile): Likewise.
5689 * testsuite/libgomp.c++/c++.exp: Likewise.
5690 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5691
70b1e376
RW
56922008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5693
5694 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
5695 Do not list GPL as Invariant Section.
5696
318e8c3f
IG
56972008-07-28 Ilie Garbacea <ilie@mips.com>
5698 Chao-ying Fu <fu@mips.com>
5699
5700 * configure.tgt: Enable futex for MIPS.
5701 * config/linux/mips/futex.h: New file.
5702
4db72361
JJ
57032008-07-16 Jakub Jelinek <jakub@redhat.com>
5704
5705 * team.c (gomp_team_end): Free team immediately if it has
5706 just one thread.
5707
87bd23b8
DE
57082008-07-08 David Edelsohn <edelsohn@gnu.org>
5709
5710 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
5711 * testsuite/libgomp.fortran/fortran.exp: Same.
5712 * testsuite/libgomp.c/c.exp: Same.
5713 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
5714 directory to library path first.
5715
323ff903
KW
57162008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
5717
5718 * env.c (parse_stacksize): Add cast to avoid warning.
5719 (parse_spincount): Likewise.
5720
b357f682
JJ
57212008-06-27 Jakub Jelinek <jakub@redhat.com>
5722
ca2b1311
JJ
5723 * testsuite/libgomp.c/loop-10.c: New test.
5724 * libgomp.c/loop-3.c (main): Add lastprivate clause.
5725 * libgomp.c++/loop-6.C (main): Likewise.
5726
b357f682
JJ
5727 PR debug/36617
5728 * testsuite/libgomp.c/debug-1.c: New test.
5729
09a46078
JJ
57302008-06-19 Jakub Jelinek <jakub@redhat.com>
5731
5732 * testsuite/libgomp.c/nqueens-1.c: New test.
5733
2368a460
JJ
5734 PR c++/36523
5735 * testsuite/libgomp.c++/task-7.C: New function.
5736
18c04407
RW
57372008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5738
5739 * configure: Regenerate.
5740
9c4e59e0
JDA
57412008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5742
5743 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
5744 mutex when HAVE_SYNC_BUILTINS isn't defined.
5745
6ccde948
RW
57462008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5747
5748 * libgomp.texi (omp_test_lock): Fix typo.
5749
b896f9fd
TB
57502008-06-12 Tobias Burnus <burnus@net-b.de>
5751
5752 * omp_lib.f90.in: Add "implicit none".
5753
c34938a8
JJ
57542008-06-12 Jakub Jelinek <jakub@redhat.com>
5755
5756 PR middle-end/36506
5757 * testsuite/libgomp.c/reduction-5.c: New test.
5758
976e44e3
JJ
57592008-06-11 Jakub Jelinek <jakub@redhat.com>
5760
5f836cbb
JJ
5761 * libgomp.h (struct gomp_task): Add in_tied_task field.
5762 * task.c (gomp_init_task): Initialize it.
5763 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
5764 unconditionally. Don't call gomp_team_barrier_wake if
5765 current task is implicit or if(0) from implicit and number of
5766 running tasks is equal to nthreads - 1.
5767
01501fc8
JJ
5768 PR libgomp/36471
5769 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
5770 omp_get_team_size_8): Fix pastos.
5771
976e44e3
JJ
5772 PR libgomp/36469
5773 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
5774 * configure: Regenerated.
5775 * config.h.in: Regenerated.
5776 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
5777 defined.
5778
e919209b
AT
57792008-06-06 Andreas Tobler <a.tobler@schweiz.org>
5780
5781 PR bootstrap/36452
5782 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
5783 (GOMP_loop_ull_dynamic_start): Likewise.
5784 (GOMP_loop_ull_guided_start): Likewise.
5785 (GOMP_loop_ull_ordered_static_start): Likewise.
5786 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
5787 (GOMP_loop_ull_ordered_guided_start): Likewise.
5788
a68ab351
JJ
57892008-06-06 Jakub Jelinek <jakub@redhat.com>
5790 Richard Henderson <rth@redhat.com>
5791 Ulrich Drepper <drepper@redhat.com>
5792 Jakob Blomer <jakob.blomer@ira.uka.de>
5793
5794 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
5795 Substitute also OMP_*LOCK_25*.
5796 * configure: Regenerated.
5797 * config.h.in: Regenerated.
5798 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
5799 ptrlock.c and task.c.
5800 * Makefile.in: Regenerated.
5801 * testsuite/Makefile.in: Regenerated.
5802 * task.c: New file.
5803 * loop_ull.c: New file.
5804 * iter_ull.c: New file.
5805 * libgomp.h: Include ptrlock.h.
5806 (enum gomp_task_kind): New type.
5807 (struct gomp_team): Add task_lock, task_queue, task_count,
5808 task_running_count, single_count fields. Add
5809 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
5810 Remove work_share_lock, generation_mask,
5811 oldest_live_gen, num_live_gen and init_work_shares fields, add
5812 work work_share_list_alloc, work_share_list_free and work_share_chunk
5813 fields. Change work_shares from pointer to pointers into an array.
5814 Change ordered_release field into gomp_sem_t ** from flexible array
5815 member. Add implicit_task and initial_work_shares fields.
5816 Move close to the end of the struct.
5817 (struct gomp_team_state): Add single_count, last_work_share,
5818 active_level and level fields, remove work_share_generation.
5819 (gomp_barrier_handle_tasks): New prototype.
5820 (gomp_finish_task): New inline function.
5821 (struct gomp_work_share): Move chunk_size, end, incr into
5822 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
5823 next_ll fields. Reshuffle fields. Add next_alloc,
5824 next_ws, next_free and inline_ordered_team_ids fields, change
5825 ordered_team_ids into pointer from flexible array member.
5826 Add mode field. Put lock and next into a different cache line
5827 from most of the write-once fields.
5828 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
5829 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
5830 gomp_iter_ull_guided_next): New prototypes.
5831 (gomp_new_icv): New prototype.
5832 (struct gomp_thread): Add thread_pool and task fields.
5833 (struct gomp_thread_pool): New type.
5834 (gomp_new_team): New prototype.
5835 (gomp_team_start): Change type of last argument.
5836 (gomp_new_work_share): Removed.
5837 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
5838 (gomp_work_share_init_done): New static inline.
5839 (gomp_throttled_spin_count_var, gomp_available_cpus,
5840 gomp_managed_threads): New extern decls.
5841 (gomp_init_task): New prototype.
5842 (gomp_spin_count_var): New extern var decl.
5843 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
5844 or no alias support, or if not PIC.
5845 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
5846 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
5847 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
5848 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
5849 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
5850 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
5851 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
5852 gomp_test_nest_lock_25): New prototypes.
5853 (omp_lock_symver, strong_alias): Define.
5854 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
5855 decls.
5856 (gomp_end_task): New.
5857 (struct gomp_task_icv, gomp_global_icv): New.
5858 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
5859 (struct gomp_task): New.
5860 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5861 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5862 (gomp_icv): New.
5863 (gomp_schedule_type): Reorder enum to match
5864 omp_sched_t.
5865 * team.c (struct gomp_thread_start_data): Add thread_pool and task
5866 fields.
5867 (gomp_thread_start): Add gomp_team_barrier_wait call.
5868 For non-nested case remove clearing of docked thread thr fields.
5869 Use pool fields instead of global gomp_* variables. Use
5870 gomp_barrier_wait_last when needed. Initialize ts.active_level.
5871 Create tasks for each member thread.
5872 (free_team): Only destroy team barrier, task_lock here and free it.
5873 (gomp_free_thread): Free last_team if non-NULL.
5874 (gomp_team_end): Call gomp_team_barrier_wait instead of
5875 gomp_barrier_wait. For nested case call one extra
5876 gomp_barrier_wait. Move here some destruction from free_team.
5877 Call free_team on pool->last_team if any, rather than freeing
5878 current team. Destroy work_share_list_free_lock ifndef
5879 HAVE_SYNC_BUILTINS.
5880 (gomp_new_icv): New function.
5881 (gomp_threads, gomp_threads_size, gomp_threads_used,
5882 gomp_threads_dock): Removed.
5883 (gomp_thread_destructor): New variable.
5884 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
5885 functions.
5886 (gomp_team_start): Create new pool if current thread doesn't have
3e348fcc 5887 one. Use pool fields instead of global gomp_* variables.
a68ab351
JJ
5888 Initialize thread_pool field for new threads. Clear single_count.
5889 Change last argument from ws to team, don't create
5890 new team, set ts.work_share to &team->work_shares[0] and clear
5891 ts.last_work_share. Don't clear ts.work_share_generation.
5892 If number of threads changed, adjust atomically gomp_managed_threads.
5893 Use gomp_init_task instead of gomp_new_task,
5894 set thr->task to the corresponding implicit_task array entry.
5895 Create tasks for each member thread. Initialize ts.level.
5896 (initialize_team): Call pthread_key_create on
5897 gomp_thread_destructor.
5898 (team_destructor): New function.
5899 (new_team): Removed.
5900 (gomp_new_team): New function.
5901 (free_team): Free gomp_work_share blocks chained through next_alloc,
5902 instead of freeing work_shares and destroying work_share_lock.
5903 (gomp_team_end): Call gomp_fini_work_share. If number of threads
5904 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
5905 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
5906 of gomp_barrier_wait.
5907 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
5908 instead of gomp_barrier_wait. Call gomp_work_share_init_done
5909 if gomp_work_share_start returned true. Don't unlock ws->lock.
5910 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
5911 of gomp_barrier_wait.
5912 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
5913 gomp_work_share_init_done if gomp_work_share_start returned true.
5914 Don't unlock ws->lock.
5915 * work.c: Include stddef.h.
5916 (free_work_share): Use work_share_list_free_lock instead
5917 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
5918 Call gomp_fini_work_share and then either free ws if orphaned, or
5919 put it into work_share_list_free list of the current team.
5920 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
5921 functions.
5922 (gomp_work_share_start, gomp_work_share_end,
5923 gomp_work_share_end_nowait): Rewritten.
5924 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
5925 (openmp_version): Set to 200805.
5926 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5927 omp_sched_guided, omp_sched_auto): New parameters.
5928 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5929 omp_set_max_active_levels, omp_get_max_active_levels,
5930 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5931 omp_get_active_level): New interfaces.
5932 * omp_lib.h.in (openmp_version): Set to 200805.
5933 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5934 omp_sched_guided, omp_sched_auto): New parameters.
5935 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5936 omp_set_max_active_levels, omp_get_max_active_levels,
5937 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5938 omp_get_active_level): New externals.
5939 * loop.c: Include limits.h.
5940 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
5941 GFS_AUTO.
5942 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
5943 Likewise. Use gomp_icv.
5944 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
5945 ts.static_trip here.
5946 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
5947 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
5948 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
5949 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
5950 don't unlock ws->lock, otherwise lock it.
5951 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
5952 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
5953 (gomp_parallel_loop_start): Call gomp_new_team instead of
5954 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
5955 Adjust gomp_team_start caller. Pass 0 as second argument to
5956 gomp_resolve_num_threads.
5957 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
5958 If adding ws->chunk_size nthreads + 1 times after end won't
5959 overflow, set ws->mode to 1.
5960 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
5961 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
5962 GOMP_loop_ull_ordered_static_start,
5963 GOMP_loop_ull_ordered_dynamic_start,
5964 GOMP_loop_ull_ordered_guided_start,
5965 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
5966 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
5967 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
5968 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
5969 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
5970 prototypes.
5971 * libgomp.map: Export lock routines also @@OMP_2.0.
5972 (GOMP_loop_ordered_dynamic_first,
5973 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
5974 GOMP_loop_ordered_static_first): Remove.
5975 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
5976 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
5977 GOMP_loop_ull_ordered_dynamic_next,
5978 GOMP_loop_ull_ordered_dynamic_start,
5979 GOMP_loop_ull_ordered_guided_next,
5980 GOMP_loop_ull_ordered_guided_start,
5981 GOMP_loop_ull_ordered_runtime_next,
5982 GOMP_loop_ull_ordered_runtime_start,
5983 GOMP_loop_ull_ordered_static_next,
5984 GOMP_loop_ull_ordered_static_start,
5985 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
5986 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
5987 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
5988 (omp_set_schedule, omp_get_schedule,
5989 omp_get_thread_limit, omp_set_max_active_levels,
5990 omp_get_max_active_levels, omp_get_level,
5991 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
5992 omp_set_schedule_, omp_set_schedule_8_,
5993 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5994 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5995 omp_get_max_active_levels_, omp_get_level_,
5996 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5997 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5998 New exports @@OMP_3.0.
5999 * omp.h.in (omp_sched_t): New type.
6000 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
6001 omp_set_max_active_levels, omp_get_max_active_levels,
6002 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
6003 omp_get_active_level): New prototypes.
6004 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
6005 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
6006 gomp_thread_limit_var, gomp_remaining_threads_count,
6007 gomp_remaining_threads_lock): New variables.
6008 (parse_spincount): New function.
6009 (initialize_env): Call gomp_init_num_threads unconditionally.
6010 Initialize gomp_available_cpus. Call parse_spincount,
6011 initialize gomp_{,throttled_}spin_count_var
6012 depending on presence and value of OMP_WAIT_POLICY and
6013 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
6014 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
6015 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
6016 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
6017 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
6018 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
6019 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
6020 (gomp_global_icv): New.
6021 (parse_schedule): Use it. Parse "auto".
6022 (omp_set_num_threads): Use gomp_icv.
6023 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
6024 Likewise.
6025 (omp_get_max_threads): Move from parallel.c.
6026 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
6027 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
6028 add ialias.
6029 (parse_stacksize, parse_wait_policy): New functions.
6030 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
6031 both wrappers for compatibility and new locks.
6032 (omp_set_schedule, omp_get_schedule,
6033 omp_get_thread_limit, omp_set_max_active_levels,
6034 omp_get_max_active_levels, omp_get_level,
6035 omp_get_ancestor_thread_num, omp_get_team_size,
6036 omp_get_active_level): New ialias_redirect.
6037 (omp_set_schedule_, omp_set_schedule_8_,
6038 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
6039 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
6040 omp_get_max_active_levels_, omp_get_level_,
6041 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
6042 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
6043 New functions.
6044 * parallel.c: Include limits.h.
6045 (gomp_resolve_num_threads): Add count argument. Rewritten.
6046 (GOMP_parallel_start): Call gomp_new_team and pass that as last
6047 argument to gomp_team_start. Pass 0 as second argument to
6048 gomp_resolve_num_threads.
6049 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
6050 if gomp_thread_limit_var != ULONG_MAX.
6051 (omp_in_parallel): Implement using ts.active_level.
6052 (omp_get_max_threads): Move to env.c.
6053 (omp_get_level, omp_get_ancestor_thread_num,
6054 omp_get_team_size, omp_get_active_level): New functions,
6055 add ialias.
6056 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
6057 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
6058 gomp_iter_dynamic_next instead of the _locked variant and don't take
6059 lock around it, otherwise acquire it before calling
6060 gomp_iter_dynamic_next_locked.
6061 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
6062 gomp_iter_dynamic_next instead of the _locked variant and don't take
6063 lock around it.
6064 (GOMP_parallel_sections_start): Call gomp_new_team instead of
6065 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
6066 Adjust gomp_team_start caller. Pass count as second argument to
6067 gomp_resolve_num_threads, don't adjust num_threads after the call.
6068 Use gomp_icv.
6069 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
6070 ws->chunk_size by incr.
6071 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
6072 code.
6073 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
6074 types.
6075 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
6076 (omp_check_defines): Check even the compat defines.
6077 * config/linux/ptrlock.c: New file.
6078 * config/linux/ptrlock.h: New file.
6079 * config/linux/wait.h: New file.
6080 * config/posix/ptrlock.c: New file.
6081 * config/posix/ptrlock.h: New file.
6082 * config/linux/bar.h (gomp_team_barrier_wait,
6083 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
6084 (gomp_team_barrier_set_task_pending,
6085 gomp_team_barrier_clear_task_pending,
6086 gomp_team_barrier_set_waiting_for_tasks,
6087 gomp_team_barrier_waiting_for_tasks,
6088 gomp_team_barrier_done): New inlines.
6089 (gomp_barrier_t): Rewritten.
6090 (gomp_barrier_state_t): New typedef.
6091 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
6092 gomp_barrier_wait_start): Rewritten.
6093 (gomp_barrier_wait_end): Change second argument to
6094 gomp_barrier_state_t.
6095 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
6096 inlines.
6097 * config/linux/bar.c: Include wait.h instead of libgomp.h and
6098 futex.h.
6099 (gomp_barrier_wait_end): Rewritten.
6100 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
6101 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
6102 * config/posix/bar.h (gomp_barrier_t): Add generation field.
6103 (gomp_barrier_state_t): New typedef.
6104 (gomp_team_barrier_wait,
6105 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
6106 (gomp_barrier_wait_start): Or all but low 2 bits from generation
6107 into the return value. Return gomp_barrier_state_t.
6108 (gomp_team_barrier_set_task_pending,
6109 gomp_team_barrier_clear_task_pending,
6110 gomp_team_barrier_set_waiting_for_tasks,
6111 gomp_team_barrier_waiting_for_tasks,
6112 gomp_team_barrier_done): New inlines.
6113 (gomp_barrier_wait_end): Change second argument to
6114 gomp_barrier_state_t.
6115 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
6116 inlines.
6117 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
6118 (gomp_barrier_wait_end): Change second argument to
3e348fcc 6119 gomp_barrier_state_t.
a68ab351
JJ
6120 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
6121 gomp_team_barrier_wake): New functions.
6122 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
6123 futex.h.
6124 (gomp_futex_wake, gomp_futex_wait): New variables.
6125 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
6126 * config/linux/lock.c: Rewrite to make locks task owned,
6127 for backwards compatibility provide the old entrypoints
6128 if symbol versioning. Include wait.h instead of libgomp.h and
6129 futex.h.
6130 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
6131 * config/posix95/lock.c: Rewrite to make locks task owned,
6132 for backwards compatibility provide the old entrypoints
6133 if symbol versioning.
6134 * config/posix/lock.c: Rewrite to make locks task owned,
6135 for backwards compatibility provide the old entrypoints
6136 if symbol versioning.
6137 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
6138 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
6139 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
6140 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6141 (sys_futex0): Return error code.
6142 (futex_wake, futex_wait): If ENOSYS was returned, clear
6143 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6144 (cpu_relax, atomic_write_barrier): New static inlines.
6145 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6146 (futex_wake, futex_wait): If ENOSYS was returned, clear
6147 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6148 (cpu_relax, atomic_write_barrier): New static inlines.
6149 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6150 (sys_futex0): Return error code.
6151 (futex_wake, futex_wait): If ENOSYS was returned, clear
6152 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6153 (cpu_relax, atomic_write_barrier): New static inlines.
6154 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6155 (sys_futex0): Return error code.
6156 (futex_wake, futex_wait): If ENOSYS was returned, clear
6157 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6158 (cpu_relax, atomic_write_barrier): New static inlines.
6159 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6160 (sys_futex0): Return error code.
6161 (futex_wake, futex_wait): If ENOSYS was returned, clear
6162 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6163 (cpu_relax, atomic_write_barrier): New static inlines.
6164 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6165 (sys_futex0): Return error code.
6166 (futex_wake, futex_wait): If ENOSYS was returned, clear
6167 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6168 (cpu_relax, atomic_write_barrier): New static inlines.
6169 * config/linux/sem.c: Include wait.h instead of libgomp.h and
6170 futex.h.
6171 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
6172 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
6173 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
6174 types.
6175 (omp_nest_lock_t): Change owner into void *, add lock field.
6176 * config/posix95/omp-lock.h: Include semaphore.h.
6177 (omp_lock_25_t, omp_nest_lock_25_t): New types.
6178 (omp_lock_t): Use sem_t instead of mutex if semaphores
6179 aren't broken.
6180 (omp_nest_lock_t): Likewise. Change owner to void *.
6181 * config/posix/omp-lock.h: Include semaphore.h.
6182 (omp_lock_25_t, omp_nest_lock_25_t): New types.
6183 (omp_lock_t): Use sem_t instead of mutex if semaphores
6184 aren't broken.
6185 (omp_nest_lock_t): Likewise. Add owner field.
6186
61872008-06-06 Jakub Jelinek <jakub@redhat.com>
6188
6189 * testsuite/libgomp.c/collapse-1.c: New test.
6190 * testsuite/libgomp.c/collapse-2.c: New test.
6191 * testsuite/libgomp.c/collapse-3.c: New test.
6192 * testsuite/libgomp.c/icv-1.c: New test.
6193 * testsuite/libgomp.c/icv-2.c: New test.
6194 * testsuite/libgomp.c/lib-2.c: New test.
6195 * testsuite/libgomp.c/lock-1.c: New test.
6196 * testsuite/libgomp.c/lock-2.c: New test.
6197 * testsuite/libgomp.c/lock-3.c: New test.
6198 * testsuite/libgomp.c/loop-4.c: New test.
6199 * testsuite/libgomp.c/loop-5.c: New test.
6200 * testsuite/libgomp.c/loop-6.c: New test.
6201 * testsuite/libgomp.c/loop-7.c: New test.
6202 * testsuite/libgomp.c/loop-8.c: New test.
6203 * testsuite/libgomp.c/loop-9.c: New test.
6204 * testsuite/libgomp.c/nested-3.c: New test.
6205 * testsuite/libgomp.c/nestedfn-6.c: New test.
6206 * testsuite/libgomp.c/sort-1.c: New test.
6207 * testsuite/libgomp.c/task-1.c: New test.
6208 * testsuite/libgomp.c/task-2.c: New test.
6209 * testsuite/libgomp.c/task-3.c: New test.
6210 * testsuite/libgomp.c/task-4.c: New test.
6211 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
6212 to C++ testsuite default compiler options.
6213 * testsuite/libgomp.c++/collapse-1.C: New test.
6214 * testsuite/libgomp.c++/collapse-2.C: New test.
6215 * testsuite/libgomp.c++/ctor-10.C: New test.
6216 * testsuite/libgomp.c++/for-1.C: New test.
6217 * testsuite/libgomp.c++/for-2.C: New test.
6218 * testsuite/libgomp.c++/for-3.C: New test.
6219 * testsuite/libgomp.c++/for-4.C: New test.
6220 * testsuite/libgomp.c++/for-5.C: New test.
6221 * testsuite/libgomp.c++/loop-8.C: New test.
6222 * testsuite/libgomp.c++/loop-9.C: New test.
6223 * testsuite/libgomp.c++/loop-10.C: New test.
6224 * testsuite/libgomp.c++/task-1.C: New test.
6225 * testsuite/libgomp.c++/task-2.C: New test.
6226 * testsuite/libgomp.c++/task-3.C: New test.
6227 * testsuite/libgomp.c++/task-4.C: New test.
6228 * testsuite/libgomp.c++/task-5.C: New test.
6229 * testsuite/libgomp.c++/task-6.C: New test.
6230 * testsuite/libgomp.fortran/allocatable1.f90: New test.
6231 * testsuite/libgomp.fortran/allocatable2.f90: New test.
6232 * testsuite/libgomp.fortran/allocatable3.f90: New test.
6233 * testsuite/libgomp.fortran/allocatable4.f90: New test.
6234 * testsuite/libgomp.fortran/collapse1.f90: New test.
6235 * testsuite/libgomp.fortran/collapse2.f90: New test.
6236 * testsuite/libgomp.fortran/collapse3.f90: New test.
6237 * testsuite/libgomp.fortran/collapse4.f90: New test.
6238 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
6239 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
6240 * testsuite/libgomp.fortran/lib4.f90: New test.
6241 * testsuite/libgomp.fortran/lock-1.f90: New test.
6242 * testsuite/libgomp.fortran/lock-2.f90: New test.
6243 * testsuite/libgomp.fortran/nested1.f90: New test.
6244 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
6245 * testsuite/libgomp.fortran/strassen.f90: New test.
6246 * testsuite/libgomp.fortran/tabs1.f90: New test.
6247 * testsuite/libgomp.fortran/tabs2.f: New test.
6248 * testsuite/libgomp.fortran/task1.f90: New test.
6249 * testsuite/libgomp.fortran/task2.f90: New test.
6250 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
6251 * testsuite/libgomp.fortran/vla5.f90: Likewise.
6252 * testsuite/libgomp.c/pr26943-2.c: Likewise.
6253 * testsuite/libgomp.c/pr26943-3.c: Likewise.
6254 * testsuite/libgomp.c/pr26943-4.c: Likewise.
6255
7a0112e7
JJ
62562008-05-23 Jakub Jelinek <jakub@redhat.com>
6257
6258 PR c++/36308
6259 * testsuite/libgomp.c++/ctor-11.C: New test.
6260 * testsuite/libgomp.c++/ctor-12.C: New test.
6261
91a5b394
JJ
62622008-05-15 Janis Johnson <janis187@us.ibm.com>
6263
6264 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
6265
c18c98c0
JJ
62662008-05-07 Jakub Jelinek <jakub@redhat.com>
6267
6268 PR middle-end/36106
6269 * testsuite/libgomp.c/atomic-5.c: New test.
6270 * testsuite/libgomp.c/atomic-6.c: New test.
6271 * testsuite/libgomp.c/autopar-1.c: New test.
6272
6d26724a
RW
62732008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6274
6275 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
6276 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
6277 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
6278 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
6279 * configure: Regenerate.
6280 * Makefile.in, testsuite/Makefile.in: Likewise.
6281
deb984e6
PB
62822008-04-18 Paolo Bonzini <bonzini@gnu.org>
6283
6284 PR bootstrap/35457
6285 * aclocal.m4: Regenerate.
6286 * configure: Regenerate.
6287
9e775963
JJ
62882008-03-18 Jakub Jelinek <jakub@redhat.com>
6289
8119fc93
JJ
6290 PR middle-end/35611
6291 * testsuite/libgomp.c/atomic-4.c: New test.
6292
9e775963
JJ
6293 PR libgomp/35625
6294 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
6295 (gomp_iter_guided_next): Likewise.
6296 * testsuite/libgomp.c/pr35625.c: New test.
6297
38d24731
RW
62982008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6299
6300 * aclocal.m4: Regenerate.
6301 * configure: Likewise.
6302 * Makefile.in: Likewise.
6303 * testsuite/Makefile.in: Likewise.
6304
d0fb20be
JJ
63052008-03-13 Jakub Jelinek <jakub@redhat.com>
6306
6307 PR middle-end/35185
6308 * testsuite/libgomp.c++/pr35185.C: New test.
6309
7c8f7639
JJ
63102008-03-12 Jakub Jelinek <jakub@redhat.com>
6311
6312 PR middle-end/35549
6313 * testsuite/libgomp.c/pr35549.c: New test.
6314
251923f5
JJ
63152008-03-06 Jakub Jelinek <jakub@redhat.com>
6316
6317 * testsuite/libgomp.c/atomic-3.c: New test.
6318
f489fba1
FXC
63192008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6320
6321 PR fortran/33197
251923f5 6322 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
6323 .F08 file suffixes.
6324
a1b25e49
PG
63252008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
6326
6327 PR libgomp/33131
6328 * configure.ac: Add ACX_HEADER_STRING.
6329 * env.c: Include strings.h.
6330 * aclocal.m4: Regenerate.
6331 * config.h.in: Regenerate.
6332 * configure: Regenerate.
6333 * Makefile.in: Regenerate.
6334 * testsuite/Makefile.in: Regenerate.
6335
6837b3b8
JJ
63362008-02-15 Jakub Jelinek <jakub@redhat.com>
6337
ac84c062
JJ
6338 PR middle-end/35196
6339 * testsuite/libgomp.c/pr35196.c: New test.
6340
6837b3b8
JJ
6341 PR middle-end/35130
6342 * testsuite/libgomp.fortran/pr35130.f90: New test.
6343 * testsuite/libgomp.c/pr35130.c: New test.
6344
c256730c
JJ
63452008-01-25 Jakub Jelinek <jakub@redhat.com>
6346
6347 PR middle-end/33880
6348 * testsuite/libgomp.c/pr33880.c: New test.
6349 * testsuite/libgomp.fortran/pr33880.f90: New test.
6350
c8e95542 63512008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
6352
6353 * configure: Regenerate.
6354
0f3e711e
JJ
63552008-01-08 Jakub Jelinek <jakub@redhat.com>
6356
6357 * configure.ac: Move futex checking into ../config/futex.m4.
6358 * configure: Rebuilt.
6359 * aclocal.m4: Rebuilt.
6360 * Makefile.in: Rebuilt.
6361
6362 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
6363 2007-10-15 ../config/tls.m4 change.
6364
5259c813
JJ
63652007-12-19 Jakub Jelinek <jakub@redhat.com>
6366
6367 PR c++/34513
6368 * testsuite/libgomp.c/pr34513.c: New test.
6369 * testsuite/libgomp.c++/pr34513.C: New test.
6370
ae8d8879
JH
63712007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
6372
6373 PR target/32765
6374 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
6375
2b4cf991
JJ
63762007-12-04 Jakub Jelinek <jakub@redhat.com>
6377
6378 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
6379
d2dda7fe
JJ
63802007-12-03 Jakub Jelinek <jakub@redhat.com>
6381
6382 * testsuite/libgomp.c/private-1.c: New test.
6383
d683ec81
PB
63842007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
6385 Paolo Bonzini <bonzini@gnu.org>
6386
6387 * Makefile.am: Use space as vpath separator. Use 'vpath %'
6388 instead of 'VPATH ='.
6389 * Makefile.in: Regenerate.
6390
a7415017
MK
63912007-11-23 Matthias Klose <doko@ubuntu.com>
6392
6393 * configure.ac: Adjust makeinfo version check.
6394 * configure: Regenerate.
6395
78e47463
JJ
63962007-11-10 Jakub Jelinek <jakub@redhat.com>
6397
6398 PR fortran/34020
6399 * testsuite/libgomp.fortran/pr34020.f90: New test.
6400
239371f9
JJ
64012007-11-06 Jakub Jelinek <jakub@redhat.com>
6402
6403 PR c++/33894
6404 * testsuite/libgomp.c++/atomic-1.C: New test.
6405
98a5fa94
JJ
64062007-10-25 Jakub Jelinek <jakub@redhat.com>
6407
6408 PR libgomp/33275
6409 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
6410 Make x and y integers rather than (implicit) reals. Add private (j)
6411 clause to the last omp parallel.
6412
3afcaaf4
MR
64132007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
6414
6415 * configure: Regenerate following changes to ../config/tls.m4.
6416
bd69daef
JJ
64172007-09-28 Jakub Jelinek <jakub@redhat.com>
6418
6419 * testsuite/libgomp.fortran/stack.f90: New test.
6420
1d0bd356
DS
64212007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
6422
6423 * config/mingw32/proc.c: New file.
6424
b3172cab
UB
64252007-09-05 Uros Bizjak <ubizjak@gmail.com>
6426
6427 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
6428 (main): Use __get_cpuid to get i386 target fetaures.
6429 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
6430 (main): Use __get_cpuid to get x86_64 target fetaures.
6431
6da17392
JH
64322007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
6433
6434 PR target/32765
6435 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
6436 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
6437
e1c82219
JJ
64382007-07-12 Jakub Jelinek <jakub@redhat.com>
6439
6440 PR fortran/32550
6441 * testsuite/libgomp.fortran/pr32550.f90: New test.
6442 * testsuite/libgomp.fortran/crayptr2.f90: New test.
6443
12a27363
L
64442007-07-05 H.J. Lu <hongjiu.lu@intel.com>
6445
6446 * aclocal.m4: Regenerated.
6447
5349080d
TB
64482007-07-05 Tobias Burnus <burnus@net-b.de>
6449
6450 PR fortran/32359
6451 * testsuite/libgomp.fortran/pr32359.f90: New.
6452
4f9c450c
JJ
64532007-07-02 Jakub Jelinek <jakub@redhat.com>
6454
6455 PR libgomp/32468
6456 * sections.c (GOMP_parallel_sections_start): Only decrease
6457 number of threads to COUNT if dyn_var is true.
6458 * testsuite/libgomp.c/pr32468.c: New test.
6459
28c67ed7
RO
64602007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6461
6462 PR libgomp/26308
6463 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
6464
64964499
JJ
64652007-06-21 Jakub Jelinek <jakub@redhat.com>
6466
6467 PR middle-end/32362
6468 * testsuite/libgomp.c/pr32362-1.c: New test.
6469 * testsuite/libgomp.c/pr32362-2.c: New test.
6470 * testsuite/libgomp.c/pr32362-3.c: New test.
6471
46d8fbd1
JJ
64722007-06-07 Jakub Jelinek <jakub@redhat.com>
6473
6474 * team.c (gomp_team_start): Fix setting up thread_attr
6475 stack size.
6476
82a6cadf
PB
64772007-06-02 Paolo Bonzini <bonzini@gnu.org>
6478
6479 * configure: Regenerate.
6480
1cf3d07d
SE
64812007-05-23 Steve Ellcey <sje@cup.hp.com>
6482
6483 * Makefile.in: Regenerate.
6484 * configure: Regenerate.
6485 * aclocal.m4: Regenerate.
6486 * testsuite/Makefile.in: Regenerate.
6487
12aac30b
JJ
64882007-05-04 Jakub Jelinek <jakub@redhat.com>
6489
6490 * config/linux/proc.c: New file.
6491
f1028b02
JJ
6492 PR libgomp/28482
6493 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
6494
06785a48
DF
64952007-04-19 Daniel Franke <franke.daniel@gmail.com>
6496
6497 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
6498
b3b08ba0
MK
64992007-04-16 Matthias Klose <doko@debian.org>
6500
6501 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
6502 flags if not building with -m64.
6503 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
6504 flag for i?86-*-* targets, if current target matches -m64.
6505
6b2c5ce0
SE
65062007-04-14 Steve Ellcey <sje@cup.hp.com>
6507
6508 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
6509 * Makefile.in: Regenerate.
6510
dd56fe7c
JDA
65112007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6512
6513 PR testsuite/31369
6514 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
6515 ld_library_path.
6516 * testsuite/libgomp.fortran/fortran.exp: Likewise.
6517
a0884cf0
JJ
65182007-04-04 Jakub Jelinek <jakub@redhat.com>
6519
6520 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
6521 decls.
6522 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
6523 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
6524 (parse_affinity): New function.
6525 (initialize_env): Call it and gomp_init_affinity.
6526 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
6527 create new pthread_attr_t and call gomp_init_thread_affinity
6528 on it for each thread before passing the attribute to pthread_create.
6529 * config/linux/affinity.c: New file.
6530 * config/posix/affinity.c: New file.
6531 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
6532 * configure: Rebuilt.
6533 * config.h.in: Rebuilt.
6534 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
6535 * Makefile.in: Rebuilt.
6536
1850744b
AT
65372007-03-23 Andreas Tobler <a.tobler@schweiz.org>
6538
6539 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
6540 *-*-darwin*.
6541 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
6542 and use it if found.
6543
516f1ed8
UB
65442007-03-18 Uros Bizjak <ubizjak@gmail.com>
6545
6546 * testsuite/config/default.exp: New file.
6547 * testsuite/lib/libgomp.exp: New file.
6548 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
6549 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
6550 load_lib *, load_gcc_lib *): Move to libgomp.exp.
6551 (libgomp_load): Remove.
6552 * testsuite/lib/libgomp.exp (libgomp_init): Compute
6553 always_ld_library_path, not ld_library_path. Set additional_flags
6554 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
6555 (target_compile): Do not call libgomp_init. Append lang_library_path
6556 and lang_link_flags to options.
6557 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
6558 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
6559 here.
6560 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
6561 always_ld_library_path. Set LD_LIBRARY_PATH here.
6562 * testsuite/libgomp.fortran/fortran.exp: Ditto.
6563 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
6564 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
6565 CX8 flag.
6566 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
6567 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
6568 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
6569 * testsuite/libgomp.c/pr29947-1.c: Ditto.
6570 * testsuite/libgomp.c/atomic-10.c: Ditto.
6571
2ada56f5
JJ
65722007-03-21 Jakub Jelinek <jakub@redhat.com>
6573
6574 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
6575 dg-final cleanup-modules line.
6576 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
6577 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
6578 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
6579 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
6580 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
6581 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
6582 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
6583
f210f1cd
AS
65842007-03-18 Andreas Schwab <schwab@suse.de>
6585
6586 * acinclude.m4: Adjust regular expression for ld version
6587 extraction.
6588 * configure: Regenerate.
6589
c4dc950d
BM
65902007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
6591
6592 * Makefile.am: Add install-pdf target as copied from
6593 automake v1.10 rules.
6594 * Makefile.in: Regenerate
6595
e02a048f
JJ
65962007-02-07 Jakub Jelinek <jakub@redhat.com>
6597
78e075d4
JJ
6598 PR libgomp/28486
6599 * configure: Regenerate.
6600
e02a048f
JJ
6601 PR c++/30703
6602 * testsuite/libgomp.c++/pr30703.C: New test.
6603
60def7ed
JJ
66042007-02-02 Jakub Jelinek <jakub@redhat.com>
6605
6606 Revert:
6607 2006-07-05 Eric Christopher <echristo@apple.com>
6608 * configure.ac: Depend addition of -pthread on host OS.
6609 * configure: Regenerate.
6610
f1b0882e
RW
66112007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6612
6613 * libgomp.texi: Fix spacing after abbreviations.
6614
748b9d7c
DF
66152007-01-31 Daniel Franke <franke.daniel@gmail.com>
6616
6617 PR libgomp/30546
6618 * configure.ac: Add check for makeinfo
6619 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
6620 if an appropiate version of makeinfo is found.
6621 * aclocal.m4: Regenerated.
6622 * configure: Regenerated.
6623 * Makefile.in: Regenerated.
6624 * testsuite/Makefile.in: Regenerated.
6625
14734fc7
DF
66262007-01-29 Daniel Franke <franke.daniel@gmail.com>
6627
6628 PR libgomp/30540
6629 * libgomp.texi: More about implementation-dependent settings.
6630
7befd5d2
TB
66312007-01-26 Tobias Burnus <burnus@net-b.de>
6632
6633 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
6634
4288fea2
JJ
66352007-01-24 Jakub Jelinek <jakub@redhat.com>
6636
6637 PR middle-end/30494
6638 * testsuite/libgomp.c/pr30494.c: New test.
6639
627ab4b8
TT
66402007-01-15 Tom Tromey <tromey@redhat.com>
6641
6642 * configure: Rebuilt.
6643 * configure.ac: Fixed comment.
6644
7c2b7f45
DF
66452007-01-14 Daniel Franke <franke.daniel@gmail.com>
6646
6647 * libgomp.texi: Document implementation specific default values of
6648 environment variables.
6649
3721b9e1
DF
66502006-12-21 Daniel Franke <franke.daniel@gmail.com>
6651
6652 PR libgomp/28209
6653 * libgomp.texi: New file.
6654 * configure.ac: Add --enable-generated-files-in-srcdir option.
6655 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
6656 files to srcdir.
6657 * Makefile.in: Regenerated.
6658 * config.h.in: Regenerated.
6659 * testsuite/Makefile.in: Regenerated.
6660 * NOTES: Removed.
6661
62bd6216
DF
66622006-12-04 Daniel Franke <franke.daniel@gmail.com>
6663
6664 PR libgomp/29949
6665 * env.c (omp_set_num_threads): Set illegal thread count to 1.
6666
aad741f4
EB
66672006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6668
6669 * configure: Regenerate.
6670
22568cc6
JJ
66712006-12-04 Jakub Jelinek <jakub@redhat.com>
6672
6673 PR libgomp/29947
6674 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
6675 start if there shouldn't be any loop iterations.
6676 (gomp_loop_ordered_static_start): Remove start == end test.
6677 * testsuite/libgomp.c/pr29947-1.c: New test.
6678 * testsuite/libgomp.c/pr29947-2.c: New test.
6679
a9690009
EB
66802006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
6681
6682 * configure.tgt: Force initial-exec TLS model on Linux only.
6683
597c25e6
DJ
66842006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
6685
6686 * configure: Regenerated.
6687
6acf0b38
UB
66882006-11-09 Uros Bizjak <ubizjak@gmail.com>
6689
6690 * env.c (parse_schedule): Reject out of range values.
6691 (parse_unsigned_long): Reject out of range, negative or zero values.
6692
a7a53ca5
JJ
66932006-10-29 Jakub Jelinek <jakub@redhat.com>
6694
6695 PR fortran/29629
6696 * testsuite/libgomp.fortran/pr29629.f90: New test.
6697
6d4d216a
EB
66982006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
6699
6700 PR libgomp/29494
6701 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
6702 * config/posix95: New directory.
6703 * config/posix95/omp-lock.h: New file.
6704 * config/posix95/lock.c: Likewise.
6705
5b043f08
GK
67062006-10-14 Geoffrey Keating <geoffk@apple.com>
6707
6708 * aclocal.m4: Regenerate.
6709 * configure: Regenerate.
6710
b50019f0
DS
67112006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6712
6713 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
6714 '<' to '<='.
6715
8887708e
DS
67162006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6717
6718 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
6719 test.
6720 * configure: Regenerate.
6721 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
6722
9b9e4cd6
JJ
67232006-09-26 Jakub Jelinek <jakub@redhat.com>
6724
a70ad3bb
JJ
6725 PR middle-end/25261
6726 PR middle-end/28790
6727 * testsuite/libgomp.c/nestedfn-4.c: New test.
6728 * testsuite/libgomp.c/nestedfn-5.c: New test.
6729 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
6730
9b9e4cd6
JJ
6731 PR fortran/29097
6732 * testsuite/libgomp.fortran/condinc1.f: New test.
6733 * testsuite/libgomp.fortran/condinc2.f: New test.
6734 * testsuite/libgomp.fortran/condinc3.f90: New test.
6735 * testsuite/libgomp.fortran/condinc4.f90: New test.
6736 * testsuite/libgomp.fortran/condinc1.inc: New file.
6737
2fb31455
TT
67382006-09-18 Tom Tromey <tromey@redhat.com>
6739
6740 * configure: Rebuilt.
6741
c663e301
JM
67422006-09-13 Joseph S. Myers <joseph@codesourcery.com>
6743
6744 PR c/28768
6745 PR preprocessor/14634
6746 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
6747 to AC_DEFINE.
6748 * configure: Regenerate.
6749
38371be9
SK
67502006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
6751
6752 * testsuite/libgomp.fortran/reduction3.f90: Change
6753 -2147483648 to -huge(i)-1 to avoid overflow.
6754 * testsuite/libgomp.fortran/reduction4.f90: Change
6755 Z'ffffffff' to not(0) to avoid overflow.
6756
571d5ac5
JM
67572006-08-26 Joseph S. Myers <joseph@codesourcery.com>
6758
6759 PR libgomp/25938
6760 * Makefile.am (libsubincludedir): New.
6761 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
6762 * Makefile.in: Regenerate.
6763
89b3e3cd
JJ
67642006-08-17 Jakub Jelinek <jakub@redhat.com>
6765
6766 PR libgomp/28725
6767 * env.c: Include ctype.h.
6768 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
6769 leading and/or trailing whitespace and compare strings case
6770 insensitively.
6771
742fae05
JJ
67722006-07-16 Jakub Jelinek <jakub@redhat.com>
6773
6774 PR fortran/28390
6775 * testsuite/libgomp.fortran/pr28390.f: New test.
6776
a1daed2d
EC
67772006-07-05 Eric Christopher <echristo@apple.com>
6778
6779 * configure.ac: Depend addition of -pthread on host OS.
6780 * configure: Regenerate.
6781
5d7b5199
JJ
67822006-06-21 Jakub Jelinek <jakub@redhat.com>
6783
6784 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
6785 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
6786 defined.
6787
fe5568e9
JJ
67882006-06-20 Jakub Jelinek <jakub@redhat.com>
6789
6790 PR libgomp/26175
6791 PR libgomp/26477
6792 * configure.ac: If neither --enable-linux-futex nor
6793 --disable-linux-futex is passed, determine the default by checking
6794 for compiling and/or running against NPTL. With --enable-linux-futex,
6795 check if SYS_gettid and SYS_futex are defined.
6796 * configure: Rebuilt.
6797
c3b11a40
RH
67982006-06-14 Richard Henderson <rth@redhat.com>
6799
6800 PR libgomp/28008
6801 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
6802 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
6803
d0d1b24d
RH
68042006-06-09 Richard Henderson <rth@redhat.com>
6805
6806 * env.c (gomp_nthreads_var): Change to unsigned long.
6807 (gomp_run_sched_chunk): Likewise.
6808 (parse_unsigned_long): Rename from parse_num_threads and generalize.
6809 (initialize_env): Initialize gomp_thread_attr.
6810 * libgomp.h (gomp_nthreads_var): Update decl.
6811 (gomp_run_sched_chunk): Likewise.
6812 (gomp_thread_attr): Declare.
6813 * team.c (gomp_thread_attr): Export.
6814 (initialize_team): Don't initialize it.
6815
cd75853e
JJ
68162006-06-09 Jakub Jelinek <jakub@redhat.com>
6817
6818 PR fortran/27916
6819 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
6820 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
6821
33815e0c
FXC
68222006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6823
6824 * config/mingw32/time.c: New file.
6825 * configure.tgt: Use it.
6826
6667de0d
CD
68272006-05-23 Carlos O'Donell <carlos@codesourcery.com>
6828
6829 * Makefile.am: Add install-html target. Add install-html to .PHONY
6830 * Makefile.in: Regenerate.
6831
e962c46b
JDA
68322006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6833
6834 PR libgomp/27612
6835 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
6836 * testsuite/libgomp.c/critical-1.c: Likewise.
6837 * testsuite/libgomp.c/loop-1.c: Likewise.
6838 * testsuite/libgomp.c/loop-2.c: Likewise.
6839 * testsuite/libgomp.c/single-1.c: Likewise.
6840 * testsuite/libgomp.c/ordered-1.c: Likewise.
6841 * testsuite/libgomp.c/ordered-2.c: Likewise.
6842
eeb1d9e0
JJ
68432006-05-15 Jakub Jelinek <jakub@redhat.com>
6844
6845 PR middle-end/27416
6846 * libgomp.fortran/pr27416-1.f90: New test.
6847
693d710f
JJ
68482006-05-03 Jakub Jelinek <jakub@redhat.com>
6849
6850 PR fortran/27395
6851 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
6852 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
6853
8ca5b2a2
JJ
68542006-05-02 Jakub Jelinek <jakub@redhat.com>
6855
6856 PR c++/26943
6857 * testsuite/libgomp.c/pr26943-1.c: New test.
6858 * testsuite/libgomp.c/pr26943-2.c: New test.
6859 * testsuite/libgomp.c/pr26943-3.c: New test.
6860 * testsuite/libgomp.c/pr26943-4.c: New test.
6861 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
6862 * testsuite/libgomp.c++/pr26943.C: New test.
6863
077b0dfb
JJ
68642006-05-02 Jakub Jelinek <jakub@redhat.com>
6865
6866 PR middle-end/27337
6867 * testsuite/libgomp.c++/pr27337.C: New test.
6868
91b6c26d
JJ
68692006-04-26 Jakub Jelinek <jakub@redhat.com>
6870
6871 PR c/26171
6872 * testsuite/libgomp.c/pr26171.c: New test.
6873
60e1758f
RH
68742006-04-25 Richard Henderson <rth@redhat.com>
6875
6876 PR libgomp/25865
6877 * configure.ac: Use GCC_CHECK_TLS.
6878 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
6879 * Makefile.in, aclocal.m4, configure: Regenerate.
6880
615baed7
MK
68812006-04-10 Matthias Klose <doko@debian.org>
6882
6883 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
6884 directory names containing underscores.
6885
fae2b46b
JJ
68862006-03-21 Jakub Jelinek <jakub@redhat.com>
6887
6888 PR c++/26691
6889 * testsuite/libgomp.c++/pr26691.C: New test.
6890
11a5f608
JJ
68912006-03-13 Jakub Jelinek <jakub@redhat.com>
6892
6893 * testsuite/libgomp.fortran/retval2.f90: New test.
6894
1799e5d5
RH
68952006-03-09 Diego Novillo <dnovillo@redhat.com>
6896
6897 * testsuite/libgomp.c++: New directory.
6898
d349482e
AT
68992006-02-25 Shantonu Sen <ssen@opendarwin.org>
6900
6901 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
6902 * config/posix/sem.c: Implement the above.
6903
69042006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
6905
6906 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
6907 define HAVE_BROKEN_POSIX_SEMAPHORES.
6908 * configure: Rebuilt.
6909 * config.h.in: Rebuilt.
6910
124452c9
FXC
69112006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6912
6913 PR bootstrap/26161
6914 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
6915 for the other pthread check.
6916 * configure: Regenerate.
6917 * config.h.in: Regenerate.
6918
dd8d6dfe
JJ
69192006-02-15 Jakub Jelinek <jakub@redhat.com>
6920
6921 PR libgomp/25938
6922 PR libgomp/25984
6923 * Makefile.am (fincludedir): New variable.
6924 (nodist_include_HEADERS): Remove Fortran files.
6925 (nodist_finclude_HEADERS): New variable.
6926 * Makefile.in: Regenerated.
6927
6c7a4dfd
JJ
69282006-02-13 Jakub Jelinek <jakub@redhat.com>
6929
6930 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
6931 Remove tests for returning assumed character length arrays.
6932
5142e08b
RS
69332006-02-12 Roger Sayle <roger@eyesopen.com>
6934 John David Anglin <dave@hiauly1.hia.nrc.ca>
6935
6936 PR libgomp/25936
6937 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 6938
5821fba8
UW
69392006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6940
6941 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
6942
cb2bbc67
EB
69432006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6944
6945 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
6946 part of LD_LIBRARY_PATH manually.
6947
f05ee80c
L
69482006-02-03 H.J. Lu <hongjiu.lu@intel.com>
6949
6950 PR libgomp/25852
6951 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
6952 libgomp_init.
6953
03b8fe49
PB
69542005-01-25 Paolo Bonzini <bonzini@gnu.org>
6955
6956 PR libgomp/25884
f05ee80c
L
6957 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
6958 * configure.ac (PERL): Don't set.
6959 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
6960 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
6961 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
6962 * omp.h.in: Wrap the new configure substitutions with @ characters.
6963 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
6964 * aclocal.m4, configure, Makefile.in: Regenerate.
6965 * mkomp_h.pl: Delete.
03b8fe49 6966
18cbfd85
PB
69672005-01-24 Paolo Bonzini <bonzini@gnu.org>
6968
6969 PR libgomp/25259
6970 * configure.ac: Use GCC_HEADER_STDINT.
6971 * libgomp.h: Include gstdint.h.
6972 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
6973 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
6974
c41303c6
RH
69752006-01-24 Richard Henderson <rth@redhat.com>
6976
6977 PR libgomp/25942
6978 * configure.ac: Add AM_MAINTAINER_MODE.
6979 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
6980
149b9553
DN
69812006-01-24 Diego Novillo <dnovillo@redhat.com>
6982
6983 * Makefile.in: Regenerate.
6984 * testsuite/Makefile.in: Regenerate.
6985 * aclocal.m4: Regenerate.
6986
192a50ad
AT
69872006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
6988
6989 * config/posix/proc.c: Conditional include of sys/loadavg.h for
6990 Solaris.
6991 * configure.ac: Add check for loadavg.h.
6992 (link_gomp): Adjust comment.
6993 * configure: Regenerate.
6994 * config.h.in: Regenerate.
6995
a55b8e18
SE
69962006-01-21 Steve Ellcey <sje@cup.hp.com>
6997
6998 PR libgomp/25877
6999 * configure.ac: Remove check for alloca.h.
7000 * configure: Regenerate.
7001 * config.h.in: Regenerate.
7002 * libgomp.h: define gomp_alloca to be __builtin_alloca.
7003 * team.c: Remove use of alloca.h.
7004 Call gomp_alloca instead of alloca.
7005
692eeb34
SE
70062006-01-20 Steve Ellcey <sje@cup.hp.com>
7007
7008 PR libgomp/25877
7009 * team.c: Add include of alloca.h.
7010 * configure.ac: Add check for alloca.h.
7011 * configure: Regenerate.
7012 * config.h.in: Regenerate.
7013
953ff289
DN
70142006-01-17 Jakub Jelinek <jakub@redhat.com>
7015
7016 PR fortran/25219
7017 * testsuite/libgomp.fortran/pr25219.f90: New test.
7018
70192005-12-05 Uros Bizjak <uros@kss-loka.si>
7020
7021 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
7022 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
7023 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
7024 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
7025 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
7026 testsuite/libgomp.fortran/threadprivate1.f90,
7027 testsuite/libgomp.fortran/threadprivate2.f90,
7028 testsuite/libgomp.fortran/threadprivate3.f90,
7029 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
7030 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
7031 testsuite/libgomp.fortran/omp_parse3.f90: Change required
7032 effective-target to TLS runtime.
7033
7034 * testsuite/libgomp.fortran/pr25162.f: Require
7035 effective-target TLS runtime.
7036
70372005-12-01 Jakub Jelinek <jakub@redhat.com>
7038
7039 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
7040 * testsuite/libgomp.c/nestedfn-3.c: New test.
7041
70422005-11-30 Jakub Jelinek <jakub@redhat.com>
7043
7044 PR fortran/25162
7045 * testsuite/libgomp.fortran/pr25162.f: New test.
7046
70472005-11-28 Jakub Jelinek <jakub@redhat.com>
7048
7049 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
7050 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
7051
70522005-11-25 Jakub Jelinek <jakub@redhat.com>
7053
7054 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
7055 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
7056 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
7057 single.c, team.c, work.c, config/linux/alpha/futex.h,
7058 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
7059 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
7060 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
7061 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
7062 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
7063 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
7064 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
7065 FSF address.
7066
70672005-11-18 Jakub Jelinek <jakub@redhat.com>
7068
7069 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
7070 to nodist_noinst_HEADERS.
7071 * Makefile.in: Rebuilt.
7072
7073 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
7074 add integer count field.
7075 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
7076 omp_nest_lock_t type change.
7077 (omp_init_nest_lock): Likewise. Initialize count to 0.
7078 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
7079 Increment count.
7080 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
7081 Decrement count.
7082 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
7083 Increment count if successful and return the new nesting level.
7084 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
7085 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
7086 * testsuite/libgomp.c/lib-1.c: New test.
7087 * testsuite/libgomp.fortran/lib1.f90: New test.
7088 * testsuite/libgomp.fortran/lib2.f: New test.
7089 * testsuite/libgomp.fortran/lib3.f: New test.
7090
70912005-11-17 Richard Henderson <rth@redhat.com>
7092
7093 PR 24845
7094 * Makefile.am (nodist_toolexeclib_HEADERS): New.
7095 * configure.ac (link_gomp): New. Substitute it.
7096 (AC_CONFIG_FILES): Add libgomp.spec.
7097 * libgomp.spec.in: New file.
7098 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
7099 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
7100
71012005-11-18 Jakub Jelinek <jakub@redhat.com>
7102
7103 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
7104 reduction(-:var) behaving the same as reduction(+:var).
7105 * testsuite/libgomp.c/reduction-4.c: New test.
7106
71072005-11-15 Uros Bizjak <uros@kss-loka.si>
7108
7109 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
7110 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
7111 testsuite/libgomp.c/copyin-3.c,
7112 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
7113 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
7114 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
7115 testsuite/libgomp.c++/pr24455.C,
7116 testsuite/libgomp.fortran/threadprivate1.f90,
7117 testsuite/libgomp.fortran/threadprivate2.f90,
7118 testsuite/libgomp.fortran/threadprivate3.f90,
7119 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
7120 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
7121 testsuite/libgomp.fortran/omp_parse3.f90: Require
7122 effective-target TLS.
7123
71242005-11-14 Diego Novillo <dnovillo@redhat.com>
7125
7126 * HEADER: Remove.
7127
71282005-11-13 Jakub Jelinek <jakub@redhat.com>
7129
7130 PR libgomp/24797
7131 * team.c (initialize_team): Pass NULL rather than free as
7132 pthread_key_create destructor. Initialize thread specific data
7133 pointer in initial thread to a static local variable rather than
7134 malloced memory.
7135
71362005-11-11 Uros Bizjak <uros@kss-loka.si>
7137
7138 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
7139 its location to ld_library_path.
7140
71412005-11-10 Diego Novillo <dnovillo@redhat.com>
7142
7143 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
7144
71452005-11-10 Diego Novillo <dnovillo@redhat.com>
7146
7147 * testsuite/libgomp.c: Rename from libgomp.dg.
7148
71492005-11-09 Diego Novillo <dnovillo@redhat.com>
7150
7151 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
7152 threadprivate variable 'i'.
7153
71542005-11-09 Jakub Jelinek <jakub@redhat.com>
7155
7156 * config/linux/s390/futex.h: New file.
7157 * configure.tgt: Use it.
7158
7159 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
7160 before the parallel.
7161
71622005-11-08 Jakub Jelinek <jakub@redhat.com>
7163
7164 PR c++/24734
7165 * testsuite/libgomp.c++/master-1.C: New test.
7166
71672005-11-07 Jakub Jelinek <jakub@redhat.com>
7168
7169 * testsuite/libgomp.dg/copyin-3.c: New test.
7170
71712005-11-07 Jakub Jelinek <jakub@redhat.com>
7172
7173 * testsuite/libgomp.fortran/retval1.f90: New test.
7174 * testsuite/libgomp.fortran/vla7.f90: New test.
7175
71762005-11-06 Jakub Jelinek <jakub@redhat.com>
7177
7178 * testsuite/libgomp.fortran/vla2.f90: New test.
7179 * testsuite/libgomp.fortran/vla3.f90: New test.
7180 * testsuite/libgomp.fortran/vla4.f90: New test.
7181 * testsuite/libgomp.fortran/vla5.f90: New test.
7182 * testsuite/libgomp.fortran/vla6.f90: New test.
7183
71842005-11-01 Jakub Jelinek <jakub@redhat.com>
7185
7186 * config/linux/sparc/futex.h: New file.
7187 * configure.tgt: Use it.
7188 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
7189
7190 * critical.c: Include stdlib.h.
7191 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
7192 ignoring return value.
7193 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
7194 LIBGOMP_CHECK_SYNC_BUILTINS check.
7195 * configure: Rebuilt.
7196
71972005-10-31 Jakub Jelinek <jakub@redhat.com>
7198
7199 * testsuite/libgomp.fortran/vla1.f90: New test.
7200
72012005-10-31 Richard Henderson <rth@redhat.com>
7202
7203 * testsuite/libgomp.fortran/character2.f90: Fix race condition
7204 setting 's' in different threads.
7205
72062005-10-31 Jakub Jelinek <jakub@redhat.com>
7207
7208 * libgomp.h (attribute_hidden, ialias): Define.
7209 * config/posix/proc.c (omp_get_num_procs): Add ialias.
7210 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
7211 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
7212 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
7213 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
7214 omp_test_lock, omp_test_nest_lock): Likewise.
7215 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
7216 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
7217 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
7218 omp_test_lock, omp_test_nest_lock): Likewise.
7219 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
7220 omp_get_dynamic, omp_get_nested): Likewise.
7221 * parallel.c (omp_get_num_threads, omp_get_max_threads,
7222 omp_get_thread_num, omp_in_parallel): Likewise.
7223 * fortran.c (ialias_redirect): Define.
7224 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
7225 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
7226 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
7227 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
7228 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
7229 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
7230 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
7231 omp_get_wtime): Add ialias_redirect.
7232
72332005-10-30 Jakub Jelinek <jakub@redhat.com>
7234
7235 * fortran.c: Include stdlib.h.
7236
72372005-10-29 Jakub Jelinek <jakub@redhat.com>
7238
7239 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
7240 * Makefile.in: Regenerated.
7241
72422005-10-28 Jakub Jelinek <jakub@redhat.com>
7243
7244 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
7245 * libgomp_f.h.in (omp_check_defines): New function.
7246 * env.c: Include libgomp_f.h.
7247 (initialize_env): Call omp_check_defines.
7248
7249 * testsuite/libgomp.dg/copyin-2.c: New test.
7250 * testsuite/libgomp.c++/copyin-2.C: New test.
7251 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
7252
7253 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
7254 * testsuite/libgomp.fortran/sharing2.f90: New test.
7255
7256 * testsuite/libgomp.dg/copyin-1.c: New test.
7257 * testsuite/libgomp.c++/copyin-1.C: New test.
7258
72592005-10-26 Jakub Jelinek <jakub@redhat.com>
7260
7261 * testsuite/libgomp.fortran/crayptr1.f90: New test.
7262
7263 * testsuite/libgomp.fortran/workshare1.f90: New test.
7264
7265 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
7266 only test.
7267 * libgomp.fortran/sharing1.f90: New test.
7268
72692005-10-24 Jakub Jelinek <jakub@redhat.com>
7270
7271 PR c++/24502
7272 * testsuite/libgomp.c++/loop-7.C: New test.
7273
7274 * testsuite/libgomp.dg/nestedfn-2.c: New test.
7275
7276 * testsuite/libgomp.dg/nestedfn-1.c: New test.
7277 * testsuite/libgomp.fortran/reduction6.f90: New test.
7278 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
7279
72802005-10-23 Richard Henderson <rth@redhat.com>
7281
7282 * testsuite/libgomp.c++/ctor-1.C: New.
7283 * testsuite/libgomp.c++/ctor-2.C: New.
7284 * testsuite/libgomp.c++/ctor-3.C: New.
7285 * testsuite/libgomp.c++/ctor-4.C: New.
7286 * testsuite/libgomp.c++/ctor-5.C: New.
7287 * testsuite/libgomp.c++/ctor-6.C: New.
7288 * testsuite/libgomp.c++/ctor-7.C: New.
7289 * testsuite/libgomp.c++/ctor-8.C: New.
7290 * testsuite/libgomp.c++/ctor-9.C: New.
7291
72922005-10-21 Diego Novillo <dnovillo@redhat.com>
7293
7294 PR 24455
7295 * testsuite/libgomp.c++/pr24455-1.C: New test.
7296 * testsuite/libgomp.c++/pr24455.C: New test.
7297 * testsuite/libgomp.dg/pr24455-1.c: New test.
7298 * testsuite/libgomp.dg/pr24455.c: New test.
7299
73002005-10-20 Richard Henderson <rth@redhat.com>
7301
7302 * testsuite/libgomp.c++/loop-6.C: New.
7303 * testsuite/libgomp.dg/loop-3.c: New.
7304
73052005-10-20 Jakub Jelinek <jakub@redhat.com>
7306
7307 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
7308 explicitly private.
7309 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
7310 explicitly shared.
7311
73122005-10-19 Diego Novillo <dnovillo@redhat.com>
7313
7314 * testsuite/libgomp.fortran/jacobi.f: New test.
7315
73162005-10-19 Richard Henderson <rth@redhat.com>
7317
7318 * configure.tgt (i?86-linux): Default to with_arch instead of
7319 CFLAGS. Add -mtune to match target_cpu.
7320 (x86_64-linux): Tune to i686.
7321
7322 * fortran.c (omp_test_nest_lock_): Fix typo.
7323
73242005-10-19 Jakub Jelinek <jakub@redhat.com>
7325
7326 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
7327 gomp_ordered_sync): Do nothing if team->nthreads == 1.
7328 * testsuite/libgomp.dg/ordered-3.c: New test.
7329
7330 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
7331 Remove volatile keyword.
7332
7333 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
7334 in COMMON block to avoid warnings on 64-bit targets.
7335
73362005-10-18 Diego Novillo <dnovillo@redhat.com>
7337
7338 * testsuite/libgomp.dg/shared-3.c: New test.
7339
73402005-10-18 Jakub Jelinek <jakub@redhat.com>
7341
7342 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
7343 * testsuite/libgomp.fortran/reduction5.f90: New test.
7344
73452005-10-18 Jakub Jelinek <jakub@redhat.com>
7346
7347 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
7348 dg-options.
7349 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
7350 flush loop now that __sync_synchronize has proper memory barrier.
7351 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
7352 Add -ffixed-form to dg-options.
7353
73542005-10-17 Diego Novillo <dnovillo@redhat.com>
7355
7356 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
7357 from subdirectories.
7358 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
7359 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
7360 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
7361 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
7362 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
7363 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
7364 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
7365 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
7366 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
7367 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
7368 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
7369 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
7370 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
7371 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
7372 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
7373 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
7374 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
7375 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
7376 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
7377 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
7378 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
7379 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
7380 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
7381 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
7382 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
7383
73842005-10-17 Jakub Jelinek <jakub@redhat.com>
7385
7386 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
7387 lang_library_path exists. Use find instead of glob to gather tests.
7388 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
7389
73902005-10-17 Diego Novillo <dnovillo@redhat.com>
7391
7392 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
7393 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
7394 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
7395 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
7396 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
7397 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
7398 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
7399 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
7400 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
7401 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
7402 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
7403 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
7404 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
7405
74062005-10-15 Jakub Jelinek <jakub@redhat.com>
7407
7408 * testsuite/libgomp.dg/vla-1.c: New test.
7409
7410 * testsuite/libgomp.fortran/reference2.f90: New test.
7411
7412 * testsuite/libgomp.fortran/character2.f90: Remove explicit
7413 declaration of omp_get_thread_num.
7414 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
7415 use omp_lib.
7416
7417 * testsuite/libgomp.fortran/reduction1.f90: New test.
7418 * testsuite/libgomp.fortran/reduction2.f90: New test.
7419 * testsuite/libgomp.fortran/reduction3.f90: New test.
7420 * testsuite/libgomp.fortran/reduction4.f90: New test.
7421
74222005-10-13 Richard Henderson <rth@redhat.com>
7423
7424 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
7425 * Makefile.in: Regenerate.
7426 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
7427 * libgomp.h: Include bar.h.
7428 (struct gomp_barrier): Remove.
7429 (struct gomp_team): Add barrier. Replace master_barrier with
7430 master_release. Replace threads with ordered_release.
7431 (struct gomp_thread): Replace barrier with release.
7432 * ordered.c (gomp_ordered_first): Update for ordered_release change.
7433 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
7434 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
7435 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
7436 (GOMP_single_copy_end): Likewise.
7437 * team.c (gomp_threads_dock): New.
7438 (gomp_barrier_init, gomp_barrier_destroy): Remove.
7439 (gomp_thread_start): Use gomp_barrier_wait.
7440 (new_team, free_team): Update for gomp_team changes.
7441 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
7442 (gomp_team_end): Use gomp_barrier_wait.
7443 (initialize_team): Update for gomp_thread changes.
7444 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
7445 (gomp_work_share_end_nowait): Use atomic ops when available.
7446 * config/linux/bar.c, config/linux/bar.h: New files.
7447 * config/posix/bar.c, config/posix/bar.h: New files.
7448
74492005-10-13 Jakub Jelinek <jakub@redhat.com>
7450
7451 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
7452 * testsuite/libgomp.dg/single-2.c: New test.
7453
7454 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
7455 lang_link_flags): Unset, so that they aren't inherited from previously
7456 sourced *.exp.
7457
7458 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
7459
74602005-10-12 Richard Henderson <rth@redhat.com>
7461
7462 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
7463 (libgomp_init): Use lang_test_file, lang_library_path, and
7464 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
7465
7466 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
7467 (lang_test_file, lang_link_flags): New.
7468 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
7469
7470 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
7471 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
7472 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
7473 testsuite/libgomp.c++/parallel-1.C,
7474 testsuite/libgomp.c++/reduction-1.C,
7475 testsuite/libgomp.c++/reduction-2.C,
7476 testsuite/libgomp.c++/reduction-3.C,
7477 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
7478 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
7479 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
7480 New files, largely cribbed from the C testsuite.
7481
74822005-10-12 Jakub Jelinek <jakub@redhat.com>
7483
7484 * testsuite/libgomp.fortran/character1.f90: New test.
7485 * testsuite/libgomp.fortran/character2.f90: New test.
7486
7487 * testsuite/libgomp.dg/nested-1.c: New test.
7488 * testsuite/libgomp.dg/nested-2.c: New test.
7489 * testsuite/libgomp.fortran/do1.f90: New test.
7490 * testsuite/libgomp.fortran/do2.f90: New test.
7491
7492 * testsuite/libgomp.fortran/reference1.f90: New test.
7493
74942005-10-11 Jakub Jelinek <jakub@redhat.com>
7495
7496 * testsuite/libgomp.dg/reduction-1.c: New test.
7497 * testsuite/libgomp.dg/reduction-2.c: New test.
7498 * testsuite/libgomp.dg/reduction-3.c: New test.
7499
75002005-10-10 Jakub Jelinek <jakub@redhat.com>
7501
7502 * testsuite/libgomp.dg/atomic-1.c: New test.
7503 * testsuite/libgomp.dg/atomic-2.c: New test.
7504
75052005-10-09 Richard Henderson <rth@redhat.com>
7506
7507 * critical.c (atomic_lock): New.
7508 (initialize_critical): Initialize it.
7509 (GOMP_atomic_start, GOMP_atomic_end): New.
7510 * libgomp.map: Export them.
7511 * libgomp_g.h: Declare them.
7512
7513 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
7514
75152005-10-02 Richard Henderson <rth@redhat.com>
7516
7517 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
7518 to XCFLAGS instead of CFLAGS.
7519
75202005-09-30 Richard Henderson <rth@redhat.com>
7521
7522 * configure.ac: Determine whether -pthread or -lpthread is needed.
7523 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
7524 * Makefine.in, configure: Rebuild.
7525
75262005-09-28 Richard Henderson <rth@redhat.com>
7527
7528 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
7529 * testsuite/libgomp.dg/omp-single-3.c: New test.
7530
75312005-09-28 Diego Novillo <dnovillo@redhat.com>
7532
7533 * testsuite/libgomp.dg/omp-single-2.c: New test.
7534 * testsuite/libgomp.dg/shared-2.c: Fix return code.
7535
75362005-09-27 Richard Henderson <rth@redhat.com>
7537
7538 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
7539 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
7540
75412005-09-27 Jakub Jelinek <jakub@redhat.com>
7542
7543 * testsuite/libgomp.dg/omp-loop03.c: New test.
7544
75452005-09-27 Diego Novillo <dnovillo@redhat.com>
7546
7547 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
7548
75492005-09-27 Diego Novillo <dnovillo@redhat.com>
7550
7551 * testsuite/libgomp.dg/omp-single-1.c: New test.
7552 * testsuite/libgomp.dg/shared-1.c: Return 0.
7553 Add prototype for abort.
7554 * testsuite/libgomp.dg/shared-2.c: Likewise.
7555
75562005-09-26 Jakub Jelinek <jakub@redhat.com>
7557
7558 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
7559 constructs.
7560
75612005-09-26 Diego Novillo <dnovillo@redhat.com>
7562
7563 * testsuite/libgomp.dg/shared-1.c: New test.
7564 * testsuite/libgomp.dg/shared-2.c: New test.
7565
75662005-09-24 Richard Henderson <rth@redhat.com>
7567
7568 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
7569
75702005-09-24 Richard Henderson <rth@redhat.com>
7571
7572 * iter.c (gomp_iter_static_next): Round up when computing number
7573 of iterations. Don't bother distributing a remainder equally.
7574
7575 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
7576 Don't call srand. Zero b before testing.
7577 (main): New.
7578
75792005-09-24 Jakub Jelinek <jakub@redhat.com>
7580
7581 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
7582 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
7583
75842005-09-23 Jakub Jelinek <jakub@redhat.com>
7585
7586 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
7587 without !$omp end do, followed immediately by subroutine end.
7588
75892005-09-23 Diego Novillo <dnovillo@redhat.com>
7590
7591 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
7592
75932005-09-22 Richard Henderson <rth@redhat.com>
7594
7595 * critical.c (GOMP_critical_name_start): Change argument to void**.
7596 Reuse the pointer space if the mutex fits.
7597 (GOMP_critical_name_end): Likewise.
7598 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
7599 * libgomp_g.h (GOMP_critical_name_start): Update decl.
7600 (GOMP_critical_name_end): Likewise.
7601 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
7602 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
7603
76042005-09-20 Richard Henderson <rth@redhat.com>
7605
7606 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
7607 (create_lock_lock): New.
7608 (initialize_critical): Initialize it.
7609 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
7610 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
7611
76122005-09-20 Diego Novillo <dnovillo@redhat.com>
7613
7614 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
7615
76162005-09-20 Diego Novillo <dnovillo@redhat.com>
7617
7618 * testsuite/libgomp.dg/omp-loop01.c: New test.
7619 * testsuite/libgomp.dg/omp-loop02.c: New test.
7620
76212005-09-20 Jakub Jelinek <jakub@redhat.com>
7622
7623 * configure.ac (AC_PROG_FC): Add.
7624 (USE_FORTRAN): New automake conditional.
7625 * configure: Rebuilt.
7626 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
7627 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
7628 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
7629 Add rules to build them.
7630 * Makefile.in: Rebuilt.
7631 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
7632 OMP_NEST_LOCK_KIND.
7633 * libgomp.map: Add Fortran wrappers.
7634 * libgomp_f.h.in: New file.
7635 * omp_lib.h.in: New file.
7636 * omp_lib.f90.in: New file.
7637 * fortran.c: New file.
7638 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
7639 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
7640 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
7641 libgfortran has been built.
7642 * testsuite/libgomp.fortran/fortran.exp: New file.
7643 * testsuite/libgomp.fortran/omp_cond1.f: New test.
7644 * testsuite/libgomp.fortran/omp_cond2.f: New test.
7645 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
7646 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
7647 * testsuite/libgomp.fortran/omp_hello.f: New test.
7648 * testsuite/libgomp.fortran/omp_orphan.f: New test.
7649 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
7650 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
7651 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
7652 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
7653 * testsuite/libgomp.fortran/omp_reduction.f: New test.
7654 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
7655 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
7656
76572005-08-30 Richard Henderson <rth@redhat.com>
7658
7659 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
7660 function for when aliases are not usable.
7661 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
7662 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7663 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
7664 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
7665 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
7666 GOMP_loop_ordered_guided_next): Likewise.
7667 * ordered.c (GOMP_ordered_start): Likewise.
7668
76692005-08-01 Diego Novillo <dnovillo@redhat.com>
7670
7671 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
7672 * testsuite/libgomp.dg/omp_hello.c: Fix return code
7673 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
7674 * testsuite/libgomp.dg/omp_orphan.c: Likewise
7675 * testsuite/libgomp.dg/omp_reduction.c: Likewise
7676 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
7677 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
7678 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
7679 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
7680
76812005-07-07 Eric Christopher <echristo@redhat.com>
7682 Diego Novillo <dnovillo@redhat.com>
7683
7684 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
7685 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
7686 up code.
7687 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
7688 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
7689 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
7690 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
7691 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
7692 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
7693 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
7694
76952005-06-13 Diego Novillo <dnovillo@redhat.com>
7696
7697 * TOPLEVEL.patch: Remove.
7698
76992005-05-16 Richard Henderson <rth@redhat.com>
7700
7701 * configure.ac: Test for clock_gettime.
7702 * config.h.in, configure: Rebuild.
7703 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
7704 (omp_get_wtime): Use clock_gettime if available.
7705 (omp_get_wtick): Use clock_getres if available.
7706
77072005-05-11 Richard Henderson <rth@redhat.com>
7708
7709 * config/linux/ia64/futex.h: New file.
7710 * configure.tgt: Use it.
7711
7712 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
7713
77142005-05-07 Richard Henderson <rth@redhat.com>
7715
7716 * config/linux/powerpc/futex.h: New file.
7717 * configure.tgt: Use it.
7718
7719 * config/linux/i486/futex.h: Merge ...
7720 * config/linux/x86_64/futex.h: ... into ...
7721 * config/linux/x86/futex.h: ... here.
7722 * configure.tgt: Update to match.
7723
77242005-05-06 Richard Henderson <rth@redhat.com>
7725
7726 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
7727 * config/linux/i486/futex.h: Likewise.
7728 * config/linux/x86_64/futex.h: Likewise.
7729
7730 * config/linux/lock.c: New file.
7731 * config/linux/omp-lock.h: New file.
7732
7733 * critical.c, env.h: Don't include omp.h
7734 * config/posix/lock.c: Include libgomp.h instead of omp.h.
7735 * config/posix/time.c: Likewise.
7736 * config/posix/omp-lock.h: New file.
7737 * libgomp.h: Include omp-lock.h and omp.h.
7738 * Makefile.am (nodist_include_HEADERS): New.
7739 (omp.h): New rule.
7740 * configure.ac (PERL): New.
7741 * mkomp_h.pl: New file.
7742 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
7743 with templates.
7744 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
7745
7746 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
7747 build directory. Re-add -march=i486 hack.
7748
7749 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
7750 (libgomp_link_flags): Remove.
7751 (libgomp_initialized): Remove.
7752 (libgomp_init): Don't protect from reinitialization. Copy code
7753 from libstdc++ for getting the multilib set correctly.
7754
77552005-05-05 Richard Henderson <rth@redhat.com>
7756
7757 * config/linux/alpha/futex.h: New file.
7758 * configure.tgt (alpha*-*-linux*): Use it.
7759
7760 * config/posix/mutex.c: New file.
7761 * config/posix/sem.c: Use libgomp.h.
7762
7763 * configure.tgt (x86_64-linux): Also test CC for -m32.
7764 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
7765
a1daed2d 7766 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
7767 after $gccpath.
7768
7769 * Makefile.am (SUBDIRS): New.
7770 (libgomp_la_LDFLAGS): Add -lpthread.
7771 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
7772 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
7773
7774 * libgomp_g.h: New file.
7775 * libgomp.h: Split out all public declarations to libgomp_g.h.
7776 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
7777 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
7778 * config/linux/sem.h: Likewise.
7779 * config/posix/sem.h: Likewise.
7780
7781 * Makefile.am (AM_LDFLAGS): New.
7782 (libgomp_version_script): Split out from ...
7783 (libgomp_la_LDFLAGS): ... here.
7784 (libgomp_version_info): New.
7785 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
7786 (LIBGOMP_ENABLE): New.
7787 (LIBGOMP_CHECK_LINKER_FEATURES): New.
7788 (LIBGOMP_ENABLE_SYMVERS): New.
7789 * configure.ac (AC_INIT): Version 1.0.
7790 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
7791 (enable-linux-futex): Likewise. Rename from enable-futex.
7792 (libtool_VERSION): New.
7793 (LIBGOMP_ENABLE_SYMVERS): Use it.
7794 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
7795 * Makefile.in, aclocal.m4, configure: Rebuild.
7796
7797 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
7798 (gomp_mutex_unlock_slow): Fix typo.
7799 * config/linux/sem.c: Similarly.
7800 (gomp_sem_post_slow): Fix typo.
7801 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
7802 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
7803 [__PIC__] (sys_futex0): Don't use tmp output in asm.
7804
7805 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
7806 (libgomp_la_LDFLAGS): Add top_srcdir to path.
7807 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
7808 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
7809 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
7810 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
7811 LDFLAGS. Pull enable_futex check to top-level.
7812 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
7813 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
7814
7815 First attempt at real configury.
7816 * Makefile, config.h: Remove file.
7817 * Makefile.am, Makefile.in: New file.
7818 * acinclude.m4 aclocal.m4: New file.
7819 * configure.ac, configure.tgt, configure: New file.
7820
7821 * config/posix/lock.c: Rename from sys-lock.c.
7822 * config/posix/mutex.h: Rename from sys-mutex.h.
7823 * config/posix/sem.c: Rename from sys-sem.c.
7824 * config/posix/sem.h: Rename from sys-sem.h.
7825 * config/posix/proc.c: Rename from sys-proc.c.
7826 * config/posix/time.c: Rename from sys-proc.c.
7827
7828 * config/linux/mutex.c: New file.
7829 * config/linux/mutex.h: New file.
7830 * config/linux/sem.c: New file.
7831 * config/linux/sem.h: New file.
7832 * config/linux/i486/futex.h: New file.
7833 * config/linux/x86_64/futex.h: New file.
7834
78352005-05-04 Richard Henderson <rth@redhat.com>
7836
7837 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
7838 * libgomp.h: Declare them.
7839 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
7840 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
7841
78422005-05-04 Richard Henderson <rth@redhat.com>
7843
7844 * libgomp-1 code drop
7845
78462005-05-04 Richard Henderson <rth@redhat.com>
7847
7848 * iter.c (gomp_iter_static_next): Return tri-state on 0.
7849 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
7850 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
7851 (gomp_iter_static_next): Update.
7852 (gomp_ordered_static_next): Update.
7853 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
7854 (gomp_loop_ordered_static_start): Likewise. Exit early for a
7855 totally empty range.
7856 (gomp_loop_ordered_static_next): Refine test for calling
7857 gomp_ordered_static_next.
7858 * testsuite/ordered-1.c: Add case for more threads than iterations.
7859
7860 * iter.c (gomp_iter_runtime_next_locked): Remove.
7861 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 7862 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
7863 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7864 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
7865 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
7866 gomp_loop_ordered_guided_next): Downcase name, make static, add
7867 an external alias with the old name.
7868 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7869 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
7870 switch and call one of the above static functions.
7871 * libgomp.h: Update.
7872
7873 * work.c (gomp_work_share_start): Lock the mutex for !first too.
7874 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
7875 GOMP_loop_guided_start, GOMP_loop_runtime_start,
7876 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7877 GOMP_loop_ordered_guided_start): Update to match.
7878 * sections.c (GOMP_sections_start): Likewise.
7879 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
7880
7881 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
7882 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
7883 Use bounds check instead of modulus.
7884 (gomp_ordered_sync): Split out of GOMP_ordered_start.
7885 (gomp_ordered_last): Don't sync with ordered_owner here.
7886 (gomp_ordered_next): Likewise.
7887 (gomp_ordered_static_loop_next): Likewise.
7888 * loop.c, libgomp.h: Update to match.
7889
7890 * libgomp.h (GOMP_barrier): Declare.
7891
7892 * testsuite/barrier-1.c: New file.
7893 * testsuite/critical-1.c: New file.
7894 * testsuite/ordered-2.c: New file.
7895 * testsuite/ordered-1.c: New file.
7896 * testsuite/sections-1.c: New file.
7897 * testsuite/single-1.c: New file.
7898 * testsuite/Makefile (TESTS): Add them.
7899
79002005-05-04 Richard Henderson <rth@redhat.com>
7901
7902 * libgomp.h (struct gomp_work_share): Add ordered_owner.
7903 * loop.c (GOMP_loop_static_start): If not the startup thread,
7904 acquire the mutex to wait for initialization complete.
7905 (GOMP_loop_ordered_static_start): Likewise.
7906 (GOMP_loop_ordered_runtime_start): Likewise.
7907 (GOMP_loop_ordered_static_first): Remove.
7908 (GOMP_loop_ordered_dynamic_first): Remove.
7909 (GOMP_loop_ordered_guided_first): Remove.
7910 (GOMP_loop_ordered_runtime_first): Remove.
7911 * ordered.c (gomp_ordered_loop_first): Post to own release when
7912 we're the first thread.
7913 (gomp_ordered_loop_last): Wait on release if not owner.
7914 (gomp_ordered_loop_next): Likewise.
7915 (gomp_ordered_static_loop_init): New.
7916 (gomp_ordered_static_loop_next): Use ordered_owner.
7917 (GOMP_ordered_start): Likewise.
7918 * work.c (gomp_new_work_share): Initialize ordered_owner.
7919
79202005-05-03 Richard Henderson <rth@redhat.com>
7921
7922 * Makefile (OPT): New.
7923 (CFLAGS): Use it.
7924
7925 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
7926 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
7927 * libgomp.h, libgomp.map, NOTES: Update to match.
7928
7929 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
7930 Add initialized and thr members.
7931 (gomp_thread_start): Pause when initially spawned to wait for
7932 the whole team to be created.
7933 (gomp_team_start): Release team members at the end.
7934
7935 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
7936 (f_foo_1): Use GOMP_loop_end.
7937 (f_foo_2): Use GOMP_loop_end_nowait.
7938
7939 * testsuite/loop-2.c: New file.
7940 * testsuite/Makefile (TESTS): Add it.
7941
79422005-05-03 Richard Henderson <rth@redhat.com>
7943
7944 * iter.c (gomp_iter_static_next): Fix overflow check typo.
7945 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
7946 * team.c (new_team): Initialize oldest_live_gen to 1 if no
7947 initial work_share.
7948
7949 * testsuite/Makefile: New file.
7950 * testsuite/loop-1.c: New file.
7951
79522005-05-03 Richard Henderson <rth@redhat.com>
7953
7954 Initial implementation and checkin.
21fa2a29
JJ
7955\f
7956Copyright (C) 2005-2016 Free Software Foundation, Inc.
7957
7958Copying and distribution of this file, with or without modification,
7959are permitted in any medium without royalty provided the copyright
7960notice and this notice are preserved.