1 2016-05-23 Martin Jambor <mjambor@suse.cz>
3 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
7 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8 to gomp_init_targets_once.
9 (acc_set_device_type): Remove !cached_base_dev condition on call to
10 gomp_init_targets_once, move call to before acc_device_lock acquire,
12 (acc_get_device_num): Remove !cached_base_dev condition on call to
13 gomp_init_targets_once.
14 (acc_set_device_num): Likewise.
16 2016-05-16 Martin Jambor <mjambor@suse.cz>
18 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
20 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
23 expected partitioning.
25 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
28 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
29 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
30 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
32 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
34 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
37 2016-04-19 Jakub Jelinek <jakub@redhat.com>
40 * testsuite/libgomp.c/pr70680-1.c: New test.
41 * testsuite/libgomp.c/pr70680-2.c: New test.
43 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
45 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
46 pass parameter variables to subroutines.
48 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
51 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
53 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
56 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
57 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
59 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
61 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
62 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
63 GOACC_declare prototype.
65 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
66 Merge this file, and...
67 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
69 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
71 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
73 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
75 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
77 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
79 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
81 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
83 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
85 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
87 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
89 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
91 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
94 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
95 Make failure observable.
97 2016-04-12 Jakub Jelinek <jakub@redhat.com>
99 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
101 * target.c (gomp_target_fallback_firstprivate,
102 gomp_target_unshare_firstprivate): Removed.
103 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
104 before waiting for dependencies.
105 (gomp_target_task_fn): Don't copy firstprivate vars here.
106 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
107 firstprivate_copies here.
108 (gomp_create_target_task): Don't initialize firstprivate_copies field.
109 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
110 explicit/implicit firstprivate.
112 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
116 PR tree-optimization/70373
120 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
122 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
124 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
126 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
128 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
130 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
132 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
134 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
136 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
138 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
139 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
140 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
141 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
143 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
145 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
147 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
149 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
151 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
152 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
153 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
154 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
155 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
156 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
158 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
159 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
160 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
161 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
162 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
163 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
164 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
165 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
166 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
167 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
168 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
169 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
170 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
171 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
172 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
174 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
175 James Norris <jnorris@codesourcery.com>
176 Nathan Sidwell <nathan@codesourcery.com>
177 Julian Brown <julian@codesourcery.com>
178 Cesar Philippidis <cesar@codesourcery.com>
179 Chung-Lin Tang <cltang@codesourcery.com>
180 Tom de Vries <tom@codesourcery.com>
182 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
183 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
184 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
185 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
186 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
187 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
188 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
189 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
190 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
192 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
194 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
196 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
197 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
198 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
199 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
201 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
203 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
204 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
205 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
206 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
207 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
208 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
209 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
210 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
211 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
212 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
214 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
215 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
216 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
218 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
220 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
222 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
224 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
226 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
227 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
228 ... this new file. Update.
229 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
230 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
231 ... this new file. Update.
232 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
234 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
236 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
238 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
240 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
242 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
244 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
247 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
249 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
251 * testsuite/libgomp.oacc-c/c.exp: Likewise.
252 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
253 -fno-builtin-acc_on_device instead of -O0.
254 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
256 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
257 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
259 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
260 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
261 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
262 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
263 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
264 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
265 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
266 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
267 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
268 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
269 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
270 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
271 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
272 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
273 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
274 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
275 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
276 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
278 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
280 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
283 2016-03-24 Martin Liska <mliska@suse.cz>
285 * plugin/plugin-hsa.c (packet_store_release): New function
286 that is taken from the HSA runtime manual.
287 (GOMP_OFFLOAD_run): Use the function.
289 2016-03-23 Jakub Jelinek <jakub@redhat.com>
292 * testsuite/libgomp.c++/pr70376.C: New test.
294 2016-03-23 Tom de Vries <tom@codesourcery.com>
296 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
297 initialization of lresult and lvresult.
298 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
300 2016-03-23 James Norris <jnorris@codesourcery.com>
301 Daichi Fukuoka <dc-fukuoka@sgi.com>
304 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
305 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
306 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
307 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
309 2016-03-23 Martin Liska <mliska@suse.cz>
312 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
313 argument just in case a dispatched kernel uses that argument.
315 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
317 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
318 -ftree-parallelize-loops/-fopenacc changes.
319 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
321 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
323 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
325 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
327 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
328 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
330 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
332 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
333 always_ld_library_path the path to libgcc_s.
335 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
338 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
340 2016-03-09 Tom de Vries <tom@codesourcery.com>
342 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
343 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
344 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
346 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
347 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
348 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
349 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
351 2016-03-07 Martin Jambor <mjambor@suse.cz>
353 * testsuite/lib/libgomp.exp
354 (check_effective_target_hsa_offloading_selected_nocache): New.
355 (check_effective_target_hsa_offloading_selected): Likewise.
356 * testsuite/libgomp.hsa.c/c.exp: Likewise.
357 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
358 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
359 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
360 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
361 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
362 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
363 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
364 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
365 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
366 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
367 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
368 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
369 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
370 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
371 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
372 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
374 2016-03-07 Martin Jambor <mjambor@suse.cz>
376 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
377 non-shared memory accelerators.
378 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
379 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
380 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
381 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
382 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
383 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
384 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
385 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
386 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
388 2016-03-07 Martin Jambor <mjambor@suse.cz>
390 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
393 2016-03-02 Jakub Jelinek <jakub@redhat.com>
396 * testsuite/libgomp.c++/pr69555-1.C: New test.
397 * testsuite/libgomp.c++/pr69555-2.C: New test.
399 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
400 Martin Jambor <mjambor@suse.cz>
402 * testsuite/lib/libgomp.exp
403 (check_effective_target_offload_device_shared_as): New proc.
404 * testsuite/libgomp.c++/declare_target-1.C: New test.
406 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
409 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
411 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
413 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
414 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
416 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
417 -ftree-parallelize-loops/-fopenacc changes.
418 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
419 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
421 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
423 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
425 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
427 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
429 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
431 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
433 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
434 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
436 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
437 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
439 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
440 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
443 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
445 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
447 2016-02-19 Jakub Jelinek <jakub@redhat.com>
450 * testsuite/libgomp.c/pr69805.c: New test.
452 2016-02-16 Tom de Vries <tom@codesourcery.com>
455 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
457 2016-02-09 Tom de Vries <tom@codesourcery.com>
459 PR tree-optimization/69599
460 * testsuite/libgomp.c/omp-nested-3.c: New test.
461 * testsuite/libgomp.c/pr46032-2.c: New test.
462 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
463 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
465 2016-02-09 Tom de Vries <tom@codesourcery.com>
468 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
470 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
472 * testsuite/libgomp.c/target-31.c: Fix testcase.
474 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
476 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
478 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
479 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
480 reduction and map clauses.
481 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
483 2016-02-02 James Norris <jnorris@codesourcery.com>
485 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
487 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
489 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
490 * oacc-parallel.c (GOACC_host_data): Remove function definition.
492 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
495 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
497 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
498 (hsa_kmt_lib): Set variables.
499 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
500 always_ld_library_path.
501 * Makefile.in: Regenerate.
502 * configure: Likewise.
503 * testsuite/Makefile.in: Likewise.
505 * plugin/configfrag.ac (offload_additional_options)
506 (offload_additional_lib_paths): Don't amend for hsa offloading.
507 * configure: Regenerate.
509 * plugin/configfrag.ac: Don't configure for offloading target if
510 we don't build the corresponding plugin.
511 * configure: Regenerate.
513 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
515 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
516 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
518 2016-01-26 Tom de Vries <tom@codesourcery.com>
520 PR tree-optimization/69110
521 * testsuite/libgomp.c/pr69110.c: New test.
523 2016-01-25 Richard Biener <rguenther@suse.de>
526 * testsuite/libgomp.c++/pr69393.C: New testcase.
528 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
530 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
531 function wasn't mapped to the device with non-shared memory.
533 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
535 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
537 2016-01-19 Martin Jambor <mjambor@suse.cz>
538 Martin Liska <mliska@suse.cz>
540 * plugin/Makefrag.am: Add HSA plugin requirements.
541 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
542 (HSA_RUNTIME_LIB): Likewise.
543 (HSA_RUNTIME_CPPFLAGS): Likewise.
544 (HSA_RUNTIME_INCLUDE): New substitution.
545 (HSA_RUNTIME_LIB): Likewise.
546 (HSA_RUNTIME_LDFLAGS): Likewise.
547 (hsa-runtime): New configure option.
548 (hsa-runtime-include): Likewise.
549 (hsa-runtime-lib): Likewise.
550 (PLUGIN_HSA): New substitution variable.
551 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
553 (PLUGIN_HSA_CPPFLAGS): Likewise.
554 (PLUGIN_HSA_LDFLAGS): Likewise.
555 (PLUGIN_HSA_LIBS): Likewise.
556 Check that we have access to HSA run-time.
557 * libgomp-plugin.h (offload_target_type): New element
558 OFFLOAD_TARGET_TYPE_HSA.
559 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
561 (bool gomp_create_target_task): Updated.
562 (gomp_device_descr): Extra parameter of run_func and async_run_func,
563 new field can_run_func.
564 * libgomp_g.h (GOMP_target_ext): Update prototype.
565 * oacc-host.c (host_run): Added a new parameter args.
566 * target.c (calculate_firstprivate_requirements): New function.
567 (copy_firstprivate_data): Likewise.
568 (gomp_target_fallback_firstprivate): Use them.
569 (gomp_target_unshare_firstprivate): New function.
570 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
572 (GOMP_target): Do host fallback for all shared memory devices. Do not
573 pass any args to plugins.
574 (GOMP_target_ext): Introduce device-specific argument parameter args.
575 Allow host fallback if device shares memory. Do not remap data if
576 device has shared memory.
577 (gomp_target_task_fn): Likewise. Also treat shared memory devices
578 like host fallback for mappings.
579 (GOMP_target_data): Treat shared memory devices like host fallback.
580 (GOMP_target_data_ext): Likewise.
581 (GOMP_target_update): Likewise.
582 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
583 gomp_create_target_task.
584 (GOMP_target_enter_exit_data): Likewise.
585 (omp_target_alloc): Treat shared memory devices like host fallback.
586 (omp_target_free): Likewise.
587 (omp_target_is_present): Likewise.
588 (omp_target_memcpy): Likewise.
589 (omp_target_memcpy_rect): Likewise.
590 (omp_target_associate_ptr): Likewise.
591 (gomp_load_plugin_for_device): Also load can_run.
592 * task.c (GOMP_PLUGIN_target_task_completion): Free
594 (gomp_create_target_task): Accept new argument args and store it to
596 * plugin/plugin-hsa.c: New file.
598 2016-01-18 Tom de Vries <tom@codesourcery.com>
600 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
601 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
602 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
603 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
604 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
605 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
606 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
607 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
608 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
609 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
610 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
612 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
614 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
615 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
616 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
617 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
618 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
619 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
620 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
621 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
623 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
625 2016-01-15 Jakub Jelinek <jakub@redhat.com>
627 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
629 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
631 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
633 2016-01-12 James Norris <jnorris@codesourcery.com>
635 * libgomp.texi: Updates for OpenACC.
637 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
639 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
641 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
644 * testsuite/libgomp.fortran/pr66680.f90: New test.
646 2016-01-07 Jakub Jelinek <jakub@redhat.com>
649 * testsuite/libgomp.c/pr68960.c: New test.
651 2016-01-06 Nathan Sidwell <nathan@acm.org>
653 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
654 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
656 2016-01-04 Jakub Jelinek <jakub@redhat.com>
658 Update copyright years.
660 * libgomp.texi: Bump @copying's copyright year.
662 2015-12-31 Nathan Sidwell <nathan@acm.org>
664 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
665 dg-additional-options syntax.
666 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
667 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
668 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
669 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
670 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
671 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
672 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
673 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
674 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
675 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
676 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
677 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
678 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
679 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
680 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
681 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
682 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
683 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
685 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
687 * libgomp.h (REFCOUNT_LINK): Define.
688 (struct splay_tree_key_s): Add link_key.
689 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
690 Replace target address of the pointer with target address of newly
691 mapped object in the splay tree. Set link pointer on target to the
692 device address of the mapped object.
693 (gomp_unmap_vars): Restore target address of the pointer in the splay
694 tree for REFCOUNT_LINK objects after unmapping.
695 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
696 declare target link" objects.
697 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
698 "omp declare target link" objects, which were mapped for the image.
699 (gomp_exit_data): Restore target address of the pointer in the splay
700 tree for REFCOUNT_LINK objects after unmapping.
701 * testsuite/libgomp.c/target-link-1.c: New file.
703 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
705 * libgomp.h (gomp_device_state): New enum.
706 (struct gomp_device_descr): Replace is_initialized with state.
707 (gomp_fini_device): Remove declaration.
708 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
709 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
710 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
711 (acc_set_device_type): Use state instead of is_initialized.
712 (acc_set_device_num): Likewise.
713 * target.c (resolve_device): Use state instead of is_initialized.
714 Do not initialize finalized device.
715 (gomp_map_vars): Do nothing if device is finalized.
716 (gomp_unmap_vars): Likewise.
717 (gomp_update): Likewise.
718 (GOMP_offload_register_ver): Use state instead of is_initialized.
719 (GOMP_offload_unregister_ver): Likewise.
720 (gomp_init_device): Likewise.
721 (gomp_unload_device): Likewise.
722 (gomp_fini_device): Remove.
723 (gomp_get_target_fn_addr): Do nothing if device is finalized.
724 (GOMP_target): Go to host fallback if device is finalized.
725 (GOMP_target_ext): Likewise.
726 (gomp_exit_data): Do nothing if device is finalized.
727 (gomp_target_task_fn): Go to host fallback if device is finalized.
728 (gomp_target_fini): New static function.
729 (gomp_target_init): Use state instead of is_initialized.
730 Call gomp_target_fini at exit.
732 2015-12-09 Tom de Vries <tom@codesourcery.com>
734 PR tree-optimization/68716
735 * testsuite/libgomp.c/omp-nested-2.c: New test.
737 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
739 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
740 target openacc_nvidia_accel_selected.
741 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
742 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
743 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
744 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
746 2015-12-01 Julian Brown <julian@codesourcery.com>
747 James Norris <James_Norris@mentor.com>
749 * oacc-parallel.c (GOACC_host_data): New function.
750 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
751 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
752 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
753 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
754 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
755 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
756 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
758 2015-11-30 James Norris <jnorris@codesourcery.com>
759 Cesar Philippidis <cesar@codesourcery.com>
762 * libgomp.oacc-fortran/routine-5.f90: New test.
763 * libgomp.oacc-fortran/routine-7.f90: New test.
764 * libgomp.oacc-fortran/routine-9.f90: New test.
766 2015-11-30 Tom de Vries <tom@codesourcery.com>
768 PR tree-optimization/46032
769 * testsuite/libgomp.c/pr46032.c: New test.
771 2015-11-27 Jakub Jelinek <jakub@redhat.com>
774 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
775 (gomp_create_target_task): Call it before freeing
776 GOMP_TARGET_TASK_DATA tasks.
779 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
780 in between case label and OpenMP standalone directives.
781 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
783 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
785 * configure: Regenerate.
787 2015-11-26 Jakub Jelinek <jakub@redhat.com>
789 * testsuite/libgomp.c/target-35.c: New test.
791 2015-11-22 James Norris <jnorris@codesourcery.com>
792 Cesar Philippidis <cesar@codesourcery.com>
794 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
795 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
796 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
797 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
798 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
800 2015-11-20 Jakub Jelinek <jakub@redhat.com>
803 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
804 * testsuite/libgomp.c/reduction-12.c: Likewise.
805 * testsuite/libgomp.c++/reduction-11.C: Likewise.
806 * testsuite/libgomp.c++/reduction-12.C: Likewise.
808 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
810 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
811 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
812 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
813 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
814 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
816 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
817 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
819 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
821 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
823 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
825 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
827 * config/nvptx/priority_queue.c: New file.
829 2015-11-14 Jakub Jelinek <jakub@redhat.com>
831 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
834 2015-11-14 Jakub Jelinek <jakub@redhat.com>
835 Aldy Hernandez <aldyh@redhat.com>
836 Ilya Verbin <ilya.verbin@intel.com>
838 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
839 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
840 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
841 iterators or IV by chunk size.
842 * parallel.c (gomp_resolve_num_threads): Don't assume that
843 if thr->ts.team is non-NULL, then pool must be non-NULL.
844 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
845 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
846 GOMP_PLUGIN_target_task_completion.
847 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
848 * Makefile.in: Regenerate.
849 * libgomp.h: Shuffle prototypes and forward definitions around so
850 priority queues can be defined.
851 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
852 (enum gomp_target_task_state): New enum.
853 (struct gomp_target_task): Add state, tgt, task and team fields.
854 (gomp_create_target_task): Change return type to bool, add
856 (gomp_target_task_fn): Change return type to bool.
857 (struct gomp_device_descr): Add async_run_func.
858 (struct gomp_task): Remove children, next_child, prev_child,
859 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
861 (struct gomp_taskgroup): Remove children.
863 (struct gomp_team): Change task_queue type to a priority queue.
864 (splay_compare): Define inline.
865 (priority_queue_offset): New.
866 (priority_node_to_task): New.
867 (task_to_priority_node): New.
868 * oacc-mem.c: Do not include splay-tree.h.
869 * priority_queue.c: New file.
870 * priority_queue.h: New file.
871 * splay-tree.c: Do not include splay-tree.h.
872 (splay_tree_foreach_internal): New.
873 (splay_tree_foreach): New.
874 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
875 (splay_tree_callback): Define typedef.
876 * target.c (splay_compare): Move to libgomp.h.
877 (GOMP_target): Don't adjust *thr in any way around running offloaded
879 (GOMP_target_ext): Likewise. Handle target nowait.
880 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
881 return value from gomp_create_target_task, if false, fallthrough
882 as if no dependencies exist.
883 (gomp_target_task_fn): Change return type to bool, return true
884 if the task should have another part scheduled later. Handle
886 (gomp_load_plugin_for_device): Initialize async_run.
887 * task.c (gomp_init_task): Initialize children_queue.
888 (gomp_clear_parent_in_list): New.
889 (gomp_clear_parent_in_tree): New.
890 (gomp_clear_parent): Handle priorities.
891 (GOMP_task): Likewise.
892 (priority_queue_move_task_first,
893 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
895 (gomp_create_target_task): Use priority queues. Change return type
896 to bool, add state argument, return false if for async
897 {{enter,exit} data,update} constructs no dependencies need to be
898 waited for, handle target nowait. Set task->fn to NULL instead of
900 (verify_children_queue): Remove.
901 (priority_list_upgrade_task): New.
902 (priority_queue_upgrade_task): New.
903 (verify_task_queue): Remove.
904 (priority_list_downgrade_task): New.
905 (priority_queue_downgrade_task): New.
906 (gomp_task_run_pre): Use priority queues.
907 Abstract code out to priority_queue_downgrade_task.
908 (gomp_task_run_post_handle_dependers): Use priority queues.
909 (gomp_task_run_post_remove_parent): Likewise.
910 (gomp_task_run_post_remove_taskgroup): Likewise.
911 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
913 (GOMP_taskwait): Likewise.
914 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
915 priority-queue_upgrade_task.
916 (GOMP_taskgroup_start): Use priority queues.
917 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
918 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
920 * taskloop.c (GOMP_taskloop): Handle priorities.
921 * team.c (gomp_new_team): Call priority_queue_init.
922 (free_team): Call priority_queue_free.
923 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
924 team created for target nowait in implicit parallel region.
925 (gomp_team_start): For nested check, test thr->ts.level instead of
926 thr->ts.team != NULL.
927 * testsuite/libgomp.c/doacross-3.c: New test.
928 * testsuite/libgomp.c/ordered-5.c: New test.
929 * testsuite/libgomp.c/priority.c: New test.
930 * testsuite/libgomp.c/target-31.c: New test.
931 * testsuite/libgomp.c/target-32.c: New test.
932 * testsuite/libgomp.c/target-33.c: New test.
933 * testsuite/libgomp.c/target-34.c: New test.
935 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
937 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
939 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
942 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
944 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
945 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
947 2015-11-12 James Norris <jnorris@codesourcery.com>
948 Joseph Myers <joseph@codesourcery.com>
950 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
951 * oacc-parallel.c (GOACC_declare): New function.
952 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
953 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
954 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
955 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
956 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
958 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
960 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
962 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
964 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
965 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
967 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
969 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
972 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
974 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
975 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
976 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
977 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
978 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
980 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
982 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
983 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
985 2015-11-05 Jakub Jelinek <jakub@redhat.com>
986 Ilya Verbin <ilya.verbin@intel.com>
988 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
989 GOMP_loop_nonmonotonic_dynamic_start,
990 GOMP_loop_nonmonotonic_guided_next,
991 GOMP_loop_nonmonotonic_guided_start,
992 GOMP_loop_ull_nonmonotonic_dynamic_next,
993 GOMP_loop_ull_nonmonotonic_dynamic_start,
994 GOMP_loop_ull_nonmonotonic_guided_next,
995 GOMP_loop_ull_nonmonotonic_guided_start,
996 GOMP_parallel_loop_nonmonotonic_dynamic,
997 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
998 (GOMP_target_41): Renamed to ...
999 (GOMP_target_ext): ... this. Add num_teams and thread_limit
1001 (GOMP_target_data_41): Renamed to ...
1002 (GOMP_target_data_ext): ... this.
1003 (GOMP_target_update_41): Renamed to ...
1004 (GOMP_target_update_ext): ... this.
1005 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
1006 GOMP_target_data_ext and GOMP_target_update_ext instead of
1007 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
1008 Export GOMP_loop_nonmonotonic_dynamic_next,
1009 GOMP_loop_nonmonotonic_dynamic_start,
1010 GOMP_loop_nonmonotonic_guided_next,
1011 GOMP_loop_nonmonotonic_guided_start,
1012 GOMP_loop_ull_nonmonotonic_dynamic_next,
1013 GOMP_loop_ull_nonmonotonic_dynamic_start,
1014 GOMP_loop_ull_nonmonotonic_guided_next,
1015 GOMP_loop_ull_nonmonotonic_guided_start,
1016 GOMP_parallel_loop_nonmonotonic_dynamic and
1017 GOMP_parallel_loop_nonmonotonic_guided.
1018 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
1019 GOMP_parallel_loop_nonmonotonic_guided,
1020 GOMP_loop_nonmonotonic_dynamic_start,
1021 GOMP_loop_nonmonotonic_guided_start,
1022 GOMP_loop_nonmonotonic_dynamic_next,
1023 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
1024 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
1025 GOMP_loop_ull_nonmonotonic_guided_start,
1026 GOMP_loop_ull_nonmonotonic_dynamic_next,
1027 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
1028 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
1030 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
1031 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
1032 Use gomp_map_val function.
1033 (gomp_target_fallback_firstprivate): New static function.
1034 (GOMP_target_41): Renamed to ...
1035 (GOMP_target_ext): ... this. Add num_teams and thread_limit
1036 arguments. Move firstprivate fallback handling into a new
1038 (GOMP_target_data_41): Renamed to ...
1039 (GOMP_target_data_ext): ... this.
1040 (GOMP_target_update_41): Renamed to ...
1041 (GOMP_target_update_ext): ... this.
1042 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
1043 gomp_map_0len_lookup instead of gomp_map_lookup.
1044 (omp_target_is_present): Use gomp_map_0len_lookup instead of
1046 * testsuite/libgomp.c/target-28.c: Likewise.
1047 * testsuite/libgomp.c/monotonic-1.c: New test.
1048 * testsuite/libgomp.c/monotonic-2.c: New test.
1049 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
1050 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
1051 * testsuite/libgomp.c/pr66199-5.c: New test.
1052 * testsuite/libgomp.c/pr66199-6.c: New test.
1053 * testsuite/libgomp.c/pr66199-7.c: New test.
1054 * testsuite/libgomp.c/pr66199-8.c: New test.
1055 * testsuite/libgomp.c/pr66199-9.c: New test.
1056 * testsuite/libgomp.c/reduction-11.c: New test.
1057 * testsuite/libgomp.c/reduction-12.c: New test.
1058 * testsuite/libgomp.c/reduction-13.c: New test.
1059 * testsuite/libgomp.c/reduction-14.c: New test.
1060 * testsuite/libgomp.c/reduction-15.c: New test.
1061 * testsuite/libgomp.c/target-12.c (main): Adjust for
1062 omp_target_is_present change for one-past-last element.
1063 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
1064 the same var is both mapped and privatized.
1065 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
1066 handling of zero-length array sections.
1067 * testsuite/libgomp.c/target-28.c: New test.
1068 * testsuite/libgomp.c/target-29.c: New test.
1069 * testsuite/libgomp.c/target-30.c: New test.
1070 * testsuite/libgomp.c/target-teams-1.c: New test.
1071 * testsuite/libgomp.c++/member-6.C: New test.
1072 * testsuite/libgomp.c++/member-7.C: New test.
1073 * testsuite/libgomp.c++/monotonic-1.C: New test.
1074 * testsuite/libgomp.c++/monotonic-2.C: New test.
1075 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
1076 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
1077 * testsuite/libgomp.c++/pr66199-3.C: New test.
1078 * testsuite/libgomp.c++/pr66199-4.C: New test.
1079 * testsuite/libgomp.c++/pr66199-5.C: New test.
1080 * testsuite/libgomp.c++/pr66199-6.C: New test.
1081 * testsuite/libgomp.c++/pr66199-7.C: New test.
1082 * testsuite/libgomp.c++/pr66199-8.C: New test.
1083 * testsuite/libgomp.c++/pr66199-9.C: New test.
1084 * testsuite/libgomp.c++/reduction-11.C: New test.
1085 * testsuite/libgomp.c++/reduction-12.C: New test.
1086 * testsuite/libgomp.c++/target-13.C: New test.
1087 * testsuite/libgomp.c++/target-14.C: New test.
1088 * testsuite/libgomp.c++/target-15.C: New test.
1089 * testsuite/libgomp.c++/target-16.C: New test.
1090 * testsuite/libgomp.c++/target-17.C: New test.
1091 * testsuite/libgomp.c++/target-18.C: New test.
1092 * testsuite/libgomp.c++/target-19.C: New test.
1094 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1096 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
1098 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1099 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1100 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1101 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1102 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1103 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1104 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1105 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1106 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1107 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
1108 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
1109 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1110 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1111 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
1113 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1115 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
1116 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
1117 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
1118 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
1119 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
1120 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
1121 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
1122 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
1124 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
1126 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
1127 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
1128 (GOMP_OFFLOAD_openacc_parallel): Likewise.
1129 * oacc-host.c (host_openacc_exec): Likewise.
1130 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
1132 2015-11-03 Julian Brown <julian@codesourcery.com>
1133 Thomas Schwinge <thomas@codesourcery.com>
1135 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
1136 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1137 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
1139 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
1140 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
1142 2015-11-03 James Norris <jnorris@codesourcery.com>
1144 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
1146 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
1148 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
1149 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
1150 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
1151 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
1152 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
1154 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
1156 * openacc.h (enum acc_device_t): Reformat. Ensure layout
1158 (enum acc_async_t): Reformat.
1159 (acc_on_device): Declare compatible with builtin and provide C++
1161 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
1163 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
1164 Cesar Philippidis <cesar@codesourcery.com>
1166 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
1167 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
1168 ... this. Add a description of the test at the top of the file.
1169 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
1170 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
1171 ... this. Add a description of the test at the top of the file.
1173 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1175 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
1176 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
1177 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
1178 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
1179 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
1180 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
1182 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1184 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
1187 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1190 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
1192 2015-10-27 James Norris <jnorris@codesourcery.com>
1194 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
1195 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
1197 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
1199 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
1200 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1202 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
1203 acc_device_nvidia usage.
1204 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1205 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1206 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
1208 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
1209 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
1212 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
1216 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
1217 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
1219 2015-10-23 Tom de Vries <tom@codesourcery.com>
1222 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
1224 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
1226 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
1228 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1230 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
1231 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
1233 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
1234 to 0 when mapnum is 0.
1236 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1238 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
1239 Cast to int from int32_t.
1241 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1242 Aldy Hernandez <aldyh@redhat.com>
1243 Ilya Verbin <ilya.verbin@intel.com>
1245 * config/linux/affinity.c (omp_get_place_num_procs,
1246 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
1247 * config/linux/doacross.h: New file.
1248 * config/posix/affinity.c (omp_get_place_num_procs,
1249 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
1250 * config/posix/doacross.h: New file.
1251 * env.c: Include gomp-constants.h.
1252 (struct gomp_task_icv): Rename run_sched_modifier to
1253 run_sched_chunk_size.
1254 (gomp_max_task_priority_var): New variable.
1255 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
1256 (handle_omp_display_env): Change _OPENMP value from 201307 to
1257 201511. Print OMP_MAX_TASK_PRIORITY.
1258 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
1259 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
1260 chunk_size and run_sched_modifier to run_sched_chunk_size.
1261 (omp_get_max_task_priority, omp_get_initial_device,
1262 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
1263 omp_get_partition_place_nums): New functions.
1264 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
1265 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
1267 (omp_get_num_places_, omp_get_place_num_procs_,
1268 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
1269 omp_get_place_proc_ids_8_, omp_get_place_num_,
1270 omp_get_partition_num_places_, omp_get_partition_place_nums_,
1271 omp_get_partition_place_nums_8_, omp_get_initial_device_,
1272 omp_get_max_task_priority_): New functions.
1273 * libgomp_g.h (GOMP_loop_doacross_static_start,
1274 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
1275 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
1276 GOMP_loop_ull_doacross_dynamic_start,
1277 GOMP_loop_ull_doacross_guided_start,
1278 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
1279 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
1280 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
1281 GOMP_target_data_41, GOMP_target_update_41,
1282 GOMP_target_enter_exit_data): New prototypes.
1283 (GOMP_task): Add prototype argument.
1284 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
1285 (struct gomp_doacross_work_share): New type.
1286 (struct gomp_work_share): Add doacross field.
1287 (struct gomp_task_icv): Rename run_sched_modifier to
1288 run_sched_chunk_size.
1289 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
1290 GOMP_TASK_UNDEFERRED. Add comments.
1291 (struct gomp_task_depend_entry): Add comments.
1292 (struct gomp_task): Likewise.
1293 (struct gomp_taskgroup): Likewise.
1294 (struct gomp_target_task): New type.
1295 (struct gomp_team): Add comment.
1296 (gomp_get_place_proc_ids_8, gomp_doacross_init,
1297 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
1298 gomp_create_target_task, gomp_target_task_fn): New prototypes.
1299 (struct target_var_desc): New type.
1300 (struct target_mem_desc): Adjust comment. Use struct
1301 target_var_desc instead of splay_tree_key for list.
1302 (REFCOUNT_INFINITY): Define.
1303 (struct splay_tree_key_s): Remove copy_from field.
1304 (struct gomp_device_descr): Add dev2dev_func field.
1305 (enum gomp_map_vars_kind): New enum.
1306 (gomp_map_vars): Add one argument.
1307 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
1308 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
1309 omp_get_place_num_procs, omp_get_place_num_procs_,
1310 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
1311 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
1312 omp_get_place_num_, omp_get_partition_num_places,
1313 omp_get_partition_num_places_, omp_get_partition_place_nums,
1314 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
1315 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
1316 omp_target_free, omp_target_is_present, omp_target_memcpy,
1317 omp_target_memcpy_rect, omp_target_associate_ptr and
1318 omp_target_disassociate_ptr.
1319 (GOMP_4.0.2): Renamed to ...
1320 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
1321 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
1322 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
1323 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
1324 GOMP_loop_doacross_static_start, GOMP_doacross_post,
1325 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
1326 GOMP_loop_ull_doacross_guided_start,
1327 GOMP_loop_ull_doacross_runtime_start,
1328 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
1329 GOMP_doacross_ull_wait.
1330 * libgomp.texi: Document omp_get_max_task_priority.
1331 Rename modifier argument to chunk_size for omp_set_schedule and
1332 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
1333 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
1334 to run_sched_chunk_size renaming.
1335 (GOMP_loop_ordered_runtime_start): Likewise.
1336 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1337 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
1338 GOMP_parallel_loop_runtime_start): New functions.
1339 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
1340 to run_sched_chunk_size renaming.
1341 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
1342 GOMP_loop_doacross_guided_start): New functions or aliases.
1343 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
1344 run_sched_modifier to run_sched_chunk_size renaming.
1345 (GOMP_loop_ull_ordered_runtime_start): Likewise.
1346 (gomp_loop_ull_doacross_static_start,
1347 gomp_loop_ull_doacross_dynamic_start,
1348 gomp_loop_ull_doacross_guided_start,
1349 GOMP_loop_ull_doacross_runtime_start): New functions.
1350 (GOMP_loop_ull_doacross_static_start,
1351 GOMP_loop_ull_doacross_dynamic_start,
1352 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
1353 * oacc-mem.c (acc_map_data, present_create_copy,
1354 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
1356 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
1357 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
1358 instead of false to gomp_map_vars.
1359 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
1360 * omp.h.in (omp_lock_hint_t): New type.
1361 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1362 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1363 omp_get_place_num, omp_get_partition_num_places,
1364 omp_get_partition_place_nums, omp_get_initial_device,
1365 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
1366 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
1367 omp_target_associate_ptr, omp_target_disassociate_ptr): New
1369 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
1370 (omp_lock_hint_none, omp_lock_hint_uncontended,
1371 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
1372 omp_lock_hint_speculative): New parameters.
1373 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1374 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1375 omp_get_place_num, omp_get_partition_num_places,
1376 omp_get_partition_place_nums, omp_get_initial_device,
1377 omp_get_max_task_priority): New interfaces.
1378 (omp_set_schedule, omp_get_schedule): Rename modifier argument
1380 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
1381 (omp_lock_hint_none, omp_lock_hint_uncontended,
1382 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
1383 omp_lock_hint_speculative): New parameters.
1384 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1385 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1386 omp_get_place_num, omp_get_partition_num_places,
1387 omp_get_partition_place_nums, omp_get_initial_device,
1388 omp_get_max_task_priority): New functions and subroutines.
1389 * ordered.c: Include stdarg.h and string.h.
1390 (MAX_COLLAPSED_BITS): Define.
1391 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
1392 gomp_doacross_ull_init, GOMP_doacross_ull_post,
1393 GOMP_doacross_ull_wait): New functions.
1394 * target.c: Include errno.h.
1395 (resolve_device): If device is not initialized, call
1396 gomp_init_device on it.
1397 (gomp_map_lookup): New function.
1398 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
1399 Don't bump refcount if REFCOUNT_INFINITY. Handle
1400 GOMP_MAP_ALWAYS_TO_P.
1401 (get_kind): Rename is_openacc argument to short_mapkind.
1402 (gomp_map_pointer): Use gomp_map_lookup.
1403 (gomp_map_fields_existing): New function.
1404 (gomp_map_vars): Rename is_openacc argument to short_mapkind
1405 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
1406 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
1407 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
1408 Adjust for tgt->list changed type and copy_from living in there.
1409 (gomp_copy_from_async): Adjust for tgt->list changed type and
1410 copy_from living in there.
1411 (gomp_unmap_vars): Likewise.
1412 (gomp_update): Likewise. Rename is_openacc argument to
1413 short_mapkind. Don't fail if object is not mapped.
1414 (gomp_load_image_to_device): Initialize refcount to
1416 (gomp_target_fallback): New function.
1417 (gomp_get_target_fn_addr): Likewise.
1418 (GOMP_target): Adjust gomp_map_vars caller, use
1419 gomp_get_target_fn_addr and gomp_target_fallback.
1420 (GOMP_target_41): New function.
1421 (gomp_target_data_fallback): New function.
1422 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
1423 (GOMP_target_data_41): New function.
1424 (GOMP_target_update): Adjust gomp_update caller.
1425 (GOMP_target_update_41): New function.
1426 (gomp_exit_data, GOMP_target_enter_exit_data,
1427 gomp_target_task_fn, omp_target_alloc, omp_target_free,
1428 omp_target_is_present, omp_target_memcpy,
1429 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
1430 omp_target_associate_ptr, omp_target_disassociate_ptr,
1431 gomp_load_plugin_for_device): New functions.
1432 * task.c: Include gomp-constants.h. Include taskloop.c
1433 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
1434 (gomp_task_handle_depend): New function.
1435 (GOMP_task): Use it. Add priority argument. Use
1436 gomp-constant.h constants instead of hardcoded numbers.
1437 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
1438 (gomp_create_target_task): New function.
1439 (verify_children_queue, verify_taskgroup_queue,
1440 verify_task_queue): New functions.
1441 (gomp_task_run_pre): Call verify_*_queue functions.
1442 If an upcoming tied task is about to leave the sibling or
1443 taskgroup queues in an invalid state, adjust appropriately.
1444 Remove taskgroup argument. Add comments.
1445 (gomp_task_run_post_handle_dependers): Add comments.
1446 (gomp_task_run_post_remove_parent): Likewise.
1447 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
1448 (GOMP_taskwait): Likewise. Add comments.
1449 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
1450 problem such that the first non parent_depends_on task does not
1451 end up at the end of the children queue.
1452 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
1453 GOMP_TASK_UNDEFERRED.
1454 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
1455 * taskloop.c: New file.
1456 * testsuite/lib/libgomp.exp
1457 (check_effective_target_offload_device_nonshared_as): New proc.
1458 * testsuite/libgomp.c/affinity-2.c: New test.
1459 * testsuite/libgomp.c/doacross-1.c: New test.
1460 * testsuite/libgomp.c/doacross-2.c: New test.
1461 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
1462 Add map clause to target.
1463 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
1464 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
1465 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
1466 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
1467 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
1469 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
1470 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
1471 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
1472 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
1473 not defined. Use those where needed.
1474 * testsuite/libgomp.c/for-4.c: New test.
1475 * testsuite/libgomp.c/for-5.c: New test.
1476 * testsuite/libgomp.c/for-6.c: New test.
1477 * testsuite/libgomp.c/linear-1.c: New test.
1478 * testsuite/libgomp.c/ordered-4.c: New test.
1479 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
1480 only allowed on the loop iterator.
1481 * testsuite/libgomp.c/pr66199-3.c: New test.
1482 * testsuite/libgomp.c/pr66199-4.c: New test.
1483 * testsuite/libgomp.c/reduction-7.c: New test.
1484 * testsuite/libgomp.c/reduction-8.c: New test.
1485 * testsuite/libgomp.c/reduction-9.c: New test.
1486 * testsuite/libgomp.c/reduction-10.c: New test.
1487 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
1489 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
1490 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
1491 * testsuite/libgomp.c/target-11.c: New test.
1492 * testsuite/libgomp.c/target-12.c: New test.
1493 * testsuite/libgomp.c/target-13.c: New test.
1494 * testsuite/libgomp.c/target-14.c: New test.
1495 * testsuite/libgomp.c/target-15.c: New test.
1496 * testsuite/libgomp.c/target-16.c: New test.
1497 * testsuite/libgomp.c/target-17.c: New test.
1498 * testsuite/libgomp.c/target-18.c: New test.
1499 * testsuite/libgomp.c/target-19.c: New test.
1500 * testsuite/libgomp.c/target-20.c: New test.
1501 * testsuite/libgomp.c/target-21.c: New test.
1502 * testsuite/libgomp.c/target-22.c: New test.
1503 * testsuite/libgomp.c/target-23.c: New test.
1504 * testsuite/libgomp.c/target-24.c: New test.
1505 * testsuite/libgomp.c/target-25.c: New test.
1506 * testsuite/libgomp.c/target-26.c: New test.
1507 * testsuite/libgomp.c/target-27.c: New test.
1508 * testsuite/libgomp.c/taskloop-1.c: New test.
1509 * testsuite/libgomp.c/taskloop-2.c: New test.
1510 * testsuite/libgomp.c/taskloop-3.c: New test.
1511 * testsuite/libgomp.c/taskloop-4.c: New test.
1512 * testsuite/libgomp.c++/ctor-13.C: New test.
1513 * testsuite/libgomp.c++/doacross-1.C: New test.
1514 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
1515 Replace offload_device with offload_device_nonshared_as.
1516 * testsuite/libgomp.c++/for-12.C: New test.
1517 * testsuite/libgomp.c++/for-13.C: New test.
1518 * testsuite/libgomp.c++/for-14.C: New test.
1519 * testsuite/libgomp.c++/linear-1.C: New test.
1520 * testsuite/libgomp.c++/member-1.C: New test.
1521 * testsuite/libgomp.c++/member-2.C: New test.
1522 * testsuite/libgomp.c++/member-3.C: New test.
1523 * testsuite/libgomp.c++/member-4.C: New test.
1524 * testsuite/libgomp.c++/member-5.C: New test.
1525 * testsuite/libgomp.c++/ordered-1.C: New test.
1526 * testsuite/libgomp.c++/reduction-5.C: New test.
1527 * testsuite/libgomp.c++/reduction-6.C: New test.
1528 * testsuite/libgomp.c++/reduction-7.C: New test.
1529 * testsuite/libgomp.c++/reduction-8.C: New test.
1530 * testsuite/libgomp.c++/reduction-9.C: New test.
1531 * testsuite/libgomp.c++/reduction-10.C: New test.
1532 * testsuite/libgomp.c++/reference-1.C: New test.
1533 * testsuite/libgomp.c++/simd14.C: New test.
1534 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
1535 * testsuite/libgomp.c++/target-5.C: New test.
1536 * testsuite/libgomp.c++/target-6.C: New test.
1537 * testsuite/libgomp.c++/target-7.C: New test.
1538 * testsuite/libgomp.c++/target-8.C: New test.
1539 * testsuite/libgomp.c++/target-9.C: New test.
1540 * testsuite/libgomp.c++/target-10.C: New test.
1541 * testsuite/libgomp.c++/target-11.C: New test.
1542 * testsuite/libgomp.c++/target-12.C: New test.
1543 * testsuite/libgomp.c++/taskloop-1.C: New test.
1544 * testsuite/libgomp.c++/taskloop-2.C: New test.
1545 * testsuite/libgomp.c++/taskloop-3.C: New test.
1546 * testsuite/libgomp.c++/taskloop-4.C: New test.
1547 * testsuite/libgomp.c++/taskloop-5.C: New test.
1548 * testsuite/libgomp.c++/taskloop-6.C: New test.
1549 * testsuite/libgomp.c++/taskloop-7.C: New test.
1550 * testsuite/libgomp.c++/taskloop-8.C: New test.
1551 * testsuite/libgomp.c++/taskloop-9.C: New test.
1552 * testsuite/libgomp.fortran/affinity1.f90: New test.
1553 * testsuite/libgomp.fortran/affinity2.f90: New test.
1555 2015-10-13 Tom de Vries <tom@codesourcery.com>
1557 PR tree-optimization/67476
1558 * testsuite/libgomp.c/autopar-3.c: New test.
1559 * testsuite/libgomp.c/autopar-4.c: New test.
1560 * testsuite/libgomp.c/autopar-5.c: New test.
1561 * testsuite/libgomp.c/autopar-6.c: New test.
1562 * testsuite/libgomp.c/autopar-7.c: New test.
1563 * testsuite/libgomp.c/autopar-8.c: New test.
1565 2015-10-12 James Norris <jnorris@codesourcery.com>
1567 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
1570 2015-10-09 David Malcolm <dmalcolm@redhat.com>
1572 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
1575 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
1577 * oacc-ptx.h: Remove file, moving its content into...
1578 * config/nvptx/fortran.c: ... here...
1579 * config/nvptx/oacc-init.c: ..., here...
1580 * config/nvptx/oacc-parallel.c: ..., and here.
1581 * config/nvptx/openacc.f90: New file.
1582 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
1583 (link_ptx): Don't link in predefined bits of PTX code.
1585 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
1586 Bernd Schmidt <bernds@codesourcery.com>
1588 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
1589 (struct targ_ptx_obj): New.
1590 (nvptx_tdata): Move earlier, change data format.
1591 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
1593 (GOMP_OFFLOAD_load_image): Adjust.
1595 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
1597 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
1598 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1599 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1600 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1601 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1602 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1603 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1604 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1605 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1606 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1607 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1608 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1609 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1610 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1611 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1612 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1613 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1614 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1615 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1616 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1617 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1618 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1619 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1620 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1621 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1622 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1623 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1624 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1625 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1626 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1627 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1628 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1629 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1630 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1631 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1632 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1633 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1634 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1635 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1636 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1637 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1638 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1639 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1640 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1641 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1642 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1643 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1644 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1645 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1646 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1647 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1648 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1649 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1650 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1651 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1652 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1653 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1654 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1655 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1656 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1657 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1658 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1659 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1661 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1663 * oacc-init.c (acc_on_device): Force optimization level.
1665 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1667 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
1668 (cuda_errlist): Delete.
1669 (cuda_error): Reimplement.
1671 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1673 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
1675 * libgomp.map (GOACC_parallel_keyed): New.
1676 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
1678 (GOACC_parallel_keyed): New interface. Lose geometry arguments
1679 and take keyed varargs list. Adjust call to exec_func.
1680 (GOACC_parallel): Force host fallback.
1681 * libgomp_g.h (GOACC_parallel): Remove.
1682 (GOACC_parallel_keyed): Declare.
1683 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
1684 (stuct targ_gn_descriptor): Replace name field with launch field.
1685 (nvptx_exec): Lose separate geometry args, take array. Process
1686 dynamic dimensions and adjust.
1687 (struct nvptx_tdata): Replace fn_names field with fn_descs.
1688 (GOMP_OFFLOAD_load_image): Adjust for change in function table
1690 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
1692 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
1695 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1698 * oacc-int.h (goacc_host_init): Add declaration.
1699 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
1700 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
1702 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1703 Sebastian Pop <s.pop@samsung.com>
1705 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
1707 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
1708 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
1709 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
1710 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
1711 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1713 2015-09-03 Jakub Jelinek <jakub@redhat.com>
1715 * configure.tgt: Add missing ;; in between nvptx and rtems
1718 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1720 * config/posix/pool.h (gomp_adjust_thread_attr): New.
1721 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
1722 (gomp_thread_pool_reservoir): Add priority member.
1723 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
1725 (parse_thread_pools): Likewise.
1726 * team.c (gomp_team_start): Call configuration provided
1727 gomp_adjust_thread_attr(). Destroy thread attributes if
1729 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
1731 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1733 * config/posix/pool.h: New.
1734 * config/rtems/pool.h: Likewise.
1735 * config/rtems/proc.c: Likewise.
1736 * libgomp.h (gomp_thread_destructor): Declare.
1737 * team.c: Include configuration provided "pool.h".
1738 (gomp_get_thread_pool): Define in configuration.
1739 (gomp_team_end): Call configuration defined
1740 gomp_release_thread_pool().
1742 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1744 * config/rtems/bar.c: New.
1745 * config/rtems/bar.h: Likewise.
1746 * config/rtems/mutex.c: Likewise.
1747 * config/rtems/mutex.h: Likewise.
1748 * config/rtems/sem.c: Likewise.
1749 * config/rtems/sem.h: Likewise.
1750 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
1751 <sys/lock.h> header file.
1752 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
1753 supported by Newlib.
1754 * configure: Regenerate.
1756 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1758 * team.c (gomp_new_thread_pool): Delete and move content to ...
1759 (gomp_get_thread_pool): ... new function. Allocate and
1760 initialize thread pool on demand.
1761 (get_last_team): Use gomp_get_thread_pool().
1762 (gomp_team_start): Delete thread pool initialization.
1764 2015-09-03 Tom de Vries <tom@codesourcery.com>
1766 PR tree-optimization/65637
1767 * testsuite/libgomp.c/autopar-2.c: New test.
1769 2015-08-29 Tom de Vries <tom@codesourcery.com>
1771 PR tree-optimization/46193
1772 * testsuite/libgomp.c/pr46193.c: New test.
1774 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
1777 * libgomp.map: Add 4.0.2 version.
1778 * target.c (offload_image_descr): Add version field.
1779 (gomp_load_image_to_device): Add version argument. Adjust plugin
1780 call. Improve load mismatch diagnostic.
1781 (gomp_unload_image_from_device): Add version argument. Adjust plugin
1783 (GOMP_offload_regster): Make stub function, move bulk to ...
1784 (GOMP_offload_register_ver): ... here. Process version argument.
1785 (GOMP_offload_unregister): Make stub function, move bulk to ...
1786 (GOMP_offload_unregister_ver): ... here. Process version argument.
1787 (gomp_init_device): Process version field.
1788 (gomp_unload_device): Process version field.
1789 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
1790 macros. Check plugin version.
1791 * libgomp.h (gomp_device_descr): Add version function field. Adjust
1792 loader and unloader types.
1793 * oacc-host.c: Include gomp-constants.h.
1794 (host_version): New.
1795 (host_load_image, host_unload_image): Adjust.
1796 (host_dispatch): Add host_version.
1797 * plugin/plugin-nvptx.c: Include gomp-constants.h.
1798 (GOMP_OFFLOAD_version): New.
1799 (GOMP_OFFLOAD_load_image): Add version arg and check it.
1800 (GOMP_OFFLOAD_unload_image): Likewise.
1801 * plugin/plugin-host.c: Include gomp-constants.h.
1802 (GOMP_OFFLOAD_version): New.
1803 (GOMP_OFFLOAD_load_image): Add version arg.
1804 (GOMP_OFFLOAD_unload_image): Likewise.
1806 2015-08-24 Tom de Vries <tom@codesourcery.com>
1808 PR tree-optimization/65468
1809 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
1811 2015-08-24 Tom de Vries <tom@codesourcery.com>
1813 PR tree-optimization/65468
1814 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
1816 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
1820 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
1821 (gomp_iter_guided_next): Idem.
1822 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
1823 (gomp_iter_ull_guided_next): Idem.
1824 * config/linux/wait.h (do_spin): Idem.
1826 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1828 * libgomp-plugin.h (enum offload_target_type): Remove
1829 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
1830 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
1831 * openacc.h (enum acc_device_t): Likewise.
1832 * openacc_lib.h: Likewise.
1833 * oacc-init.c (name_of_acc_device_t): Don't handle it.
1834 (acc_on_device): Just use __builtin_acc_on_device.
1835 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
1836 of acc_on_device builtin.
1837 * plugin/plugin-host.h: Remove file.
1838 * plugin/plugin-host.c: Likewise, but salvage some content into...
1839 * oacc-host.c: ... this file.
1840 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
1841 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
1842 * Makefile.in: Regenerate.
1843 * configure: Likewise.
1844 * testsuite/lib/libgomp.exp
1845 (check_effective_target_openacc_host_nonshm_selected): Remove.
1846 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
1847 ACC_DEVICE_TYPE=host_nonshm.
1848 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1849 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1850 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1851 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1852 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1853 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1855 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1856 Jakub Jelinek <jakub@redhat.com>
1858 * config/nvptx/affinity.c: New file.
1859 * config/nvptx/alloc.c: Likewise.
1860 * config/nvptx/bar.c: Likewise.
1861 * config/nvptx/barrier.c: Likewise.
1862 * config/nvptx/critical.c: Likewise.
1863 * config/nvptx/env.c: Likewise.
1864 * config/nvptx/error.c: Likewise.
1865 * config/nvptx/fortran.c: Likewise.
1866 * config/nvptx/iter.c: Likewise.
1867 * config/nvptx/iter_ull.c: Likewise.
1868 * config/nvptx/libgomp-plugin.c: Likewise.
1869 * config/nvptx/lock.c: Likewise.
1870 * config/nvptx/loop.c: Likewise.
1871 * config/nvptx/loop_ull.c: Likewise.
1872 * config/nvptx/mutex.c: Likewise.
1873 * config/nvptx/oacc-async.c: Likewise.
1874 * config/nvptx/oacc-cuda.c: Likewise.
1875 * config/nvptx/oacc-host.c: Likewise.
1876 * config/nvptx/oacc-init.c: Likewise.
1877 * config/nvptx/oacc-mem.c: Likewise.
1878 * config/nvptx/oacc-parallel.c: Likewise.
1879 * config/nvptx/oacc-plugin.c: Likewise.
1880 * config/nvptx/omp-lock.h: Likewise.
1881 * config/nvptx/ordered.c: Likewise.
1882 * config/nvptx/parallel.c: Likewise.
1883 * config/nvptx/proc.c: Likewise.
1884 * config/nvptx/ptrlock.c: Likewise.
1885 * config/nvptx/sections.c: Likewise.
1886 * config/nvptx/sem.c: Likewise.
1887 * config/nvptx/single.c: Likewise.
1888 * config/nvptx/splay-tree.c: Likewise.
1889 * config/nvptx/target.c: Likewise.
1890 * config/nvptx/task.c: Likewise.
1891 * config/nvptx/team.c: Likewise.
1892 * config/nvptx/time.c: Likewise.
1893 * config/nvptx/work.c: Likewise.
1894 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
1895 * configure: Regenerate.
1896 * configure.tgt (config_path): Set to "nvptx" for target
1899 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1901 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
1903 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
1905 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
1906 (cuda_errlist): Constify.
1907 (errmsg): Move into ...
1908 (cuda_error): ... here. Make smaller.
1909 (_XSTR, _STR): Delete.
1910 (cuda_synames): Delete.
1911 (verify_device_library): Delete.
1912 (nvptx_init): Don't call it.
1914 2015-07-28 Tom de Vries <tom@codesourcery.com>
1916 * testsuite/libgomp.c/uns-outer-4.c: New test.
1918 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
1920 * testsuite/libgomp.c/pr66714.c: New test.
1922 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
1925 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
1926 (fib_ref): New function.
1927 (fib): Correct corner cases in the recursion.
1928 (main): Replace the non-simd loop with fib_ref call.
1929 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
1931 (fibonacci): Lower the parameter N to 30. Correct accordingly check
1932 for the last array element value. Replace the non-simd loop with
1933 fib_ref call. Remove redundant b_ref array. Remove the comparison
1934 of the last array element with according Fibonacci sequence element.
1935 (fib): Correct corner cases in the recursion.
1937 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
1939 * target.c (gomp_offload_image_to_device): Rename to ...
1940 (gomp_load_image_to_device): ... here.
1941 (GOMP_offload_register): Adjust call.
1942 (gomp_init_device): Likewise.
1943 (gomp_unload_image_from_device): New. Broken out of ...
1944 (GOMP_offload_unregister): ... here. Call it.
1945 (gomp_unload_device): New.
1946 * libgomp.h (gomp_unload_device): Declare.
1947 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
1950 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
1952 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
1954 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
1956 (goacc_waits): Move !num_waits handling to ...
1957 (GOACC_wait): ... here, the only caller that might have zero waits.
1959 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
1960 (struct ptx_image_data): Move earlier, add fns field.
1961 (struct ptx_device): Add images and image_lock fields.
1962 (ptx_images, ptx_image_lock): Delete.
1963 (nvptx_open_device): Initialize images and image_lock fields.
1964 (nvptx_close_device): Destroy image_lock.
1965 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
1966 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
1969 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
1971 * target.c (GOMP_offload_register): Use int for device type arg.
1972 (GOMP_offload_unregister): Likewise.
1974 * target.c (struct_offload_image_descr): Constify host_table.
1975 (gomp_offload_image_to_device): Likewise.
1976 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
1978 * libgomp.h (gomp_device_descr): Constify target data arguments.
1979 * target.c (struct offload_image_descr): Constify target_data.
1980 (gomp_offload_image_to_device): Likewise.
1981 (GOMP_offload_register): Likewise.
1982 (GOMP_offload_unrefister): Likewise.
1983 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
1984 GOMP_OFFLOAD_unload_image): Constify target data.
1985 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
1986 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
1988 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
1990 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
1991 Workaround driver library const error.
1992 (struct nvptx_tdata, nvptx_tdata_t): New.
1993 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
1996 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
1998 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
1999 of EPS parameter from integer to real.
2000 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
2001 type of EPS parameter from integer to real.
2003 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
2005 * team.c (get_last_team): New.
2006 (gomp_new_team): Recycle last non-nested team if possible.
2007 (gomp_team_end): Move team work share list free lock destruction
2009 (free_team): ... here.
2011 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
2013 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
2014 and ref from int to double. Replaced their comparison with
2015 an inequality of their difference and EPS.
2016 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
2017 comparison of pri and a reference number with an inequality of their
2019 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
2020 the comparison of sum and sum_ref with an inequality of their
2022 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
2023 the comparison of pri and a reference number with an inequality of
2024 their difference and EPS.
2026 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
2028 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
2029 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
2030 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
2031 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
2032 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
2033 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
2034 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
2035 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
2036 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
2037 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
2038 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
2039 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
2040 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
2042 (vec_mult): Likewise. Add #pragma omp taskwait.
2043 (main): Adjust caller.
2044 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
2045 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
2046 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
2047 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
2048 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
2049 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
2050 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
2051 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
2052 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
2053 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
2054 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
2055 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
2056 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
2057 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
2058 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
2059 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
2060 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
2061 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
2062 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
2063 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
2064 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
2065 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
2066 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
2067 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
2068 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
2069 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
2070 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
2071 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
2072 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
2073 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
2074 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
2075 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
2076 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
2077 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
2078 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
2079 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
2080 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
2081 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
2082 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
2083 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
2084 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
2085 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
2086 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
2087 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
2088 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
2089 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
2090 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
2091 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
2092 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
2093 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
2094 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
2095 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
2096 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
2097 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
2098 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
2099 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
2100 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
2101 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
2102 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
2103 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
2104 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
2105 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
2106 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
2107 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
2108 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
2109 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
2110 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
2111 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
2112 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
2113 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
2114 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
2115 (vec_mult): Add !$omp taskwait.
2116 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
2117 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
2118 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
2119 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
2120 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
2121 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
2122 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
2123 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
2124 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
2125 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
2126 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
2127 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
2128 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
2129 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
2130 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
2131 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
2132 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
2133 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
2134 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
2135 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
2136 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
2137 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
2138 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
2139 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
2140 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
2141 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
2142 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
2143 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
2144 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
2145 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
2146 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
2147 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
2148 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
2149 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
2150 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
2151 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
2152 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
2153 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
2154 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
2155 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
2156 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
2157 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
2158 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
2159 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
2160 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
2161 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
2162 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
2163 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
2164 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
2165 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
2166 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
2167 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
2168 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
2169 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
2170 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
2171 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
2172 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
2173 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
2174 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
2175 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
2176 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
2177 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
2178 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
2179 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
2180 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
2181 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
2182 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
2184 2015-07-10 Tom de Vries <tom@codesourcery.com>
2186 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
2187 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
2189 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2192 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
2193 in a 64-bit configuration.
2194 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
2195 offloading testing if no such device is available.
2196 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2197 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2199 2015-07-08 Tom de Vries <tom@codesourcery.com>
2201 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
2203 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2205 2015-07-07 Tom de Vries <tom@codesourcery.com>
2207 PR tree-optimization/66642
2208 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
2209 iteration count case.
2210 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
2211 function, factor out of ...
2212 (main): ... here. Test low iteration count case.
2214 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
2216 * libgomp.h (gomp_thread_pool): Comment last_team field.
2218 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
2220 * testsuite/libgomp.c++/pr66702-1.C: Require
2221 vect_simd_clones effective target.
2222 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
2224 2015-06-30 Tom de Vries <tom@codesourcery.com>
2226 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
2227 already set. Use DEFAULT_CFLAGS in dg-runtest.
2228 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
2231 2015-06-30 Tom de Vries <tom@codesourcery.com>
2233 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
2234 already set. Use DEFAULT_CFLAGS in dg-runtest.
2235 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
2236 * testsuite/libgomp.c++/pr64824.C: Same.
2237 * testsuite/libgomp.c++/pr64868.C: Same.
2238 * testsuite/libgomp.c++/pr66199-1.C: Same.
2239 * testsuite/libgomp.c++/pr66199-2.C: Same.
2240 * testsuite/libgomp.c++/target-2.C: Same.
2241 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
2242 -std=<standard> option.
2243 * testsuite/libgomp.c++/udr-11.C: Same.
2244 * testsuite/libgomp.c++/udr-12.C: Same.
2245 * testsuite/libgomp.c++/udr-13.C: Same.
2246 * testsuite/libgomp.c++/udr-14.C: Same.
2247 * testsuite/libgomp.c++/udr-15.C: Same.
2248 * testsuite/libgomp.c++/udr-16.C: Same.
2249 * testsuite/libgomp.c++/udr-17.C: Same.
2250 * testsuite/libgomp.c++/udr-18.C: Same.
2251 * testsuite/libgomp.c++/udr-19.C: Same.
2252 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
2253 * testsuite/libgomp.c++/simd-1.C: Same.
2254 * testsuite/libgomp.c++/simd-2.C: Same.
2255 * testsuite/libgomp.c++/simd-3.C: Same.
2256 * testsuite/libgomp.c++/simd-4.C: Same.
2257 * testsuite/libgomp.c++/simd-5.C: Same.
2258 * testsuite/libgomp.c++/simd-6.C: Same.
2259 * testsuite/libgomp.c++/simd-7.C: Same.
2260 * testsuite/libgomp.c++/simd-8.C: Same.
2261 * testsuite/libgomp.c++/simd-9.C: Same.
2262 * testsuite/libgomp.c++/simd10.C: Same.
2263 * testsuite/libgomp.c++/simd11.C: Same.
2264 * testsuite/libgomp.c++/simd12.C: Same.
2265 * testsuite/libgomp.c++/simd13.C: Same.
2267 2015-06-30 Jakub Jelinek <jakub@redhat.com>
2270 * testsuite/libgomp.c++/pr66702-1.C: New test.
2271 * testsuite/libgomp.c++/pr66702-2.C: New test.
2273 2015-06-30 Tom de Vries <tom@codesourcery.com>
2275 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
2276 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
2277 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
2278 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
2280 2015-06-30 Tom de Vries <tom@codesourcery.com>
2282 PR tree-optimization/66652
2283 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
2284 using restrict pointers.
2285 (main): Add arguments to calls to f.
2286 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2288 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
2290 * configure.ac: Fix check for header <sys/sysctl.h>.
2291 * configure: Regenerate.
2292 * config.h.in: Likewise.
2294 2015-06-23 Tom de Vries <tom@codesourcery.com>
2296 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
2298 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
2300 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
2302 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
2306 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
2307 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2309 2015-06-15 Tom de Vries <tom@codesourcery.com>
2311 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
2312 dg-additional-options for any remaining options.
2313 * testsuite/libgomp.c/atomic-2.c: Same.
2314 * testsuite/libgomp.c/atomic-4.c: Same.
2315 * testsuite/libgomp.c/atomic-5.c: Same.
2316 * testsuite/libgomp.c/atomic-6.c: Same.
2317 * testsuite/libgomp.c/autopar-1.c: Same.
2318 * testsuite/libgomp.c/copyin-1.c: Same.
2319 * testsuite/libgomp.c/copyin-2.c: Same.
2320 * testsuite/libgomp.c/copyin-3.c: Same.
2321 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
2322 * testsuite/libgomp.c/nestedfn-5.c: Same.
2323 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
2324 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
2325 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
2326 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2327 * testsuite/libgomp.c/pr32362-1.c: Same.
2328 * testsuite/libgomp.c/pr32362-2.c: Same.
2329 * testsuite/libgomp.c/pr32362-3.c: Same.
2330 * testsuite/libgomp.c/pr39591-1.c: Same.
2331 * testsuite/libgomp.c/pr39591-2.c: Same.
2332 * testsuite/libgomp.c/pr39591-3.c: Same.
2333 * testsuite/libgomp.c/pr58392.c: Same.
2334 * testsuite/libgomp.c/pr58756.c: Same.
2335 * testsuite/libgomp.c/simd-1.c: Same.
2336 * testsuite/libgomp.c/simd-10.c: Same.
2337 * testsuite/libgomp.c/simd-11.c: Same.
2338 * testsuite/libgomp.c/simd-12.c: Same.
2339 * testsuite/libgomp.c/simd-13.c: Same.
2340 * testsuite/libgomp.c/simd-14.c: Same.
2341 * testsuite/libgomp.c/simd-15.c: Same.
2342 * testsuite/libgomp.c/simd-2.c: Same.
2343 * testsuite/libgomp.c/simd-3.c: Same.
2344 * testsuite/libgomp.c/simd-4.c: Same.
2345 * testsuite/libgomp.c/simd-5.c: Same.
2346 * testsuite/libgomp.c/simd-6.c: Same.
2347 * testsuite/libgomp.c/simd-7.c: Same.
2348 * testsuite/libgomp.c/simd-8.c: Same.
2349 * testsuite/libgomp.c/simd-9.c: Same.
2351 2015-06-15 Tom de Vries <tom@codesourcery.com>
2353 * testsuite/libgomp.c/pr35625.c: Fix typo.
2355 2015-06-15 Tom de Vries <tom@codesourcery.com>
2357 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
2359 * testsuite/libgomp.c/atomic-3.c: Same.
2360 * testsuite/libgomp.c/debug-1.c: Same.
2361 * testsuite/libgomp.c/nqueens-1.c: Same.
2362 * testsuite/libgomp.c/pr26171.c: Same.
2363 * testsuite/libgomp.c/pr48591.c: Same.
2364 * testsuite/libgomp.c/pr64824.c: Same.
2365 * testsuite/libgomp.c/pr64868.c: Same.
2366 * testsuite/libgomp.c/pr66133.c: Same.
2367 * testsuite/libgomp.c/pr66199-1.c: Same.
2368 * testsuite/libgomp.c/pr66199-2.c: Same.
2369 * testsuite/libgomp.c/target-8.c: Same.
2371 2015-06-15 Tom de Vries <tom@codesourcery.com>
2373 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
2375 * testsuite/libgomp.c/for-1.c: Same.
2376 * testsuite/libgomp.c/for-2.c: Same.
2377 * testsuite/libgomp.c/for-3.c: Same.
2378 * testsuite/libgomp.c/pr35625.c: Same.
2379 * testsuite/libgomp.c/pr39154.c: Same.
2380 * testsuite/libgomp.c/simd-16.c: Same.
2381 * testsuite/libgomp.c/simd-17.c: Same.
2383 2015-06-13 Tom de Vries <tom@codesourcery.com>
2385 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
2387 2015-06-13 Tom de Vries <tom@codesourcery.com>
2389 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
2390 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2391 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
2393 (main): Use N instead of hardcoded constants.
2395 2015-06-05 Tom de Vries <tom@codesourcery.com>
2397 merge from gomp4 branch:
2398 2015-05-28 Tom de Vries <tom@codesourcery.com>
2400 PR tree-optimization/65443
2401 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
2402 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
2403 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
2405 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2407 * testsuite/libgomp.graphite/bounds.c: Adjust for
2408 cleanup-tree-dump removal.
2409 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
2410 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2411 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2412 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
2413 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2414 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2415 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2416 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2417 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2418 * testsuite/libgomp.graphite/pr41118.c: Likewise.
2420 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
2422 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
2423 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
2424 (futex_wake) [!__x86_64__]: Ditto.
2426 2015-05-28 Julian Brown <julian@codesourcery.com>
2428 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
2429 function comment. Only call gomp_fatal if new argument is true.
2430 (acc_dev_num_out_of_range): New function.
2431 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
2432 acc_dev_num_out_of_range as appropriate.
2433 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
2434 (acc_get_device_num, acc_set_device_num): Update calls to
2436 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
2439 2015-05-28 Julian Brown <julian@codesourcery.com>
2442 * oacc-init.c (plugin/plugin-host.h): Include.
2443 (acc_on_device): Check whether we're in an offloaded region for
2445 plugin. Don't use __builtin_acc_on_device.
2446 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
2447 nonshm_exec flag in thread-local data.
2448 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
2449 data for host_nonshm plugin.
2450 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
2451 for host_nonshm plugin.
2452 * plugin/plugin-host.h: New.
2454 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2456 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
2458 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2460 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
2462 (FUTEX_PRIVATE_FLAG): Remove L suffix.
2463 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
2466 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2468 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
2470 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
2472 * target.c (gomp_map_pointer): New function abstracting out
2473 GOMP_MAP_POINTER handling.
2474 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
2477 2015-05-19 Jakub Jelinek <jakub@redhat.com>
2480 * testsuite/libgomp.c/pr66199-1.c: New test.
2481 * testsuite/libgomp.c/pr66199-2.c: New test.
2482 * testsuite/libgomp.c++/pr66199-1.C: New test.
2483 * testsuite/libgomp.c++/pr66199-2.C: New test.
2484 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
2485 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
2487 2015-05-19 Julian Brown <julian@codesourcery.com>
2489 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
2492 2015-05-13 Jakub Jelinek <jakub@redhat.com>
2495 * testsuite/libgomp.c/pr66133.c: New test.
2497 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2499 * Makefile.in: Regenerated with automake-1.11.6.
2500 * aclocal.m4: Likewise.
2501 * config.h.in: Likewise.
2502 * configure: Likewise.
2503 * testsuite/Makefile.in: Likewise.
2505 2015-05-08 Jason Merrill <jason@redhat.com>
2507 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
2510 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
2512 2015-05-06 Julian Brown <julian@codesourcery.com>
2514 * oacc-init.c (acc_device_lock): Add explanatory comment.
2515 (resolve_device): Add comment about locking requirement.
2516 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
2517 gomp_init_device and gomp_fini_device calls.
2518 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
2519 (acc_get_device_num, acc_set_device_num): Add locking around
2520 resolve_device and gomp_init_device calls.
2522 2015-05-06 Julian Brown <julian@codesourcery.com>
2524 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
2525 goacc_thread_lock on error paths.
2526 * oacc-mem.c (lookup_host): Remove locking from function. Note
2527 locking requirement for caller in function comment.
2528 (lookup_dev): Likewise.
2529 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
2530 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
2531 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
2534 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
2538 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
2539 don't expect "0x" prefix for "%p" format specifier, don't expect
2540 "(nil)" for NULL pointer.
2541 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2542 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2543 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2544 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2545 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2546 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2547 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2548 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2549 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2550 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2551 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2552 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2553 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2554 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2555 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2556 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2557 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2558 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2559 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2560 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2561 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2562 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2563 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2564 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2565 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2566 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2567 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2568 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2569 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
2570 accurately specify what we're looking for.
2571 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2572 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2573 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2574 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2575 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2577 2015-04-30 James Norris <jnorris@codesourcery.com>
2580 * testsuite/lib/libgomp.exp
2581 (check_effective_target_openacc_host_selected)
2582 (check_effective_target_openacc_host_nonshm_selected): New
2584 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
2586 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
2587 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
2588 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2589 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2590 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2591 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2592 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2593 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2594 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2595 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2596 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2597 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2598 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2599 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2600 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2601 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2602 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2603 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2604 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2605 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2606 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2607 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2608 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2609 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2610 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2611 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2612 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2613 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2614 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2615 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2616 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2617 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2618 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2619 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2620 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2621 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2622 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2623 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2624 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2625 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2626 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2627 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2628 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2630 2015-04-08 Julian Brown <julian@codesourcery.com>
2632 * libgomp.h (target_mem_desc: Remove mem_map field.
2633 (acc_dispatch_t): Remove open_device_func, close_device_func,
2634 get_device_num_func, set_device_num_func, target_data members.
2635 Change create_thread_data_func argument to device number instead of
2637 * oacc-async.c (assert.h): Include.
2638 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
2639 (acc_wait_all, acc_wait_all_async): Use current host thread's
2640 active device, not base_dev.
2641 * oacc-cuda.c (acc_get_current_cuda_device)
2642 (acc_get_current_cuda_context, acc_get_cuda_stream)
2643 (acc_set_cuda_stream): Likewise.
2644 * oacc-host.c (host_dispatch): Don't set open_device_func,
2645 close_device_func, get_device_num_func or set_device_num_func.
2646 * oacc-init.c (base_dev, init_key): Remove.
2647 (cached_base_dev): New.
2648 (name_of_acc_device_t): New.
2649 (acc_init_1): Initialise default-numbered device, not zeroth.
2650 (acc_shutdown_1): Close all devices of a given type.
2651 (goacc_destroy_thread): Don't use base_dev.
2652 (lazy_open, lazy_init, lazy_init_and_open): Remove.
2653 (goacc_attach_host_thread_to_device): New.
2654 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
2655 (acc_get_num_devices): Don't use base_dev.
2656 (acc_set_device_type): Reimplement.
2657 (acc_get_device_type): Don't use base_dev.
2658 (acc_get_device_num): Tweak logic.
2659 (acc_set_device_num): Likewise.
2660 (acc_on_device): Use acc_get_device_type.
2661 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
2662 (goacc_lazy_initialize): Reimplement with acc_init and
2663 goacc_attach_host_thread_to_device.
2664 * oacc-int.h (goacc_thread): Add base_dev field.
2665 (base_dev): Remove extern declaration.
2666 (goacc_attach_host_thread_to_device): Add prototype.
2667 * oacc-mem.c (acc_malloc): Use current thread's device instead of
2669 (acc_free): Likewise.
2670 (acc_memcpy_to_device): Likewise.
2671 (acc_memcpy_from_device): Likewise.
2672 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
2673 goacc_lazy_initialize (throughout).
2674 (GOACC_parallel): Use tgt_offset to locate target functions.
2675 * target.c (gomp_map_vars): Don't set tgt->mem_map.
2676 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
2677 (gomp_load_plugin_for_device): Remove open_device, close_device,
2678 get_device_num, set_device_num openacc hook initialisation. Don't set
2679 openacc.target_data.
2680 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
2681 (GOMP_OFFLOAD_openacc_close_device)
2682 (GOMP_OFFLOAD_openacc_get_device_num)
2683 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
2684 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
2686 * plugin/plugin-nvptx.c (ptx_inited): Remove.
2687 (instantiated_devices, ptx_dev_lock): New.
2688 (struct ptx_image_data): New.
2689 (ptx_devices, ptx_images, ptx_image_lock): New.
2690 (fini_streams_for_device): Reorder cuStreamDestroy call.
2691 (nvptx_get_num_devices): Remove forward declaration.
2692 (nvptx_init): Change return type to bool.
2693 (nvptx_fini): Remove.
2694 (nvptx_attach_host_thread_to_device): New.
2695 (nvptx_open_device): Return struct ptx_device* instead of void*.
2696 (nvptx_close_device): Change argument type to struct ptx_device*,
2697 return type to void.
2698 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
2699 (kernel_target_data, kernel_host_table): Remove static globals.
2700 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
2701 (GOMP_OFFLOAD_init_device): Reimplement.
2702 (GOMP_OFFLOAD_fini_device): Likewise.
2703 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
2704 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
2705 (GOMP_OFFLOAD_host2dev): Use ORD argument.
2706 (GOMP_OFFLOAD_openacc_open_device)
2707 (GOMP_OFFLOAD_openacc_close_device)
2708 (GOMP_OFFLOAD_openacc_set_device_num)
2709 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
2710 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
2714 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
2716 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
2718 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
2719 * libgomp.h (struct gomp_memory_mapping): Remove.
2720 (struct target_mem_desc): Change type of mem_map from
2721 gomp_memory_mapping * to splay_tree_s *.
2722 (struct gomp_device_descr): Remove register_image_func, get_table_func.
2723 Add load_image_func, unload_image_func.
2724 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
2725 Remove offload_regions_registered.
2726 (gomp_init_tables): Remove.
2727 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2729 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
2730 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
2731 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
2732 offload_regions_registered.
2733 Initialize load_image_func, unload_image_func, mem_map.root.
2734 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
2735 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
2736 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
2737 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
2738 gomp_memory_mapping *. Use dev's lock and splay_tree.
2739 (lookup_dev): Use dev's lock.
2740 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
2741 (acc_is_present): Likewise.
2742 (acc_map_data): Likewise.
2743 (acc_unmap_data): Likewise. Use dev's lock.
2744 (present_create_copy): Likewise.
2745 (delete_copyout): Pass dev to lookup_host instead of mem_map.
2746 (update_dev_host): Likewise.
2747 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
2748 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
2749 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
2750 (GOMP_OFFLOAD_get_table): Remove
2751 (GOMP_OFFLOAD_load_image): New function.
2752 (GOMP_OFFLOAD_unload_image): New function.
2753 * target.c (register_lock): New mutex for offload image registration.
2754 (num_devices): Do not guard with PLUGIN_SUPPORT.
2755 (gomp_realloc_unlock): New static function.
2756 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
2758 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
2759 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
2760 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
2762 (gomp_unmap_vars): Likewise.
2763 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
2764 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
2765 (gomp_offload_image_to_device): New static function.
2766 (GOMP_offload_register): Add mutex lock.
2767 Call gomp_offload_image_to_device for all initialized devices.
2768 Replace gomp_realloc with gomp_realloc_unlock.
2769 (GOMP_offload_unregister): New function.
2770 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
2771 get_table_func from the plugin with calls to init_device_func and
2772 gomp_offload_image_to_device.
2773 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2775 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
2776 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
2777 (GOMP_target_data): Do not call gomp_init_tables.
2778 (GOMP_target_update): Likewise. Remove argument from gomp_update.
2779 (gomp_load_plugin_for_device): Replace register_image and get_table
2780 with load_image and unload_image in DLSYM ().
2781 (gomp_register_images_for_device): Remove function.
2782 (gomp_target_init): Do not initialize current_device.mem_map.*,
2783 current_device.offload_regions_registered.
2784 Remove call to gomp_register_images_for_device.
2785 Do not free offload_images and num_offload_images.
2787 2015-03-30 Jakub Jelinek <jakub@redhat.com>
2790 * testsuite/libgomp.fortran/pr65597.f90: New test.
2792 2015-03-27 Tom de Vries <tom@codesourcery.com>
2795 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
2796 (init, check): New function.
2797 (foo): Change return type to void.
2798 (main): Call init and check.
2800 2015-03-27 Tom de Vries <tom@codesourcery.com>
2803 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
2804 (foo): Use M for non-inner loops to scale down test-case.
2806 2015-03-25 Kai Tietz <ktietz@redhat.com>
2809 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
2810 (GOACC_data_start): Likewise.
2811 * target.c (gomp_map_vars): Likewise.
2813 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
2815 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
2818 2015-03-19 Jakub Jelinek <jakub@redhat.com>
2820 * testsuite/libgomp.c/target-10.c: New test.
2821 * testsuite/libgomp.c++/target-4.C: New test.
2823 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
2825 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
2826 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
2828 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
2830 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
2831 * configure.ac (*-*-rtems*): Assume Pthread is supported.
2832 (pthread.h): Check for this header file.
2833 * configure: Regenerate.
2835 2015-02-25 Tom de Vries <tom@codesourcery.com>
2837 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
2838 (check_reduction_op, check_reduction_macro, max, min):
2840 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
2842 (main): Use new functions.
2844 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
2846 * target.c (gomp_load_plugin_for_device): Use const char * instead of
2847 char * for variables holding dlerror return values.
2850 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
2852 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
2854 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
2855 Cesar Philippidis <cesar@codesourcery.com>
2857 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
2858 GOACC_ctaid, and GOACC_nctaid routines.
2860 2015-02-11 Jakub Jelinek <jakub@redhat.com>
2863 * testsuite/libgomp.c/atomic-18.c: New test.
2864 * testsuite/libgomp.c++/atomic-16.C: New test.
2866 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2870 * testsuite/libgomp.c/pr64824.c: New test.
2871 * testsuite/libgomp.c/pr64868.c: New test.
2872 * testsuite/libgomp.c++/pr64824.C: New test.
2873 * testsuite/libgomp.c++/pr64868.C: New test.
2875 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
2878 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
2879 Link with -lpthread.
2880 * config/aix/plugin-suffix.h: Delete.
2882 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
2885 * configure.tgt (*-*-aix*): Use config_path "aix posix".
2886 (*-*-darwin*): Use config_path "bsd darwin posix".
2887 (*-*-hpux*): Use config_path "hpux posix".
2888 * target.c: Add include of plugin-suffix.h and use
2889 SONAME_SUFFIX macro.
2890 * config/aix/plugin-suffix.h: New file.
2891 * config/darwin/plugin-suffix.h: New file.
2892 * config/hpux/plugin-suffix.h: New file.
2893 * config/posix/plugin-suffix.h: New file.
2895 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2898 * libgomp.c/pr64734.c: New test.
2900 2015-01-23 Tom de Vries <tom@codesourcery.com>
2903 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
2905 2015-01-23 Tom de Vries <tom@codesourcery.com>
2908 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
2911 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2914 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
2915 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
2916 formal parameter. Update all users.
2917 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
2918 Document unused formal parameter.
2920 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
2922 * oacc-parallel.c: Don't include <alloca.h>.
2923 (GOACC_parallel): Use gomp_alloca instead of alloca.
2925 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
2927 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
2929 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2930 James Norris <jnorris@codesourcery.com>
2931 Tom de Vries <tom@codesourcery.com>
2932 Julian Brown <julian@codesourcery.com>
2933 Cesar Philippidis <cesar@codesourcery.com>
2934 Nathan Sidwell <nathan@codesourcery.com>
2935 Tobias Burnus <burnus@net-b.de>
2937 * Makefile.am (search_path): Add $(top_srcdir)/../include.
2938 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
2939 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
2940 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
2941 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
2942 Include $(top_srcdir)/plugin/Makefrag.am.
2943 (nodist_libsubinclude_HEADERS): Add openacc.h.
2944 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
2945 openacc.f90, openacc.mod, openacc_kinds.mod.
2946 (omp_lib.mod): Generalize into...
2947 (%.mod): ... this new rule.
2948 (openacc_kinds.mod, openacc.mod): New rules.
2949 * plugin/configfrag.ac: New file.
2950 * configure.ac: Move plugin/offloading support into it. Include
2951 it. Instantiate testsuite/libgomp-test-support.pt.exp.
2952 * plugin/Makefrag.am: New file.
2953 * testsuite/Makefile.am (OFFLOAD_TARGETS)
2954 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
2956 (libgomp-test-support.exp): New rule.
2957 (all-local): Depend on it.
2958 * Makefile.in: Regenerate.
2959 * testsuite/Makefile.in: Regenerate.
2960 * config.h.in: Likewise.
2961 * configure: Likewise.
2962 * configure.tgt: Harden shell syntax.
2963 * env.c: Include "oacc-int.h".
2964 (parse_acc_device_type): New function.
2965 (gomp_debug_var, goacc_device_type, goacc_device_num): New
2967 (initialize_env): Initialize those. Call
2968 goacc_runtime_initialize.
2969 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
2970 (gomp_fatal): Call gomp_vfatal.
2971 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
2972 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
2973 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
2974 (splay_tree_node, splay_tree, splay_tree_key)
2975 (struct target_mem_desc, struct splay_tree_key_s)
2976 (struct gomp_memory_mapping, struct acc_dispatch_t)
2977 (struct gomp_device_descr, gomp_acc_insert_pointer)
2978 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
2979 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
2980 (gomp_free_memmap, gomp_fini_device): New declarations.
2981 (gomp_vdebug, gomp_debug): New macros.
2982 Include "splay-tree.h".
2983 * libgomp.map (OACC_2.0): New symbol version. Use for
2984 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
2985 acc_set_device_type_h_, acc_get_device_type,
2986 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
2987 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
2988 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
2989 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
2990 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
2991 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
2992 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
2993 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
2994 acc_copyin_array_h_, acc_present_or_copyin,
2995 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
2996 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
2997 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
2998 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
2999 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
3000 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
3001 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
3002 acc_update_device, acc_update_device_32_h_,
3003 acc_update_device_64_h_, acc_update_device_array_h_,
3004 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
3005 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
3006 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
3007 acc_is_present_64_h_, acc_is_present_array_h_,
3008 acc_memcpy_to_device, acc_memcpy_from_device,
3009 acc_get_current_cuda_device, acc_get_current_cuda_context,
3010 acc_get_cuda_stream, acc_set_cuda_stream.
3011 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
3012 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
3013 GOACC_update, GOACC_wait, GOACC_get_thread_num,
3014 GOACC_get_num_threads.
3015 (GOMP_PLUGIN_1.0): New symbol version. Use for
3016 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
3017 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
3018 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
3019 GOMP_PLUGIN_acc_thread.
3020 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
3021 environment variable.
3022 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
3023 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
3024 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
3025 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
3026 (splay_tree_remove): New declarations.
3027 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
3028 (splay_tree_remove, splay_tree_lookup): Move into...
3029 * splay-tree.c: ... this new file.
3030 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
3031 (splay_tree_node, splay_tree, splay_tree_key)
3032 (struct target_mem_desc, struct splay_tree_key_s)
3033 (struct gomp_device_descr): Don't declare.
3034 (num_devices_openmp): New variable.
3035 (gomp_get_num_devices ): Use it.
3036 (gomp_init_targets_once): New function.
3037 (gomp_get_num_devices ): Use it.
3038 (get_kind, gomp_copy_from_async, gomp_free_memmap)
3039 (gomp_fini_device, gomp_register_image_for_device): New functions.
3040 (gomp_map_vars): Add devaddrs parameter.
3041 (gomp_update): Add mm parameter.
3042 (gomp_init_device): Move most of it into...
3043 (gomp_init_tables): ... this new function.
3044 (gomp_register_images_for_device): Remove function.
3045 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
3046 Make them hidden instead of static.
3047 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
3048 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
3049 (GOMP_target_end_data, GOMP_target_update)
3050 (gomp_load_plugin_for_device, gomp_target_init): Update for
3052 * oacc-async.c: New file.
3053 * oacc-cuda.c: Likewise.
3054 * oacc-host.c: Likewise.
3055 * oacc-init.c: Likewise.
3056 * oacc-int.h: Likewise.
3057 * oacc-mem.c: Likewise.
3058 * oacc-parallel.c: Likewise.
3059 * oacc-plugin.c: Likewise.
3060 * oacc-plugin.h: Likewise.
3061 * oacc-ptx.h: Likewise.
3062 * openacc.f90: Likewise.
3063 * openacc.h: Likewise.
3064 * openacc_lib.h: Likewise.
3065 * plugin/plugin-host.c: Likewise.
3066 * plugin/plugin-nvptx.c: Likewise.
3067 * libgomp-plugin.c: Likewise.
3068 * libgomp-plugin.h: Likewise.
3069 * libgomp_target.h: Remove file after merging content into the
3070 former file. Update all users.
3071 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
3072 (offload_targets_s, offload_targets_s_openacc): New variables.
3073 (check_effective_target_openacc_nvidia_accel_present)
3074 (check_effective_target_openacc_nvidia_accel_selected): New
3076 (libgomp_init): Update for OpenACC changes.
3077 * testsuite/libgomp-test-support.exp.in: New file.
3078 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
3079 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3080 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3081 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
3082 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
3083 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
3084 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
3085 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
3086 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3087 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
3088 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
3089 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
3090 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
3091 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3092 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3093 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3094 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3095 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3096 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3097 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3098 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
3099 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3100 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3101 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
3102 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3103 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3104 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3105 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3106 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3107 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3108 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3109 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3110 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3111 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
3112 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
3113 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
3114 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
3115 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
3116 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
3117 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3118 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3119 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3120 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3121 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3122 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3123 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
3124 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
3125 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3126 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3127 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3128 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3129 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3130 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3131 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
3132 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
3133 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3134 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3135 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
3136 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3137 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
3138 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3139 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
3140 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3141 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
3142 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
3143 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
3144 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
3145 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
3146 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
3147 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
3148 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
3149 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3150 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3151 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3152 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
3153 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
3154 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3155 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3156 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
3157 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
3158 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
3159 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
3160 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3161 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3162 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3163 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
3164 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
3165 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
3166 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3167 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
3168 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
3169 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
3170 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
3171 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
3172 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
3173 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
3174 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
3175 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
3176 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
3177 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
3178 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
3179 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
3180 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
3181 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
3182 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
3183 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
3184 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
3185 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
3186 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
3187 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
3188 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
3189 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3190 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
3191 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
3192 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3193 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3194 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
3195 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3196 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
3197 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
3198 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
3199 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
3200 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
3201 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
3202 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3203 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
3204 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3205 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
3206 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
3207 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
3208 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
3209 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
3210 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
3211 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
3212 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
3213 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3214 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3215 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3216 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3217 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
3219 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
3220 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
3221 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
3222 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3223 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
3224 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3225 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3226 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3227 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3228 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3229 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3230 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3231 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3232 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3233 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3234 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3235 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3236 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3237 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3238 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3239 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3240 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3241 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3242 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3243 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3244 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3245 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3246 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3247 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3248 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3249 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3250 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3251 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3252 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3253 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3254 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3255 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3256 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3257 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3258 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3259 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3260 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3261 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3262 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3263 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3264 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3265 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3266 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3267 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3268 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3269 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3270 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3271 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3272 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3273 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3274 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3275 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3276 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3277 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3278 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3280 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3281 Julian Brown <julian@codesourcery.com>
3282 David Malcolm <dmalcolm@redhat.com>
3284 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
3285 to "GNU Offloading and Multi Processing Runtime Library". Change
3287 * configure: Regenerate.
3288 * libgomp.texi: Update.
3290 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3292 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
3294 * configure: Regenerate.
3296 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
3297 "intelmic" in $offload_targets.
3299 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3301 Update copyright years.
3303 * libgomp.texi: Bump @copying's copyright year.
3305 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3307 * testsuite/lib/libgomp.exp: Load target-utils.exp.
3308 Move load of target-supportes.exp earlier.
3310 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
3312 * testsuite/libgomp.c/target-9.c: New test.
3314 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
3316 * config.h.in: Regenerate.
3317 * configure: Regenerate.
3318 * configure.ac: Add GCC_CHECK_EMUTLS.
3319 * libgomp.h: Add check for USE_EMUTLS: this case
3320 is equal to HAVE_TLS.
3323 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
3325 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
3327 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
3328 Ilya Verbin <ilya.verbin@intel.com>
3330 * testsuite/libgomp.c/target-critical-1.c: New test.
3332 2014-11-26 Jakub Jelinek <jakub@redhat.com>
3334 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
3335 to dg-options unless expensive testing is on.
3336 (TESTITERS): Define to N if not defined.
3337 (main): Use TESTITERS instead of N.
3338 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
3339 dg-additional-options depending on whether expensive testing is on.
3340 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
3341 Decrease N to 100000 and CHUNKSZ to 10000.
3343 2014-11-24 Jakub Jelinek <jakub@redhat.com>
3346 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
3347 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3349 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
3351 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
3353 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3356 * configure: Regenerated.
3358 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
3360 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
3361 vect_simd_clones effective target.
3362 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
3364 2014-11-14 Jakub Jelinek <jakub@redhat.com>
3366 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
3367 of 32 as block_size.
3368 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
3369 instead of 32 as block_size.
3371 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
3372 Ilya Verbin <ilya.verbin@intel.com>
3374 * Makefile.in: Regenerate.
3375 * configure: Regenerate.
3376 * configure.ac: Set up offload_additional_options,
3377 offload_additional_lib_paths and offload_targets.
3378 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
3379 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
3380 * testsuite/Makefile.in: Regenerate.
3381 * testsuite/lib/libgomp.exp (libgomp_init): Append
3382 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
3383 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
3384 build directory to LD_LIBRARY_PATH for intelmic offload targets.
3386 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
3387 Ilya Verbin <ilya.verbin@intel.com>
3388 Kirill Yukhin <kirill.yukhin@intel.com>
3389 Ilya Tocar <ilya.tocar@intel.com>
3391 * testsuite/lib/libgomp.exp
3392 (check_effective_target_offload_device): New.
3393 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
3394 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
3395 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
3396 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
3397 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
3398 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
3399 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
3400 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
3401 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
3402 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
3403 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
3404 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
3405 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
3406 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
3407 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
3408 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
3409 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
3410 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
3411 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
3412 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
3413 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
3414 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
3415 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
3416 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
3417 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
3418 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
3419 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
3420 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
3421 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
3422 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
3423 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
3424 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
3425 * testsuite/libgomp.c/target-7.c: Fix test.
3426 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
3427 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
3428 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
3429 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
3430 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
3431 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
3432 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
3433 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
3434 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
3435 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
3436 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
3437 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
3438 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
3439 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
3440 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
3441 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
3442 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
3443 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
3444 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
3445 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
3446 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
3447 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
3448 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
3449 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
3450 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
3451 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
3452 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
3453 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
3454 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
3455 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
3456 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
3458 2014-11-13 Jakub Jelinek <jakub@redhat.com>
3459 Ilya Verbin <ilya.verbin@intel.com>
3460 Thomas Schwinge <thomas@codesourcery.com>
3461 Andrey Turetskiy <andrey.turetskiy@intel.com>
3463 * libgomp.map (GOMP_4.0.1): New symbol version.
3464 Add GOMP_offload_register.
3465 * libgomp_target.h: New file.
3466 * splay-tree.h: New file.
3467 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
3468 (gomp_target_init): New forward declaration.
3469 (gomp_is_initialized): New static variable.
3470 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
3471 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
3473 (offload_images, num_offload_images, devices, num_devices): New static
3475 (splay_compare): New static function.
3476 (struct gomp_device_descr): New structure.
3477 (gomp_get_num_devices): Call gomp_target_init.
3478 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
3479 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
3480 (GOMP_offload_register): New function.
3481 (GOMP_target): Arrange for host callback to be performed in a separate
3482 initial thread and contention group, inheriting ICVs from
3483 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
3484 Add device initialization and lookup for target function in splay tree.
3485 (GOMP_target_data): Add device initialization and call gomp_map_vars.
3486 (GOMP_target_end_data): Call gomp_unmap_vars.
3487 (GOMP_target_update): Add device initialization and call gomp_update.
3488 (gomp_load_plugin_for_device, gomp_register_images_for_device)
3489 (gomp_target_init): New static functions.
3491 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
3492 Thomas Schwinge <thomas@codesourcery.com>
3493 Ilya Verbin <ilya.verbin@intel.com>
3494 Andrey Turetskiy <andrey.turetskiy@intel.com>
3496 * config.h.in: Regenerate.
3497 * configure: Regenerate.
3498 * configure.ac: Check for libdl, required for plugin support.
3499 (PLUGIN_SUPPORT): Define if plugins are supported.
3500 (enable_offload_targets): Support Intel MIC targets.
3501 (OFFLOAD_TARGETS): List of target names suitable for offloading.
3503 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3506 * configure: Regenerate.
3508 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3510 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
3512 2014-10-06 Marek Polacek <polacek@redhat.com>
3514 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
3515 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
3516 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
3517 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3519 2014-10-06 Marek Polacek <polacek@redhat.com>
3521 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
3522 * testsuite/libgomp.c/nqueens-1.c: Likewise.
3523 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3524 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3525 * testsuite/libgomp.c/pr36802-2.c: Likewise.
3526 * testsuite/libgomp.c/pr36802-3.c: Likewise.
3527 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3528 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3529 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
3530 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
3531 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
3532 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
3533 * testsuite/libgomp.c/omp-single-1.c: Likewise.
3534 * testsuite/libgomp.c/omp-single-2.c: Likewise.
3535 * testsuite/libgomp.c/omp_matvec.c: Likewise.
3536 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
3537 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
3538 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
3541 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3544 * testsuite/libgomp.c/pr61200.c: New test.
3546 2014-09-18 Jakub Jelinek <jakub@redhat.com>
3549 * testsuite/libgomp.c++/pr63248.C: New test.
3551 2014-08-04 Jakub Jelinek <jakub@redhat.com>
3553 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
3554 is not zero, but taskgroup->children is NULL and there are
3555 any task->children, schedule those instead of waiting.
3556 * testsuite/libgomp.c/depend-6.c: New test.
3557 * testsuite/libgomp.c/depend-7.c: New test.
3558 * testsuite/libgomp.c/depend-8.c: New test.
3559 * testsuite/libgomp.c/depend-9.c: New test.
3560 * testsuite/libgomp.c/depend-10.c: New test.
3562 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3564 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
3565 (struct gomp_taskwait): New type.
3566 (struct gomp_task): Add taskwait and parent_depends_on, remove
3567 in_taskwait and taskwait_sem fields.
3568 (gomp_finish_task): Don't destroy taskwait_sem.
3569 * task.c (gomp_init_task): Don't init in_taskwait, instead init
3570 taskwait and parent_depends_on.
3571 (GOMP_task): For if (0) tasks with depend clause that depend on
3572 earlier tasks don't defer them, instead call
3573 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
3574 Initialize redundant_out field, for redundant out entries just
3575 move them at the end of linked list instead of removing them
3576 completely, and set redundant_out flag instead of redundant.
3577 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
3579 (gomp_task_run_post_handle_dependers): If parent is in
3580 gomp_task_maybe_wait_for_dependencies and newly runnable task
3581 is not parent_depends_on, queue it in parent->children linked
3582 list after all runnable tasks with parent_depends_on set.
3583 Adjust for addition of taskwait indirection.
3584 (gomp_task_run_post_remove_parent): If parent is in
3585 gomp_task_maybe_wait_for_dependencies and task to be removed
3586 is parent_depends_on, decrement n_depend and if needed awake
3587 parent. Adjust for addition of taskwait indirection.
3588 (GOMP_taskwait): Adjust for addition of taskwait indirection.
3589 (gomp_task_maybe_wait_for_dependencies): New function.
3590 * testsuite/libgomp.c/depend-5.c: New test.
3592 2014-07-13 Tobias Burnus <burnus@net-b.de>
3594 * testsuite/libgomp.fortran/pr34020.f90: Make compile
3595 with TS 18508/Fortran 2015.
3597 2014-07-06 Marek Polacek <polacek@redhat.com>
3600 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
3602 2014-07-03 Jakub Jelinek <jakub@redhat.com>
3604 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
3605 matches regex $lang_source_re, add $lang_include_flags to options.
3606 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
3607 * testsuite/libgomp.c++/c++.exp: Likewise.
3608 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
3609 and lang_include_flags instead of adding -fintrinsic-modules-path= to
3611 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
3613 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
3615 * testsuite/libgomp.fortran/fortran.exp: Explain
3616 gfortran-dg-runtest usage.
3618 2014-06-25 Jakub Jelinek <jakub@redhat.com>
3620 * testsuite/libgomp.fortran/simd5.f90: New test.
3621 * testsuite/libgomp.fortran/simd6.f90: New test.
3622 * testsuite/libgomp.fortran/simd7.f90: New test.
3624 2014-06-24 Jakub Jelinek <jakub@redhat.com>
3626 * testsuite/libgomp.c/for-2.c: Define SC to static for
3627 #pragma omp for simd testing.
3628 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
3629 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
3631 * testsuite/libgomp.c/simd-14.c: New test.
3632 * testsuite/libgomp.c/simd-15.c: New test.
3633 * testsuite/libgomp.c/simd-16.c: New test.
3634 * testsuite/libgomp.c/simd-17.c: New test.
3635 * testsuite/libgomp.c++/for-10.C: Define SC to static for
3636 #pragma omp for simd testing.
3637 * testsuite/libgomp.c++/simd10.C: New test.
3638 * testsuite/libgomp.c++/simd11.C: New test.
3639 * testsuite/libgomp.c++/simd12.C: New test.
3640 * testsuite/libgomp.c++/simd13.C: New test.
3642 * testsuite/libgomp.fortran/aligned1.f03: New test.
3643 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
3644 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
3645 tasks with !$omp parallel !$omp single.
3646 * testsuite/libgomp.fortran/target8.f90: New test.
3647 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
3648 not to use trim in the combiner, instead call elemental function.
3649 (fn): New elemental function.
3650 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
3652 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
3654 * testsuite/libgomp.fortran/udr12.f90: New test.
3655 * testsuite/libgomp.fortran/udr13.f90: New test.
3656 * testsuite/libgomp.fortran/udr14.f90: New test.
3657 * testsuite/libgomp.fortran/udr15.f90: New test.
3659 2014-06-18 Jakub Jelinek <jakub@redhat.com>
3661 * omp_lib.f90.in (openmp_version): Set to 201307.
3662 * omp_lib.h.in (openmp_version): Likewise.
3663 * testsuite/libgomp.c/target-8.c: New test.
3664 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
3665 and inbranch clauses.
3666 * testsuite/libgomp.fortran/depend-3.f90: New test.
3667 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
3669 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3670 * testsuite/libgomp.fortran/target1.f90: New test.
3671 * testsuite/libgomp.fortran/target2.f90: New test.
3672 * testsuite/libgomp.fortran/target3.f90: New test.
3673 * testsuite/libgomp.fortran/target4.f90: New test.
3674 * testsuite/libgomp.fortran/target5.f90: New test.
3675 * testsuite/libgomp.fortran/target6.f90: New test.
3676 * testsuite/libgomp.fortran/target7.f90: New test.
3678 2014-06-10 Jakub Jelinek <jakub@redhat.com>
3681 * testsuite/libgomp.fortran/allocatable9.f90: New test.
3682 * testsuite/libgomp.fortran/allocatable10.f90: New test.
3683 * testsuite/libgomp.fortran/allocatable11.f90: New test.
3684 * testsuite/libgomp.fortran/allocatable12.f90: New test.
3685 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
3686 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
3687 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
3688 * testsuite/libgomp.fortran/associate1.f90: New test.
3689 * testsuite/libgomp.fortran/associate2.f90: New test.
3690 * testsuite/libgomp.fortran/procptr1.f90: New test.
3692 2014-06-06 Jakub Jelinek <jakub@redhat.com>
3694 * testsuite/libgomp.fortran/simd1.f90: New test.
3695 * testsuite/libgomp.fortran/udr1.f90: New test.
3696 * testsuite/libgomp.fortran/udr2.f90: New test.
3697 * testsuite/libgomp.fortran/udr3.f90: New test.
3698 * testsuite/libgomp.fortran/udr4.f90: New test.
3699 * testsuite/libgomp.fortran/udr5.f90: New test.
3700 * testsuite/libgomp.fortran/udr6.f90: New test.
3701 * testsuite/libgomp.fortran/udr7.f90: New test.
3702 * testsuite/libgomp.fortran/udr8.f90: New test.
3703 * testsuite/libgomp.fortran/udr9.f90: New test.
3704 * testsuite/libgomp.fortran/udr10.f90: New test.
3705 * testsuite/libgomp.fortran/udr11.f90: New test.
3707 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
3709 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
3710 vect_simd_clones effective target.
3711 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
3713 2014-05-21 Jakub Jelinek <jakub@redhat.com>
3716 * testsuite/libgomp.c++/simd-9.C: New test.
3718 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
3720 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
3721 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
3722 texts according to their @menu entry positions.
3724 2014-05-11 Jakub Jelinek <jakub@redhat.com>
3726 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
3727 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
3728 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
3729 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
3730 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
3731 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
3732 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
3733 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
3734 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
3735 * testsuite/libgomp.fortran/depend-1.f90: New test.
3736 * testsuite/libgomp.fortran/depend-2.f90: New test.
3737 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
3738 * testsuite/libgomp.fortran/simd1.f90: New test.
3739 * testsuite/libgomp.fortran/simd2.f90: New test.
3740 * testsuite/libgomp.fortran/simd3.f90: New test.
3741 * testsuite/libgomp.fortran/simd4.f90: New test.
3742 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
3744 2014-05-02 Jakub Jelinek <jakub@redhat.com>
3746 * testsuite/libgomp.c/simd-10.c: New test.
3747 * testsuite/libgomp.c/simd-11.c: New test.
3748 * testsuite/libgomp.c/simd-12.c: New test.
3749 * testsuite/libgomp.c/simd-13.c: New test.
3751 2014-04-24 Jakub Jelinek <jakub@redhat.com>
3753 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
3754 atomic type clauses in any order and optional comma in between.
3755 * testsuite/libgomp.c++/atomic-15.C: Likewise.
3756 * testsuite/libgomp.c/atomic-17.c: Likewise.
3758 * testsuite/libgomp.c/simd-7.c: New test.
3759 * testsuite/libgomp.c/simd-8.c: New test.
3760 * testsuite/libgomp.c/simd-9.c: New test.
3761 * testsuite/libgomp.c/loop-16.c: New test.
3763 2014-04-02 Richard Henderson <rth@redhat.com>
3765 * config/linux/futex.h (futex_wait): Get error value from errno.
3766 (futex_wake): Likewise.
3768 2014-03-25 Jakub Jelinek <jakub@redhat.com>
3771 * testsuite/libgomp.c++/udr-11.C: New test.
3772 * testsuite/libgomp.c++/udr-12.C: New test.
3773 * testsuite/libgomp.c++/udr-13.C: New test.
3774 * testsuite/libgomp.c++/udr-14.C: New test.
3775 * testsuite/libgomp.c++/udr-15.C: New test.
3776 * testsuite/libgomp.c++/udr-16.C: New test.
3777 * testsuite/libgomp.c++/udr-17.C: New test.
3778 * testsuite/libgomp.c++/udr-18.C: New test.
3779 * testsuite/libgomp.c++/udr-19.C: New test.
3781 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3783 Update copyright years
3785 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3787 * hashtab.h: Use the standard form for the copyright notice.
3789 2014-01-02 Tobias Burnus <burnus@net-b.de>
3791 * libgomp.texi: Bump @copying's copyright year.
3793 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
3795 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
3796 alloca () with __builtin_alloca ().
3797 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
3798 * testsuite/libgomp.c/lock-3.c: Likewise.
3799 * testsuite/libgomp.c/pr48591.c: Likewise.
3801 2013-12-17 Jakub Jelinek <jakub@redhat.com>
3804 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
3807 2013-12-16 Jakub Jelinek <jakub@redhat.com>
3810 * testsuite/libgomp.c/pr58756.c: New test.
3812 2013-12-12 Jakub Jelinek <jakub@redhat.com>
3815 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
3818 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
3820 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
3822 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
3823 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
3824 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3825 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
3828 * libgomp_g.h: Include <stddef.h> for size_t.
3830 * libgomp.spec.in: Update comment about libgomp's dependencies.
3831 * configure.ac: Likewise.
3832 * configure: Regenerate.
3834 2013-10-16 Tobias Burnus <burnus@net-b.de>
3836 * libgomp.texi: (Runtime Library Routines): Update references for
3837 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
3838 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
3839 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
3840 (Environment Variables): Update references for OpenMP 4.0. Add
3841 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
3842 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
3845 2013-10-14 Jakub Jelinek <jakub@redhat.com>
3847 * env.c (parse_bind_var): Initialize value to avoid
3848 (false positive) warning.
3850 2013-10-12 Jakub Jelinek <jakub@redhat.com>
3853 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
3855 (gomp_init_num_threads): Move i variable declaration into
3856 #ifdef CPU_ALLOC_SIZE block.
3857 * config/linux/affinity.c (gomp_affinity_init_level): Test
3858 gomp_places_list_len == 0 rather than gomp_places_list == 0
3859 when checking for topology reading error.
3860 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
3861 * env.c (parse_affinity): Add ignore argument, if true, don't populate
3862 gomp_places_list, only parse env var and always return false.
3863 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
3864 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
3865 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
3866 and either of these variables were parsed correctly into a places
3869 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
3870 Jakub Jelinek <jakub@redhat.com>
3872 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
3873 of 5 loopfn matches.
3874 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3875 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3876 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
3877 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3878 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3879 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3880 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3881 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3883 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
3885 * Makefile.am (omp_lib.mod): Streamline rule.
3886 * Makefile.in: Regenerate.
3888 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
3891 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
3892 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3893 * testsuite/libgomp.fortran/lib2.f: Likewise.
3894 * testsuite/libgomp.fortran/lib3.f: Likewise.
3896 * configure.ac: Typo fix.
3897 * configure: Regenerate.
3899 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
3900 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3902 * omp.h.in: Don't touch the user's namespace.
3904 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3905 Tobias Burnus <burnus@net-b.de>
3906 Richard Henderson <rth@redhat.com>
3908 * target.c: New file.
3909 * Makefile.am (libgomp_la_SOURCES): Add target.c.
3910 * Makefile.in: Regenerated.
3911 * libgomp_g.h (GOMP_task): Add depend argument.
3912 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3913 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3914 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
3915 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
3916 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
3917 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
3918 GOMP_taskgroup_start, GOMP_taskgroup_end,
3919 GOMP_parallel_sections): New prototypes.
3920 * fortran.c (omp_is_initial_device): Add ialias_redirect.
3921 (omp_is_initial_device_): New function.
3922 (ULP, STR1, STR2, ialias_redirect): Removed.
3923 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
3924 omp_set_default_device_8_, omp_get_default_device_,
3925 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
3927 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3928 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3929 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
3931 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
3932 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
3933 omp_set_default_device, omp_set_default_device_,
3934 omp_set_default_device_8_, omp_get_default_device,
3935 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
3936 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
3937 omp_get_team_num_): Export @@OMP_4.0.
3938 * team.c (struct gomp_thread_start_data): Add place field.
3939 (gomp_thread_start): Clear thr->thread_pool and
3940 thr->task before returning. Use gomp_team_barrier_wait_final
3941 instead of gomp_team_barrier_wait. Initialize thr->place.
3942 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
3943 team_cancelled and task_queued_count fields.
3944 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
3945 before calling pthread_exit.
3946 (gomp_free_thread): No longer static. Use
3947 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
3948 (gomp_team_start): Add flags argument. Set
3949 thr->thread_pool->threads_busy to nthreads immediately after creating
3950 new pool. Use gomp_managed_threads_lock instead of
3951 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
3952 (gomp_team_end): Use gomp_managed_threads_lock instead of
3953 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
3954 of gomp_team_barrier_wait. If team->team_cancelled, call
3955 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
3956 rather than thr->ts.work_share.
3957 (initialize_team): Don't call gomp_sem_init here.
3958 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
3960 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
3961 * env.c (gomp_global_icv): Add default_device_var, target_data and
3962 bind_var initializers.
3963 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
3964 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
3965 gomp_places_list_len): New variables.
3966 (parse_bind_var, parse_one_place, parse_places_var): New functions.
3967 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
3969 (gomp_cancel_var): New global variable.
3970 (parse_int): New function.
3971 (handle_omp_display_env): New function.
3972 (initialize_env): Use it. Initialize default_device_var.
3973 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
3974 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
3975 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
3976 been successfully parsed (and call gomp_init_affinity in that case).
3977 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3978 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3979 omp_get_team_num, omp_is_initial_device): New functions.
3980 * libgomp.h: Include stdlib.h.
3981 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
3983 (struct target_mem_desc): Forward declare.
3984 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
3985 and thread_limit_var fields.
3986 (gomp_get_num_devices): New prototype.
3987 (gomp_cancel_var): New extern decl.
3988 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
3989 team_cancelled and task_queued_count fields. Add comments about
3990 task_{,queued_,running_}count.
3991 (gomp_cancel_kind): New enum.
3992 (gomp_work_share_end_cancel): New prototype.
3993 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
3994 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
3996 (struct gomp_taskgroup): New type.
3997 (struct gomp_task_depend_entry,
3998 struct gomp_dependers_vec): New types.
3999 (gomp_finish_task): Free depend_hash if non-NULL.
4000 (struct gomp_team_state): Add place_partition_off
4001 and place_partition_len fields.
4002 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
4003 gomp_places_list_len): New extern decls.
4004 (struct gomp_thread): Add place field.
4005 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
4006 (gomp_init_thread_affinity): Add place argument.
4007 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4008 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4009 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4010 gomp_affinity_init_level, gomp_affinity_print_place): New
4012 (gomp_team_start): Add flags argument.
4013 (gomp_thread_limit_var, gomp_remaining_threads_count,
4014 gomp_remaining_threads_lock): Remove.
4015 (gomp_managed_threads_lock): New variable.
4016 (struct gomp_thread_pool): Add threads_busy field.
4017 (gomp_free_thread): New prototype.
4018 * task.c: Include hashtab.h.
4019 (hash_entry_type): New typedef.
4020 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
4021 (gomp_init_task): Clear dependers, depend_hash, depend_count,
4022 copy_ctors_done and taskgroup fields.
4023 (GOMP_task): Add depend argument, handle depend clauses. If
4024 gomp_team_barrier_cancelled or if it's taskgroup has been
4025 cancelled, don't queue or start new tasks. Set copy_ctors_done
4026 field if needed. Initialize taskgroup field. If copy_ctors_done
4027 and already cancelled, don't discard the task. If taskgroup is
4028 non-NULL, enqueue the task into taskgroup queue. Increment
4029 num_children field in taskgroup. Increment task_queued_count.
4030 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
4031 gomp_task_run_post_remove_taskgroup): New inline functions.
4032 (gomp_task_run_post_handle_depend_hash,
4033 gomp_task_run_post_handle_dependers,
4034 gomp_task_run_post_handle_depend): New functions.
4035 (GOMP_taskwait): Use them. If more than one new tasks
4036 have been queued, wake other threads if needed.
4037 (gomp_barrier_handle_tasks): Likewise. If
4038 gomp_team_barrier_cancelled, don't start any new tasks, just free
4040 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
4042 (omp_proc_bind_kind, omp_proc_bind_false,
4043 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
4044 omp_proc_bind_spread): New params.
4045 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4046 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4047 omp_get_team_num, omp_is_initial_device): New interfaces.
4048 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
4049 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
4050 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
4051 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
4052 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
4053 useless use omp_lib_kinds.
4054 * omp.h.in (omp_proc_bind_t): New typedef.
4055 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4056 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4057 omp_get_team_num, omp_is_initial_device): New prototypes.
4058 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
4059 through to gomp_team_start.
4060 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
4061 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
4062 Adjust gomp_parallel_loop_start callers.
4063 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
4064 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
4065 GOMP_loop_end_cancel): New functions.
4066 (GOMP_parallel_end): Add ialias_redirect.
4067 * hashtab.h: New file.
4068 * libgomp.texi (Environment Variables): Minor cleanup,
4069 update section refs to OpenMP 4.0rc2.
4070 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
4071 environment variables.
4072 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
4073 team->work_shares_to_free to thr->ts.work_share before calling
4075 (gomp_work_share_end_cancel): New function.
4076 * config/linux/proc.c: Include errno.h.
4077 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
4078 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
4079 sizeof (cpu_set_t) to determine number of iterations. Fix up check
4080 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
4081 gomp_cpuset_size is sizeof (cpu_set_t).
4082 (gomp_init_num_threads): Initialize gomp_cpuset_size,
4083 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
4084 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
4085 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
4086 contain any logical CPUs.
4087 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
4088 is NULL. Use gomp_cpusetp instead of &cpuset and pass
4089 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
4090 pthread_getaffinity_np. Check gomp_places_list instead of
4091 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
4092 * config/linux/bar.c (gomp_barrier_wait_end,
4093 gomp_barrier_wait_last): Use BAR_* defines.
4094 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
4095 from state where needed. Set work_share_cancelled to 0 on last
4097 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
4098 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
4100 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
4101 Add cpusetsize argument.
4102 (gomp_cpuset_size, gomp_cpusetp): Declare.
4103 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
4104 (affinity_counter): Remove.
4105 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
4106 if CPU_ALLOC_SIZE isn't defined.
4107 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
4108 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
4109 bind current thread to the first place.
4110 (gomp_init_thread_affinity): Rewritten. Add place argument, just
4111 pthread_setaffinity_np to gomp_places_list[place].
4112 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4113 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4114 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4115 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
4116 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
4117 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
4118 (gomp_barrier_t): Add awaited_final field.
4119 (gomp_barrier_init): Initialize awaited_final field.
4120 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
4121 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
4123 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
4125 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
4126 gomp_team_barrier_cancelled): New inline functions.
4127 (gomp_barrier_last_thread,
4128 gomp_team_barrier_set_task_pending,
4129 gomp_team_barrier_clear_task_pending,
4130 gomp_team_barrier_set_waiting_for_tasks,
4131 gomp_team_barrier_waiting_for_tasks,
4132 gomp_team_barrier_done): Use BAR_* defines.
4133 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
4134 (gomp_barrier_wait_end): Use BAR_* defines.
4135 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
4136 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
4138 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
4139 gomp_team_barrier_cancel): New functions.
4140 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
4142 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4143 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4144 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4145 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
4146 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
4147 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
4148 (gomp_barrier_t): Add cancellable field.
4149 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
4150 gomp_team_barrier_cancel): New prototypes.
4151 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
4152 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
4153 gomp_team_barrier_cancelled): New inline functions.
4154 (gomp_barrier_wait_start, gomp_barrier_last_thread,
4155 gomp_team_barrier_set_task_pending,
4156 gomp_team_barrier_clear_task_pending,
4157 gomp_team_barrier_set_waiting_for_tasks,
4158 gomp_team_barrier_waiting_for_tasks,
4159 gomp_team_barrier_done): Use BAR_* defines.
4160 * barrier.c (GOMP_barrier_cancel): New function.
4161 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
4162 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
4163 omp_proc_bind_spread): New params.
4164 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4165 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4166 omp_get_team_num, omp_is_initial_device): New externals.
4167 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
4169 (gomp_resolve_num_threads): Adjust for thread_limit now being in
4170 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
4171 infinity. If not nested, just return minimum of max_num_threads
4172 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
4173 to the returned value. Otherwise, don't update atomically
4174 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
4175 (GOMP_parallel_end): Adjust for thread_limit now being in
4176 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
4177 infinity. Adjust threads_busy in the pool rather than
4178 gomp_remaining_threads_count. Remember team->nthreads and call
4179 gomp_team_end before adjusting threads_busy, if not nested
4180 afterwards, just set it to 1 non-atomically. Add ialias.
4181 (GOMP_parallel_start): Adjust gomp_team_start caller.
4182 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
4183 * testsuite/libgomp.c/affinity-1.c: New test.
4184 * testsuite/libgomp.c/atomic-15.c: New test.
4185 * testsuite/libgomp.c/atomic-16.c: New test.
4186 * testsuite/libgomp.c/atomic-17.c: New test.
4187 * testsuite/libgomp.c/cancel-for-1.c: New test.
4188 * testsuite/libgomp.c/cancel-for-2.c: New test.
4189 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
4190 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
4191 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
4192 * testsuite/libgomp.c/cancel-sections-1.c: New test.
4193 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
4194 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
4195 * testsuite/libgomp.c/depend-1.c: New test.
4196 * testsuite/libgomp.c/depend-2.c: New test.
4197 * testsuite/libgomp.c/depend-3.c: New test.
4198 * testsuite/libgomp.c/depend-4.c: New test.
4199 * testsuite/libgomp.c/for-1.c: New test.
4200 * testsuite/libgomp.c/for-1.h: New file.
4201 * testsuite/libgomp.c/for-2.c: New test.
4202 * testsuite/libgomp.c/for-2.h: New file.
4203 * testsuite/libgomp.c/for-3.c: New test.
4204 * testsuite/libgomp.c/pr58392.c: New test.
4205 * testsuite/libgomp.c/simd-1.c: New test.
4206 * testsuite/libgomp.c/simd-2.c: New test.
4207 * testsuite/libgomp.c/simd-3.c: New test.
4208 * testsuite/libgomp.c/simd-4.c: New test.
4209 * testsuite/libgomp.c/simd-5.c: New test.
4210 * testsuite/libgomp.c/simd-6.c: New test.
4211 * testsuite/libgomp.c/target-1.c: New test.
4212 * testsuite/libgomp.c/target-2.c: New test.
4213 * testsuite/libgomp.c/target-3.c: New test.
4214 * testsuite/libgomp.c/target-4.c: New test.
4215 * testsuite/libgomp.c/target-5.c: New test.
4216 * testsuite/libgomp.c/target-6.c: New test.
4217 * testsuite/libgomp.c/target-7.c: New test.
4218 * testsuite/libgomp.c/taskgroup-1.c: New test.
4219 * testsuite/libgomp.c/thread-limit-1.c: New test.
4220 * testsuite/libgomp.c/thread-limit-2.c: New test.
4221 * testsuite/libgomp.c/thread-limit-3.c: New test.
4222 * testsuite/libgomp.c/udr-1.c: New test.
4223 * testsuite/libgomp.c/udr-2.c: New test.
4224 * testsuite/libgomp.c/udr-3.c: New test.
4225 * testsuite/libgomp.c++/affinity-1.C: New test.
4226 * testsuite/libgomp.c++/atomic-10.C: New test.
4227 * testsuite/libgomp.c++/atomic-11.C: New test.
4228 * testsuite/libgomp.c++/atomic-12.C: New test.
4229 * testsuite/libgomp.c++/atomic-13.C: New test.
4230 * testsuite/libgomp.c++/atomic-14.C: New test.
4231 * testsuite/libgomp.c++/atomic-15.C: New test.
4232 * testsuite/libgomp.c++/cancel-for-1.C: New test.
4233 * testsuite/libgomp.c++/cancel-for-2.C: New test.
4234 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
4235 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
4236 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
4237 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
4238 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
4239 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
4240 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
4241 * testsuite/libgomp.c++/cancel-test.h: New file.
4242 * testsuite/libgomp.c++/for-9.C: New test.
4243 * testsuite/libgomp.c++/for-10.C: New test.
4244 * testsuite/libgomp.c++/for-11.C: New test.
4245 * testsuite/libgomp.c++/simd-1.C: New test.
4246 * testsuite/libgomp.c++/simd-2.C: New test.
4247 * testsuite/libgomp.c++/simd-3.C: New test.
4248 * testsuite/libgomp.c++/simd-4.C: New test.
4249 * testsuite/libgomp.c++/simd-5.C: New test.
4250 * testsuite/libgomp.c++/simd-6.C: New test.
4251 * testsuite/libgomp.c++/simd-7.C: New test.
4252 * testsuite/libgomp.c++/simd-8.C: New test.
4253 * testsuite/libgomp.c++/target-1.C: New test.
4254 * testsuite/libgomp.c++/target-2.C: New test.
4255 * testsuite/libgomp.c++/target-2-aux.cc: New file.
4256 * testsuite/libgomp.c++/target-3.C: New test.
4257 * testsuite/libgomp.c++/taskgroup-1.C: New test.
4258 * testsuite/libgomp.c++/udr-1.C: New test.
4259 * testsuite/libgomp.c++/udr-2.C: New test.
4260 * testsuite/libgomp.c++/udr-3.C: New test.
4261 * testsuite/libgomp.c++/udr-4.C: New test.
4262 * testsuite/libgomp.c++/udr-5.C: New test.
4263 * testsuite/libgomp.c++/udr-6.C: New test.
4264 * testsuite/libgomp.c++/udr-7.C: New test.
4265 * testsuite/libgomp.c++/udr-8.C: New test.
4266 * testsuite/libgomp.c++/udr-9.C: New test.
4268 2013-09-20 Jakub Jelinek <jakub@redhat.com>
4271 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
4274 2013-09-20 Alan Modra <amodra@gmail.com>
4276 * configure: Regenerate.
4278 2013-09-19 Jakub Jelinek <jakub@redhat.com>
4280 * testsuite/libgomp.c/sections-2.c: New test.
4282 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
4284 * testsuite/libgomp.fortran/strassen.f90:
4285 Add dg-skip-if aarch64_tiny.
4287 2013-06-20 Iain Sandoe <iain@codesourcery.com>
4288 Cesar Philippidis <cesar@codesourcery.com>
4290 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
4291 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
4292 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
4293 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4294 * testsuite/libgomp.graphite/graphite.exp: Likewise.
4295 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
4296 Use dg-runtest rather than gfortran-dg-runtest.
4298 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
4300 * testsuite/libgomp.c/icv-2.c: Extend current handling of
4301 Linux-based x86 systems to cover all GNU systems.
4302 * testsuite/libgomp.c/lock-3.c: Likewise.
4303 * testsuite/libgomp.c/pr48591.c: Likewise.
4305 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
4307 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
4308 GNU/Hurd, as done for Linux-based systems.
4310 * config/posix/ptrlock.h: Fix comment.
4312 2013-05-27 Tobias Burnus <burnus@net-b.de>
4315 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
4316 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
4317 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
4318 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
4319 omp_destroy_nest_lock): Correct arguments to match the one in
4321 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
4322 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
4323 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
4324 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
4326 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4328 * testsuite/libgomp.c/loop-13.c: New test.
4329 * testsuite/libgomp.c/loop-14.c: New test.
4330 * testsuite/libgomp.c/loop-15.c: New test.
4331 * testsuite/libgomp.c++/loop-13.C: New test.
4332 * testsuite/libgomp.c++/loop-14.C: New test.
4333 * testsuite/libgomp.c++/loop-15.C: New test.
4335 2013-02-06 Jakub Jelinek <jakub@redhat.com>
4338 * testsuite/libgomp.c++/pr56217.C: New test.
4340 2013-02-01 Alan Modra <amodra@gmail.com>
4342 * task.c (GOMP_task, GOMP_taskwait): Comment.
4344 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
4345 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
4348 * config/linux/wait.h (do_spin): Use atomic load for addr.
4349 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
4350 for intptr and ptrlock.
4351 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
4354 2013-01-22 Alan Modra <amodra@gmail.com>
4358 * task.c (GOMP_task): Revert 2011-12-09 change.
4359 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
4360 barrier to read task->children..
4361 (gomp_barrier_handle_tasks): ..and matching atomic store with
4362 release barrier here when setting parent->children to NULL.
4364 2013-01-16 Jakub Jelinek <jakub@redhat.com>
4365 Tobias Burnus <burnus@net-b.de>
4368 * testsuite/libgomp.fortran/fortran.exp: Use
4369 -fintrinsic-modules-path= instead of
4370 -fintrinsic-modules-path.
4372 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
4374 Update copyright years.
4376 2012-12-19 Tobias Burnus <burnus@net-b.de>
4378 * testsuite/libgomp.fortran/fortran.exp: Set
4379 -fintrinsic-modules-path.
4381 2012-12-19 Tobias Burnus <burnus@net-b.de>
4383 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
4384 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
4386 2012-11-21 Jakub Jelinek <jakub@redhat.com>
4389 * team.c (gomp_free_thread): Decrease gomp_managed_threads
4390 if pool had any threads_used.
4392 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
4394 * testsuite/libgomp.c++/pr24455.C: Use
4395 -Wl,-undefined,dynamic_lookup on darwin.
4397 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
4399 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
4401 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
4403 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
4405 2012-10-23 Ian Bolton <ian.bolton@arm.com>
4406 Jim MacArthur <jim.macarthur@arm.com>
4407 Marcus Shawcroft <marcus.shawcroft@arm.com>
4408 Nigel Stephens <nigel.stephens@arm.com>
4409 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4410 Richard Earnshaw <rearnsha@arm.com>
4411 Sofiane Naci <sofiane.naci@arm.com>
4412 Stephen Thomas <stephen.thomas@arm.com>
4413 Tejas Belagod <tejas.belagod@arm.com>
4414 Yufeng Zhang <yufeng.zhang@arm.com>
4416 * configure.tgt: Add AArch64.
4418 2012-10-04 Jason Merrill <jason@redhat.com>
4420 * testsuite/libgomp.c++/tls-init1.C: New.
4422 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
4424 * configure: Regenerated.
4426 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
4428 * config/linux/mips/futex.h (sys_futex0): Change to static
4429 function with noinline, nomips16 attributes under MIPS16. Adjust
4430 asm statement to place 'li v0,SYS_futex' immediately before
4433 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
4435 * libgomp.texi (Library Index): Renamed from "Index" to prevent
4436 conflict with index.html on case-insensitive file systems.
4438 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
4440 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
4441 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
4443 2012-07-02 Richard Guenther <rguenther@suse.de>
4444 Michael Matz <matz@suse.de>
4445 Tobias Grosser <tobias@grosser.es>
4446 Sebastian Pop <sebpop@gmail.com>
4448 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4449 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
4450 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4451 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4453 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
4455 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
4457 2012-06-22 Richard Guenther <rguenther@suse.de>
4459 Merge from graphite branch
4460 2012-01-13 Tobias Grosser <tobias@grosser.es>
4462 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4463 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
4465 2012-06-07 Jakub Jelinek <jakub@redhat.com>
4468 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
4469 use GOMP_barrier () call instead.
4470 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4471 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4472 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
4473 call GOMP_barrier instead.
4474 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4476 2012-06-06 Jakub Jelinek <jakub@redhat.com>
4479 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
4480 argument to memset call.
4482 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4484 * configure: Regenerated.
4486 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4488 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
4490 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
4493 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
4495 2012-03-22 Jakub Jelinek <jakub@redhat.com>
4498 * testsuite/libgomp.c/pr52547.c: New test.
4500 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4502 * testsuite/lib/libgomp.exp: load fortran-modules.exp
4504 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4506 * configure.tgt (mips-sgi-irix6*): Remove.
4508 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4510 * configure.tgt (alpha*-dec-osf*): Remove.
4512 * config/osf/sem.h: Remove.
4513 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
4515 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
4517 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
4519 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4522 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
4523 Remove ENABLE_SYMVERS_SOL2.
4524 * configure: Regenerate.
4525 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
4526 (PREPROCESS): New variable.
4527 (libgomp.ver): New target.
4528 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
4529 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
4530 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
4532 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
4533 * Makefile.in: Regenerate.
4535 2012-02-14 Walter Lee <walt@tilera.com>
4537 * configure.tgt: Handle tilegx and tilepro.
4538 * config/linux/tile/futex.h: New file.
4540 2012-02-08 Richard Guenther <rguenther@suse.de>
4542 PR tree-optimization/46886
4543 * testsuite/libgomp.c/pr46886.c: New testcase.
4545 2012-01-25 Matthias Klose <doko@ubuntu.com>
4547 * config/linux/arm: Remove empty directory.
4548 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
4550 2011-12-09 Alan Modra <amodra@gmail.com>
4553 * task.c (GOMP_taskwait): Don't access task->children outside of
4554 task_lock mutex region.
4555 (GOMP_task): Likewise.
4557 2011-12-06 Jakub Jelinek <jakub@redhat.com>
4560 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
4562 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
4563 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
4564 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4565 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4566 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
4568 2011-12-02 Alan Modra <amodra@gmail.com>
4570 * config/linux/affinity.c: Use atomic rather than sync builtin.
4571 * config/linux/lock.c: Likewise.
4572 * config/linux/ptrlock.h: Likewise.
4573 * config/linux/ptrlock.c: Likewise.
4574 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
4575 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
4576 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
4577 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
4578 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
4579 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
4580 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
4581 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
4582 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
4583 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
4585 2011-11-30 Alan Modra <amodra@gmail.com>
4588 * config/linux/bar.h: Use atomic rather than sync builtins.
4589 * config/linux/bar.c: Likewise. Add missing acquire
4590 synchronisation on generation field.
4591 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
4594 2011-11-30 Alan Modra <amodra@gmail.com>
4596 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
4597 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
4598 * config/linux/mutex.h: Use atomic rather than sync builtins.
4599 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
4600 * config/linux/omp-lock.h: Comment fix.
4601 * config/linux/arm/mutex.h: Delete.
4602 * config/linux/powerpc/mutex.h: Delete.
4603 * config/linux/ia64/mutex.h: Delete.
4604 * config/linux/mips/mutex.h: Delete.
4606 2011-11-30 Alan Modra <amodra@gmail.com>
4609 * config/linux/sem.h: Rewrite.
4610 * config/linux/sem.c: Rewrite.
4612 2011-11-28 Richard Henderson <rth@redhat.com>
4614 * libgomp.h (enum memmodel): New.
4616 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
4618 * configure: Regenerate.
4620 2011-10-10 Matthias Klose <doko@ubuntu.com>
4622 * config/posix95: Remove empty directory.
4624 2011-08-26 Jakub Jelinek <jakub@redhat.com>
4626 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
4628 2011-08-19 Jakub Jelinek <jakub@redhat.com>
4631 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
4632 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
4634 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4636 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
4638 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4641 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
4643 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
4645 * config/linux/proc.h: New.
4646 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
4647 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
4648 (gomp_init_num_threads): Update call to cpuset_popcount.
4649 (get_num_procs): Ditto.
4650 * config/linux/affinity.c (gomp_init_affinity): Call
4651 gomp_cpuset_popcount.
4653 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4657 * omp.h.in (omp_in_final): New prototype.
4658 * omp_lib.f90.in (omp_in_final): New interface.
4659 (omp_integer_kind, omp_logical_kind): Remove
4660 and replace all its uses in the module with 4.
4661 (openmp_version): Change to 201107.
4662 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
4663 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
4664 kind for the parameters.
4665 (omp_in_final): New external.
4666 (openmp_version): Change to 201107.
4667 * task.c (omp_in_final): New function.
4668 (gomp_init_task): Initialize final_task.
4669 (GOMP_task): Remove unused attribute from flags. Handle final
4671 (GOMP_taskyield): New function.
4672 (omp_in_final): Return true if if (false) or final (true) task
4673 or descendant of final (true).
4674 * fortran.c (omp_in_final_): New function.
4675 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
4676 (GOMP_3.0): Export GOMP_taskyield.
4677 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
4679 (parse_unsigned_long_list): New function.
4680 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
4681 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
4682 even if parse_affinity returned false.
4683 * config/linux/affinity.c (gomp_init_affinity): Handle
4684 gomp_cpu_affinity_len == 0.
4685 * libgomp_g.h (GOMP_taskyield): New prototype.
4686 * libgomp.h (struct gomp_task): Add final_task field.
4687 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
4688 * team.c (gomp_team_start): Override new task's nthreads_var icv
4689 if list form OMP_NUM_THREADS has been used and it has value for
4690 the new nesting level.
4692 * testsuite/libgomp.c/atomic-11.c: New test.
4693 * testsuite/libgomp.c/atomic-12.c: New test.
4694 * testsuite/libgomp.c/atomic-13.c: New test.
4695 * testsuite/libgomp.c/atomic-14.c: New test.
4696 * testsuite/libgomp.c/reduction-6.c: New test.
4697 * testsuite/libgomp.c/task-5.c: New test.
4698 * testsuite/libgomp.c++/atomic-2.C: New test.
4699 * testsuite/libgomp.c++/atomic-3.C: New test.
4700 * testsuite/libgomp.c++/atomic-4.C: New test.
4701 * testsuite/libgomp.c++/atomic-5.C: New test.
4702 * testsuite/libgomp.c++/atomic-6.C: New test.
4703 * testsuite/libgomp.c++/atomic-7.C: New test.
4704 * testsuite/libgomp.c++/atomic-8.C: New test.
4705 * testsuite/libgomp.c++/atomic-9.C: New test.
4706 * testsuite/libgomp.c++/task-8.C: New test.
4707 * testsuite/libgomp.c++/reduction-4.C: New test.
4708 * testsuite/libgomp.fortran/allocatable7.f90: New test.
4709 * testsuite/libgomp.fortran/allocatable8.f90: New test.
4710 * testsuite/libgomp.fortran/crayptr3.f90: New test.
4711 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
4712 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
4713 * testsuite/libgomp.fortran/pointer1.f90: New test.
4714 * testsuite/libgomp.fortran/pointer2.f90: New test.
4715 * testsuite/libgomp.fortran/task4.f90: New test.
4717 2011-08-02 Tobias Burnus <burnus@net-b.de>
4719 * libgomp.texi: Update OpenMP spec references to 3.1.
4720 (omp_in_final,OMP_PROC_BIND): New sections.
4721 (OMP_NUM_THREADS): Document that the value can be now a list.
4722 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
4724 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4726 * config/linux/x86/futex.h: Check __x86_64__ instead of
4729 2011-07-29 Jakub Jelinek <jakub@redhat.com>
4733 * testsuite/libgomp.c/pr49897-1.c: New test.
4734 * testsuite/libgomp.c/pr49897-2.c: New test.
4735 * testsuite/libgomp.c/pr49898-1.c: New test.
4736 * testsuite/libgomp.c/pr49898-2.c: New test.
4738 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4740 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
4741 for ia32 instead of ilp32.
4743 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
4744 * testsuite/libgomp.c/atomic-6.c: Likewise.
4746 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
4748 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
4749 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
4751 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4754 * config/osf/sem.h: New file.
4755 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
4757 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4760 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
4763 2011-07-15 Jakub Jelinek <jakub@redhat.com>
4765 * config/linux/wait.h (do_spin): New inline, largely copied
4766 from do_wait, just don't do futex_wait here, instead return true if
4768 (do_wait): Implement using do_spin.
4769 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
4771 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4772 __sync_bool_compare_and_swap, pass the oldval to
4773 gomp_mutex_lock_slow.
4774 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
4775 If all mutex contenders are just spinning and not sleeping, don't
4776 change state to 2 unnecessarily. Optimize the loop when state has
4777 already become 2 to use just one atomic operation per loop instead
4779 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
4781 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4782 __sync_bool_compare_and_swap, pass the oldval to
4783 gomp_mutex_lock_slow.
4785 2011-06-22 Jakub Jelinek <jakub@redhat.com>
4788 * iter.c (gomp_iter_static_next): For chunk size 0
4789 only use n ceil/ nthreads size for the first
4790 n % nthreads threads in the team instead of
4791 all threads except for the last few ones which
4792 get less work or none at all.
4793 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
4794 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
4795 chunk argument, set run_sched_modifier to 0 for static
4796 resp. 1 for other kinds. If chunk argument is 0
4797 and not static, set value to 1.
4799 2011-05-19 Jakub Jelinek <jakub@redhat.com>
4802 * testsuite/libgomp.c++/pr49043.C: New test.
4805 * testsuite/libgomp.c++/pr48869.C: New test.
4807 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4810 * fortran.c: Include limits.h.
4812 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
4814 (omp_set_num_threads_8_, omp_set_schedule_8_,
4815 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
4816 omp_get_team_size_8_): Use TO_INT macro.
4817 * testsuite/libgomp.fortran/pr48894.f90: New test.
4819 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4822 * testsuite/libgomp.c/pr48591.c: New test.
4824 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4827 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
4828 * configure: Regenerate.
4830 2011-02-27 Jakub Jelinek <jakub@redhat.com>
4833 * testsuite/libgomp.fortran/task3.f90: New test.
4835 2011-02-24 Tobias Burnus <burnus@net-b.de>
4837 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
4839 2011-02-23 Jakub Jelinek <jakub@redhat.com>
4842 * libgomp.texi (omp_get_wtime): Don't say time in the past
4845 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4848 * testsuite/libgomp.fortran/fortran.exp: Check for both
4849 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
4850 but $blddir != "", still append ${blddir}/${lang_library_path}
4853 2011-02-16 Tobias Burnus <burnus@net-b.de>
4856 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
4857 of libquadmath.a before adding its libpath to ldflags.
4859 2011-02-14 Jakub Jelinek <jakub@redhat.com>
4862 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
4863 to FUTEX_WAIT futex syscall.
4864 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
4866 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4868 * configure: Regenerate.
4870 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
4873 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
4875 2011-01-16 Gerald Pfeifer
4877 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
4879 2010-12-14 Jakub Jelinek <jakub@redhat.com>
4882 * libgomp.fortran/allocatable6.f90: New test.
4884 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4886 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
4887 * configure: Regenerate.
4889 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
4893 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
4894 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
4895 * aclocal.m4: Regenerate.
4896 * configure: Regenerate.
4897 * Makefile.in: Regenerate.
4898 * testsuite/Makefile.in: Regenerate.
4900 2010-12-02 Jakub Jelinek <jakub@redhat.com>
4903 * libgomp.fortran/pr46753.f90: New test.
4906 * env.c (initialize_env): Default to spin count 300000
4907 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
4911 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
4912 at the end if sync builtins aren't supported.
4914 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4916 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
4918 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4920 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
4922 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
4924 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
4926 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4927 Tobias Burnus <burnus@net-b.de>
4931 * configure: Regenerate.
4933 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
4935 * config/linux/futex.h: New.
4936 * config/linux/arm/mutex.h: New.
4937 * configure.tgt (arm*-*-linux*): Add config path.
4939 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4941 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4943 2010-09-23 Tobias Burnus <burnus@net-b.de>
4945 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
4946 Change Fortran datatype to LOGICAL.
4947 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
4948 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
4950 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4952 * configure: Regenerate.
4954 2010-07-26 Jakub Jelinek <jakub@redhat.com>
4956 * libgomp.texi: Add function keyword to a couple of Fortran
4957 interfaces, use integer instead of int for Fortran.
4959 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
4961 * libgomp.texi: Fix spelling and pasto problems throughout.
4962 Adjust prototypes to match code.
4964 2010-07-24 Tobias Burnus <burnus@net-b.de>
4966 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
4967 silence -fwhole-file warning.
4969 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4971 * configure.tgt (*-*-solaris2.[56]*): Removed.
4973 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4975 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
4976 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
4977 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
4978 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
4979 targetting solaris2*.
4980 * configure: Regenerate.
4981 * config.h.in: Regenerate.
4983 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
4984 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
4985 Add libgomp_version_dep.
4986 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
4988 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
4989 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
4990 * Makefile.in: Regenerate.
4992 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
4993 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
4994 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
4995 to common block, protected by
4996 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
4998 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
5000 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
5002 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
5005 * configure: Regenerate.
5007 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5010 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
5011 * configure: Regenerate.
5012 * Makefile.in: Regenerate.
5013 * testsuite/Makefile.in: Regenerate.
5015 2010-04-26 Jakub Jelinek <jakub@redhat.com>
5018 * testsuite/libgomp.c/pr43893.c: New test.
5019 * testsuite/libgomp.c++/pr43893.C: New test.
5021 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5024 * testsuite/libgomp.fortran/vla8.f90: New test.
5026 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5029 * config/linux/affinity.c (gomp_init_affinity): Decrease
5030 gomp_available_cpus if affinity mask confines the process to fewer
5032 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
5033 non-NULL, just return gomp_available_cpus.
5036 * sections.c (gomp_sections_init): Initialize ws->mode.
5038 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5040 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
5041 not unused bar variable.
5042 * configure: Regenerate.
5044 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5046 * Makefile.in: Regenerate.
5047 * aclocal.m4: Regenerate.
5048 * testsuite/Makefile.in: Regenerate.
5050 2010-03-22 Jakub Jelinek <jakub@redhat.com>
5053 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
5054 (initialize_env): Adjust callers.
5055 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
5056 when the argument is 0.
5058 * testsuite/libgomp.c/pr42942.c: New test.
5060 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
5064 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
5065 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
5067 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5069 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
5070 * testsuite/libgomp.c++/task-6.C: Likewise.
5072 2010-01-28 Steve Ellcey <sje@cup.hp.com>
5074 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
5076 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
5078 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
5079 * configure: Regenerate.
5081 2010-01-26 Jakub Jelinek <jakub@redhat.com>
5084 * testsuite/libgomp.fortran/allocatable5.f90: New test.
5086 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
5088 * configure.ac: Test for executability of GFORTRAN.
5089 * configure: Regenerate.
5091 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5093 * configure: Regenerate.
5095 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
5098 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
5100 2010-01-03 Richard Guenther <rguenther@suse.de>
5102 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
5104 2009-12-23 Sebastian Pop <sebpop@gmail.com>
5106 * testsuite/libgomp.graphite/pr4118.c: New.
5108 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5110 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
5111 for darwin, protect the test with require-effective-target tls_runtime.
5112 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
5114 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5117 * testsuite/lib/libgomp.exp: Provide -B options to allow for
5118 link spec %s substitutions for static libraries.
5120 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
5123 * libgomp.graphite/force-parallel-2.c: Reduce array size.
5125 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5127 * Makefile.in: Regenerate.
5128 * configure: Regenerate.
5129 * testsuite/Makefile.in: Regenerate.
5131 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
5133 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
5134 settings for LC_ALL and LANG.
5136 2009-11-25 Jakub Jelinek <jakub@redhat.com>
5139 * testsuite/libgomp.fortran/pr42162.f90: New test.
5141 2009-11-13 Jakub Jelinek <jakub@redhat.com>
5144 * testsuite/libgomp.c/pr42029.c: New test.
5146 2009-10-26 Jakub Jelinek <jakub@redhat.com>
5148 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
5149 *s. Accept ld version without text in ()s.
5150 * configure: Regenerated.
5152 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
5154 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
5156 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5159 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
5160 or a hyphen (happens with fortran language disabled).
5161 * configure: Regenerate.
5163 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5165 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
5166 use sed script portable to Solaris /bin/sed for extracting ld
5168 * configure: Regenerate.
5170 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
5172 * testsuite/libgomp.graphite/bounds.c: New test.
5174 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5176 * Makefile.am (libgomp_la_LINK): New.
5177 * Makefile.in: Regenerate.
5179 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5181 * configure.ac (AC_PREREQ): Bump to 2.64.
5183 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5185 * Makefile.am (install-html, install-pdf): Remove.
5186 * Makefile.in: Regenerate.
5188 * Makefile.in: Regenerate.
5189 * aclocal.m4: Regenerate.
5190 * config.h.in: Regenerate.
5191 * configure: Regenerate.
5192 * testsuite/Makefile.in: Regenerate.
5194 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5196 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
5197 * Makefile.in: Regenerate.
5199 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
5201 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
5202 * Makefile.in: Regenerate.
5204 2009-08-19 Tobias Burnus <burnus@net-b.de>
5207 omp_lib.h.in: Fix -std=f95 errors.
5209 2009-08-14 David Edelsohn <edelsohn@gnu.org>
5211 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
5212 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
5213 * testsuite/libgomp.graphite/graphite.exp: New.
5215 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
5217 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
5220 2009-08-04 David Daney <ddaney@caviumnetworks.com>
5222 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
5223 needed memory barrier semantics.
5224 * config/linux/mips/mutex.h: New file.
5226 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5228 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
5230 2009-07-16 Joseph Myers <joseph@codesourcery.com>
5232 * configure: Regenerate.
5234 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
5239 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
5240 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
5241 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
5243 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
5245 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
5246 options when choosing a multilib.
5248 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
5250 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
5251 ld_library_path. Use add_path. Add just find_libgcc_s to
5252 ld_library_path, not every libgcc multilib directory.
5253 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
5254 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
5255 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
5257 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
5259 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
5261 * Makefile.am (LTLDFLAGS): Define.
5263 * Makefile.in: Regenerate.
5265 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
5268 * testsuite/libgomp.fortran/fortran.exp: Don't link with
5269 libgfortranbegin, check existence of libgfortran.a instead of
5272 2009-05-20 Jakub Jelinek <jakub@redhat.com>
5275 * team.c (gomp_thread_start): Destroy thr->release semaphore.
5276 (gomp_free_pool_helper): Likewise.
5278 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
5279 Jakub Jelinek <jakub@redhat.com>
5282 * testsuite/libgomp.fortran/workshare2.f90: New test.
5284 2009-04-09 Nick Clifton <nickc@redhat.com>
5286 * iter.c: Change copyright header to refer to version 3 of the
5287 GNU General Public License with version 3.1 of the GCC Runtime
5288 Library Exception and to point readers at the COPYING3 and
5289 COPYING3.RUNTIME files and the FSF's license web page.
5290 * alloc.c: Likewise.
5291 * barrier.c: Likewise.
5292 * config/bsd/proc.c: Likewise.
5293 * config/linux/affinity.c: Likewise.
5294 * config/linux/alpha/futex.h: Likewise.
5295 * config/linux/bar.c: Likewise.
5296 * config/linux/bar.h: Likewise.
5297 * config/linux/ia64/futex.h: Likewise.
5298 * config/linux/ia64/mutex.h: Likewise.
5299 * config/linux/lock.c: Likewise.
5300 * config/linux/mips/futex.h: Likewise.
5301 * config/linux/mutex.c: Likewise.
5302 * config/linux/mutex.h: Likewise.
5303 * config/linux/powerpc/futex.h: Likewise.
5304 * config/linux/proc.c: Likewise.
5305 * config/linux/ptrlock.c: Likewise.
5306 * config/linux/ptrlock.h: Likewise.
5307 * config/linux/s390/futex.h: Likewise.
5308 * config/linux/sem.c: Likewise.
5309 * config/linux/sem.h: Likewise.
5310 * config/linux/sparc/futex.h: Likewise.
5311 * config/linux/wait.h: Likewise.
5312 * config/linux/x86/futex.h: Likewise.
5313 * config/mingw32/proc.c: Likewise.
5314 * config/mingw32/time.c: Likewise.
5315 * config/posix/affinity.c: Likewise.
5316 * config/posix/bar.c: Likewise.
5317 * config/posix/bar.h: Likewise.
5318 * config/posix/lock.c: Likewise.
5319 * config/posix/mutex.h: Likewise.
5320 * config/posix/proc.c: Likewise.
5321 * config/posix/ptrlock.h: Likewise.
5322 * config/posix/sem.c: Likewise.
5323 * config/posix/sem.h: Likewise.
5324 * config/posix/time.c: Likewise.
5325 * config/posix95/lock.c: Likewise.
5326 * critical.c: Likewise.
5328 * error.c: Likewise.
5329 * fortran.c: Likewise.
5330 * iter_ull.c: Likewise.
5331 * libgomp.h: Likewise.
5332 * libgomp_f.h.in: Likewise.
5333 * libgomp_g.h: Likewise.
5335 * loop_ull.c: Likewise.
5336 * omp.h.in: Likewise.
5337 * omp_lib.f90.in: Likewise.
5338 * omp_lib.h.in: Likewise.
5339 * ordered.c: Likewise.
5340 * parallel.c: Likewise.
5341 * sections.c: Likewise.
5342 * single.c: Likewise.
5347 2009-04-09 Jakub Jelinek <jakub@redhat.com>
5349 * testsuite/config/default.exp: Change copyright header to refer to
5350 version 3 of the GNU General Public License and to point readers
5351 at the COPYING3 file and the FSF's license web page.
5353 2009-04-08 Jakub Jelinek <jakub@redhat.com>
5356 * libgomp.c++/pr39573.C: New test.
5358 2009-04-01 Jakub Jelinek <jakub@redhat.com>
5361 * testsuite/libgomp.c/pr39591-1.c: New test.
5362 * testsuite/libgomp.c/pr39591-2.c: New test.
5363 * testsuite/libgomp.c/pr39591-3.c: New test.
5365 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
5367 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
5368 * testsuite/libgomp.c/atomic-6.c: Ditto.
5370 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5373 * testsuite/libgomp.c/loop-12.c: New test.
5374 * testsuite/libgomp.c/loop-11.c: New test.
5375 * testsuite/libgomp.c++/loop-11.C: New test.
5376 * testsuite/libgomp.c++/loop-12.C: New test.
5377 * testsuite/libgomp.c++/for-8.C: New test.
5379 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5381 * configure: Regenerate.
5383 2009-02-11 Jakub Jelinek <jakub@redhat.com>
5386 * testsuite/libgomp.c/pr39154.c: New test.
5388 2009-01-30 Ian Lance Taylor <iant@google.com>
5390 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
5391 libgomp_ld_is_gold. Get gold version number.
5392 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
5393 * configure: Rebuild.
5395 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5397 * testsuite/lib/libgomp.exp: Add -B option for targets that
5398 use libgfortran.a%s in their specs.
5400 2009-01-07 Jakub Jelinek <jakub@redhat.com>
5403 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
5404 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
5405 HAVE_AS_SYMVER_DIRECTIVE is not defined.
5406 * configure: Regenerated.
5407 * config.h.in: Likewise.
5409 2008-12-28 Jakub Jelinek <jakub@redhat.com>
5412 * testsuite/libgomp.c/pr38650.c: New test.
5413 * testsuite/libgomp.c++/pr38650.C: New test.
5415 2008-12-27 Jakub Jelinek <jakub@redhat.com>
5417 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
5419 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
5421 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
5423 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5425 * configure: Regenerate.
5427 2008-12-08 Jakub Jelinek <jakub@redhat.com>
5430 * testsuite/libgomp.c/pr36802-1.c: New test.
5431 * testsuite/libgomp.c/pr36802-2.c: New test.
5432 * testsuite/libgomp.c/pr36802-3.c: New test.
5434 2008-12-01 Janis Johnson <janis187@us.ibm.com>
5437 * config/linux/powerpc/mutex.h: New.
5439 2008-12-01 Jakub Jelinek <jakub@redhat.com>
5442 * testsuite/libgomp.c++/for-7.C: New test.
5445 * testsuite/libgomp.c++/for-6.C: New test.
5447 2008-11-26 Janis Johnson <janis187@us.ibm.com>
5450 * testsuite/lib/libgomp.exp: Include new timeout library files.
5451 (libgomp_target_compile): Set timeout value from new proc.
5453 2008-11-13 Steve Ellcey <sje@cup.hp.com>
5456 * config/linux/ia64/mutex.h: New.
5458 2008-11-04 Tobias Burnus <burnus@net-b.de>
5461 * libgomp.texi (Runtime library routines, environment variables):
5462 Update for OpenMP version 3.0.
5464 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
5465 Steve Ellcey <sje@cup.hp.com>
5467 * configure: Regenerate for new libtool.
5468 * Makefile.in: Ditto.
5469 * testsuite/Makefile.in: Ditto.
5471 2008-09-19 Jakub Jelinek <jakub@redhat.com>
5472 Andreas Tobler <a.tobler@schweiz.org>
5474 * config/bsd/proc.c: New file.
5475 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
5476 * configure.ac: Check for header <sys/sysctl.h>
5477 * configure: Regenerate.
5478 * config.h.in: Likewise.
5480 2008-09-05 Janis Johnson <janis187@us.ibm.com>
5482 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
5484 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5486 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
5487 * Makefile.in: Regenerated.
5488 * testsuite/Makefile.in: Regenerated.
5490 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
5492 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
5493 depend on blddir if blddir exists.
5494 (libgomp_target_compile): Likewise.
5495 * testsuite/libgomp.c++/c++.exp: Likewise.
5496 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5498 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5500 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
5501 Do not list GPL as Invariant Section.
5503 2008-07-28 Ilie Garbacea <ilie@mips.com>
5504 Chao-ying Fu <fu@mips.com>
5506 * configure.tgt: Enable futex for MIPS.
5507 * config/linux/mips/futex.h: New file.
5509 2008-07-16 Jakub Jelinek <jakub@redhat.com>
5511 * team.c (gomp_team_end): Free team immediately if it has
5514 2008-07-08 David Edelsohn <edelsohn@gnu.org>
5516 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
5517 * testsuite/libgomp.fortran/fortran.exp: Same.
5518 * testsuite/libgomp.c/c.exp: Same.
5519 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
5520 directory to library path first.
5522 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
5524 * env.c (parse_stacksize): Add cast to avoid warning.
5525 (parse_spincount): Likewise.
5527 2008-06-27 Jakub Jelinek <jakub@redhat.com>
5529 * testsuite/libgomp.c/loop-10.c: New test.
5530 * libgomp.c/loop-3.c (main): Add lastprivate clause.
5531 * libgomp.c++/loop-6.C (main): Likewise.
5534 * testsuite/libgomp.c/debug-1.c: New test.
5536 2008-06-19 Jakub Jelinek <jakub@redhat.com>
5538 * testsuite/libgomp.c/nqueens-1.c: New test.
5541 * testsuite/libgomp.c++/task-7.C: New function.
5543 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5545 * configure: Regenerate.
5547 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5549 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
5550 mutex when HAVE_SYNC_BUILTINS isn't defined.
5552 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5554 * libgomp.texi (omp_test_lock): Fix typo.
5556 2008-06-12 Tobias Burnus <burnus@net-b.de>
5558 * omp_lib.f90.in: Add "implicit none".
5560 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5563 * testsuite/libgomp.c/reduction-5.c: New test.
5565 2008-06-11 Jakub Jelinek <jakub@redhat.com>
5567 * libgomp.h (struct gomp_task): Add in_tied_task field.
5568 * task.c (gomp_init_task): Initialize it.
5569 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
5570 unconditionally. Don't call gomp_team_barrier_wake if
5571 current task is implicit or if(0) from implicit and number of
5572 running tasks is equal to nthreads - 1.
5575 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
5576 omp_get_team_size_8): Fix pastos.
5579 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
5580 * configure: Regenerated.
5581 * config.h.in: Regenerated.
5582 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
5585 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
5588 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
5589 (GOMP_loop_ull_dynamic_start): Likewise.
5590 (GOMP_loop_ull_guided_start): Likewise.
5591 (GOMP_loop_ull_ordered_static_start): Likewise.
5592 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
5593 (GOMP_loop_ull_ordered_guided_start): Likewise.
5595 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5596 Richard Henderson <rth@redhat.com>
5597 Ulrich Drepper <drepper@redhat.com>
5598 Jakob Blomer <jakob.blomer@ira.uka.de>
5600 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
5601 Substitute also OMP_*LOCK_25*.
5602 * configure: Regenerated.
5603 * config.h.in: Regenerated.
5604 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
5605 ptrlock.c and task.c.
5606 * Makefile.in: Regenerated.
5607 * testsuite/Makefile.in: Regenerated.
5609 * loop_ull.c: New file.
5610 * iter_ull.c: New file.
5611 * libgomp.h: Include ptrlock.h.
5612 (enum gomp_task_kind): New type.
5613 (struct gomp_team): Add task_lock, task_queue, task_count,
5614 task_running_count, single_count fields. Add
5615 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
5616 Remove work_share_lock, generation_mask,
5617 oldest_live_gen, num_live_gen and init_work_shares fields, add
5618 work work_share_list_alloc, work_share_list_free and work_share_chunk
5619 fields. Change work_shares from pointer to pointers into an array.
5620 Change ordered_release field into gomp_sem_t ** from flexible array
5621 member. Add implicit_task and initial_work_shares fields.
5622 Move close to the end of the struct.
5623 (struct gomp_team_state): Add single_count, last_work_share,
5624 active_level and level fields, remove work_share_generation.
5625 (gomp_barrier_handle_tasks): New prototype.
5626 (gomp_finish_task): New inline function.
5627 (struct gomp_work_share): Move chunk_size, end, incr into
5628 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
5629 next_ll fields. Reshuffle fields. Add next_alloc,
5630 next_ws, next_free and inline_ordered_team_ids fields, change
5631 ordered_team_ids into pointer from flexible array member.
5632 Add mode field. Put lock and next into a different cache line
5633 from most of the write-once fields.
5634 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
5635 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
5636 gomp_iter_ull_guided_next): New prototypes.
5637 (gomp_new_icv): New prototype.
5638 (struct gomp_thread): Add thread_pool and task fields.
5639 (struct gomp_thread_pool): New type.
5640 (gomp_new_team): New prototype.
5641 (gomp_team_start): Change type of last argument.
5642 (gomp_new_work_share): Removed.
5643 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
5644 (gomp_work_share_init_done): New static inline.
5645 (gomp_throttled_spin_count_var, gomp_available_cpus,
5646 gomp_managed_threads): New extern decls.
5647 (gomp_init_task): New prototype.
5648 (gomp_spin_count_var): New extern var decl.
5649 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
5650 or no alias support, or if not PIC.
5651 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
5652 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
5653 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
5654 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
5655 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
5656 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
5657 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
5658 gomp_test_nest_lock_25): New prototypes.
5659 (omp_lock_symver, strong_alias): Define.
5660 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
5662 (gomp_end_task): New.
5663 (struct gomp_task_icv, gomp_global_icv): New.
5664 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
5665 (struct gomp_task): New.
5666 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5667 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5669 (gomp_schedule_type): Reorder enum to match
5671 * team.c (struct gomp_thread_start_data): Add thread_pool and task
5673 (gomp_thread_start): Add gomp_team_barrier_wait call.
5674 For non-nested case remove clearing of docked thread thr fields.
5675 Use pool fields instead of global gomp_* variables. Use
5676 gomp_barrier_wait_last when needed. Initialize ts.active_level.
5677 Create tasks for each member thread.
5678 (free_team): Only destroy team barrier, task_lock here and free it.
5679 (gomp_free_thread): Free last_team if non-NULL.
5680 (gomp_team_end): Call gomp_team_barrier_wait instead of
5681 gomp_barrier_wait. For nested case call one extra
5682 gomp_barrier_wait. Move here some destruction from free_team.
5683 Call free_team on pool->last_team if any, rather than freeing
5684 current team. Destroy work_share_list_free_lock ifndef
5686 (gomp_new_icv): New function.
5687 (gomp_threads, gomp_threads_size, gomp_threads_used,
5688 gomp_threads_dock): Removed.
5689 (gomp_thread_destructor): New variable.
5690 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
5692 (gomp_team_start): Create new pool if current thread doesn't have
5693 one. Use pool fields instead of global gomp_* variables.
5694 Initialize thread_pool field for new threads. Clear single_count.
5695 Change last argument from ws to team, don't create
5696 new team, set ts.work_share to &team->work_shares[0] and clear
5697 ts.last_work_share. Don't clear ts.work_share_generation.
5698 If number of threads changed, adjust atomically gomp_managed_threads.
5699 Use gomp_init_task instead of gomp_new_task,
5700 set thr->task to the corresponding implicit_task array entry.
5701 Create tasks for each member thread. Initialize ts.level.
5702 (initialize_team): Call pthread_key_create on
5703 gomp_thread_destructor.
5704 (team_destructor): New function.
5705 (new_team): Removed.
5706 (gomp_new_team): New function.
5707 (free_team): Free gomp_work_share blocks chained through next_alloc,
5708 instead of freeing work_shares and destroying work_share_lock.
5709 (gomp_team_end): Call gomp_fini_work_share. If number of threads
5710 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
5711 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
5712 of gomp_barrier_wait.
5713 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
5714 instead of gomp_barrier_wait. Call gomp_work_share_init_done
5715 if gomp_work_share_start returned true. Don't unlock ws->lock.
5716 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
5717 of gomp_barrier_wait.
5718 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
5719 gomp_work_share_init_done if gomp_work_share_start returned true.
5720 Don't unlock ws->lock.
5721 * work.c: Include stddef.h.
5722 (free_work_share): Use work_share_list_free_lock instead
5723 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
5724 Call gomp_fini_work_share and then either free ws if orphaned, or
5725 put it into work_share_list_free list of the current team.
5726 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
5728 (gomp_work_share_start, gomp_work_share_end,
5729 gomp_work_share_end_nowait): Rewritten.
5730 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
5731 (openmp_version): Set to 200805.
5732 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5733 omp_sched_guided, omp_sched_auto): New parameters.
5734 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5735 omp_set_max_active_levels, omp_get_max_active_levels,
5736 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5737 omp_get_active_level): New interfaces.
5738 * omp_lib.h.in (openmp_version): Set to 200805.
5739 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5740 omp_sched_guided, omp_sched_auto): New parameters.
5741 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5742 omp_set_max_active_levels, omp_get_max_active_levels,
5743 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5744 omp_get_active_level): New externals.
5745 * loop.c: Include limits.h.
5746 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
5748 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
5749 Likewise. Use gomp_icv.
5750 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
5751 ts.static_trip here.
5752 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
5753 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
5754 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
5755 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
5756 don't unlock ws->lock, otherwise lock it.
5757 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
5758 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
5759 (gomp_parallel_loop_start): Call gomp_new_team instead of
5760 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
5761 Adjust gomp_team_start caller. Pass 0 as second argument to
5762 gomp_resolve_num_threads.
5763 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
5764 If adding ws->chunk_size nthreads + 1 times after end won't
5765 overflow, set ws->mode to 1.
5766 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
5767 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
5768 GOMP_loop_ull_ordered_static_start,
5769 GOMP_loop_ull_ordered_dynamic_start,
5770 GOMP_loop_ull_ordered_guided_start,
5771 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
5772 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
5773 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
5774 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
5775 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
5777 * libgomp.map: Export lock routines also @@OMP_2.0.
5778 (GOMP_loop_ordered_dynamic_first,
5779 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
5780 GOMP_loop_ordered_static_first): Remove.
5781 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
5782 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
5783 GOMP_loop_ull_ordered_dynamic_next,
5784 GOMP_loop_ull_ordered_dynamic_start,
5785 GOMP_loop_ull_ordered_guided_next,
5786 GOMP_loop_ull_ordered_guided_start,
5787 GOMP_loop_ull_ordered_runtime_next,
5788 GOMP_loop_ull_ordered_runtime_start,
5789 GOMP_loop_ull_ordered_static_next,
5790 GOMP_loop_ull_ordered_static_start,
5791 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
5792 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
5793 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
5794 (omp_set_schedule, omp_get_schedule,
5795 omp_get_thread_limit, omp_set_max_active_levels,
5796 omp_get_max_active_levels, omp_get_level,
5797 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
5798 omp_set_schedule_, omp_set_schedule_8_,
5799 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5800 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5801 omp_get_max_active_levels_, omp_get_level_,
5802 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5803 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5804 New exports @@OMP_3.0.
5805 * omp.h.in (omp_sched_t): New type.
5806 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5807 omp_set_max_active_levels, omp_get_max_active_levels,
5808 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5809 omp_get_active_level): New prototypes.
5810 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
5811 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
5812 gomp_thread_limit_var, gomp_remaining_threads_count,
5813 gomp_remaining_threads_lock): New variables.
5814 (parse_spincount): New function.
5815 (initialize_env): Call gomp_init_num_threads unconditionally.
5816 Initialize gomp_available_cpus. Call parse_spincount,
5817 initialize gomp_{,throttled_}spin_count_var
5818 depending on presence and value of OMP_WAIT_POLICY and
5819 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
5820 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
5821 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
5822 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
5823 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
5824 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5825 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5826 (gomp_global_icv): New.
5827 (parse_schedule): Use it. Parse "auto".
5828 (omp_set_num_threads): Use gomp_icv.
5829 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
5831 (omp_get_max_threads): Move from parallel.c.
5832 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5833 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
5835 (parse_stacksize, parse_wait_policy): New functions.
5836 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
5837 both wrappers for compatibility and new locks.
5838 (omp_set_schedule, omp_get_schedule,
5839 omp_get_thread_limit, omp_set_max_active_levels,
5840 omp_get_max_active_levels, omp_get_level,
5841 omp_get_ancestor_thread_num, omp_get_team_size,
5842 omp_get_active_level): New ialias_redirect.
5843 (omp_set_schedule_, omp_set_schedule_8_,
5844 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5845 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5846 omp_get_max_active_levels_, omp_get_level_,
5847 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5848 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5850 * parallel.c: Include limits.h.
5851 (gomp_resolve_num_threads): Add count argument. Rewritten.
5852 (GOMP_parallel_start): Call gomp_new_team and pass that as last
5853 argument to gomp_team_start. Pass 0 as second argument to
5854 gomp_resolve_num_threads.
5855 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
5856 if gomp_thread_limit_var != ULONG_MAX.
5857 (omp_in_parallel): Implement using ts.active_level.
5858 (omp_get_max_threads): Move to env.c.
5859 (omp_get_level, omp_get_ancestor_thread_num,
5860 omp_get_team_size, omp_get_active_level): New functions,
5862 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
5863 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
5864 gomp_iter_dynamic_next instead of the _locked variant and don't take
5865 lock around it, otherwise acquire it before calling
5866 gomp_iter_dynamic_next_locked.
5867 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
5868 gomp_iter_dynamic_next instead of the _locked variant and don't take
5870 (GOMP_parallel_sections_start): Call gomp_new_team instead of
5871 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
5872 Adjust gomp_team_start caller. Pass count as second argument to
5873 gomp_resolve_num_threads, don't adjust num_threads after the call.
5875 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
5876 ws->chunk_size by incr.
5877 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
5879 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
5881 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
5882 (omp_check_defines): Check even the compat defines.
5883 * config/linux/ptrlock.c: New file.
5884 * config/linux/ptrlock.h: New file.
5885 * config/linux/wait.h: New file.
5886 * config/posix/ptrlock.c: New file.
5887 * config/posix/ptrlock.h: New file.
5888 * config/linux/bar.h (gomp_team_barrier_wait,
5889 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5890 (gomp_team_barrier_set_task_pending,
5891 gomp_team_barrier_clear_task_pending,
5892 gomp_team_barrier_set_waiting_for_tasks,
5893 gomp_team_barrier_waiting_for_tasks,
5894 gomp_team_barrier_done): New inlines.
5895 (gomp_barrier_t): Rewritten.
5896 (gomp_barrier_state_t): New typedef.
5897 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
5898 gomp_barrier_wait_start): Rewritten.
5899 (gomp_barrier_wait_end): Change second argument to
5900 gomp_barrier_state_t.
5901 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5903 * config/linux/bar.c: Include wait.h instead of libgomp.h and
5905 (gomp_barrier_wait_end): Rewritten.
5906 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5907 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
5908 * config/posix/bar.h (gomp_barrier_t): Add generation field.
5909 (gomp_barrier_state_t): New typedef.
5910 (gomp_team_barrier_wait,
5911 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5912 (gomp_barrier_wait_start): Or all but low 2 bits from generation
5913 into the return value. Return gomp_barrier_state_t.
5914 (gomp_team_barrier_set_task_pending,
5915 gomp_team_barrier_clear_task_pending,
5916 gomp_team_barrier_set_waiting_for_tasks,
5917 gomp_team_barrier_waiting_for_tasks,
5918 gomp_team_barrier_done): New inlines.
5919 (gomp_barrier_wait_end): Change second argument to
5920 gomp_barrier_state_t.
5921 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5923 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
5924 (gomp_barrier_wait_end): Change second argument to
5925 gomp_barrier_state_t.
5926 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5927 gomp_team_barrier_wake): New functions.
5928 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
5930 (gomp_futex_wake, gomp_futex_wait): New variables.
5931 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
5932 * config/linux/lock.c: Rewrite to make locks task owned,
5933 for backwards compatibility provide the old entrypoints
5934 if symbol versioning. Include wait.h instead of libgomp.h and
5936 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
5937 * config/posix95/lock.c: Rewrite to make locks task owned,
5938 for backwards compatibility provide the old entrypoints
5939 if symbol versioning.
5940 * config/posix/lock.c: Rewrite to make locks task owned,
5941 for backwards compatibility provide the old entrypoints
5942 if symbol versioning.
5943 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
5944 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
5945 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
5946 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5947 (sys_futex0): Return error code.
5948 (futex_wake, futex_wait): If ENOSYS was returned, clear
5949 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5950 (cpu_relax, atomic_write_barrier): New static inlines.
5951 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5952 (futex_wake, futex_wait): If ENOSYS was returned, clear
5953 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5954 (cpu_relax, atomic_write_barrier): New static inlines.
5955 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5956 (sys_futex0): Return error code.
5957 (futex_wake, futex_wait): If ENOSYS was returned, clear
5958 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5959 (cpu_relax, atomic_write_barrier): New static inlines.
5960 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5961 (sys_futex0): Return error code.
5962 (futex_wake, futex_wait): If ENOSYS was returned, clear
5963 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5964 (cpu_relax, atomic_write_barrier): New static inlines.
5965 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5966 (sys_futex0): Return error code.
5967 (futex_wake, futex_wait): If ENOSYS was returned, clear
5968 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5969 (cpu_relax, atomic_write_barrier): New static inlines.
5970 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5971 (sys_futex0): Return error code.
5972 (futex_wake, futex_wait): If ENOSYS was returned, clear
5973 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5974 (cpu_relax, atomic_write_barrier): New static inlines.
5975 * config/linux/sem.c: Include wait.h instead of libgomp.h and
5977 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
5978 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
5979 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
5981 (omp_nest_lock_t): Change owner into void *, add lock field.
5982 * config/posix95/omp-lock.h: Include semaphore.h.
5983 (omp_lock_25_t, omp_nest_lock_25_t): New types.
5984 (omp_lock_t): Use sem_t instead of mutex if semaphores
5986 (omp_nest_lock_t): Likewise. Change owner to void *.
5987 * config/posix/omp-lock.h: Include semaphore.h.
5988 (omp_lock_25_t, omp_nest_lock_25_t): New types.
5989 (omp_lock_t): Use sem_t instead of mutex if semaphores
5991 (omp_nest_lock_t): Likewise. Add owner field.
5993 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5995 * testsuite/libgomp.c/collapse-1.c: New test.
5996 * testsuite/libgomp.c/collapse-2.c: New test.
5997 * testsuite/libgomp.c/collapse-3.c: New test.
5998 * testsuite/libgomp.c/icv-1.c: New test.
5999 * testsuite/libgomp.c/icv-2.c: New test.
6000 * testsuite/libgomp.c/lib-2.c: New test.
6001 * testsuite/libgomp.c/lock-1.c: New test.
6002 * testsuite/libgomp.c/lock-2.c: New test.
6003 * testsuite/libgomp.c/lock-3.c: New test.
6004 * testsuite/libgomp.c/loop-4.c: New test.
6005 * testsuite/libgomp.c/loop-5.c: New test.
6006 * testsuite/libgomp.c/loop-6.c: New test.
6007 * testsuite/libgomp.c/loop-7.c: New test.
6008 * testsuite/libgomp.c/loop-8.c: New test.
6009 * testsuite/libgomp.c/loop-9.c: New test.
6010 * testsuite/libgomp.c/nested-3.c: New test.
6011 * testsuite/libgomp.c/nestedfn-6.c: New test.
6012 * testsuite/libgomp.c/sort-1.c: New test.
6013 * testsuite/libgomp.c/task-1.c: New test.
6014 * testsuite/libgomp.c/task-2.c: New test.
6015 * testsuite/libgomp.c/task-3.c: New test.
6016 * testsuite/libgomp.c/task-4.c: New test.
6017 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
6018 to C++ testsuite default compiler options.
6019 * testsuite/libgomp.c++/collapse-1.C: New test.
6020 * testsuite/libgomp.c++/collapse-2.C: New test.
6021 * testsuite/libgomp.c++/ctor-10.C: New test.
6022 * testsuite/libgomp.c++/for-1.C: New test.
6023 * testsuite/libgomp.c++/for-2.C: New test.
6024 * testsuite/libgomp.c++/for-3.C: New test.
6025 * testsuite/libgomp.c++/for-4.C: New test.
6026 * testsuite/libgomp.c++/for-5.C: New test.
6027 * testsuite/libgomp.c++/loop-8.C: New test.
6028 * testsuite/libgomp.c++/loop-9.C: New test.
6029 * testsuite/libgomp.c++/loop-10.C: New test.
6030 * testsuite/libgomp.c++/task-1.C: New test.
6031 * testsuite/libgomp.c++/task-2.C: New test.
6032 * testsuite/libgomp.c++/task-3.C: New test.
6033 * testsuite/libgomp.c++/task-4.C: New test.
6034 * testsuite/libgomp.c++/task-5.C: New test.
6035 * testsuite/libgomp.c++/task-6.C: New test.
6036 * testsuite/libgomp.fortran/allocatable1.f90: New test.
6037 * testsuite/libgomp.fortran/allocatable2.f90: New test.
6038 * testsuite/libgomp.fortran/allocatable3.f90: New test.
6039 * testsuite/libgomp.fortran/allocatable4.f90: New test.
6040 * testsuite/libgomp.fortran/collapse1.f90: New test.
6041 * testsuite/libgomp.fortran/collapse2.f90: New test.
6042 * testsuite/libgomp.fortran/collapse3.f90: New test.
6043 * testsuite/libgomp.fortran/collapse4.f90: New test.
6044 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
6045 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
6046 * testsuite/libgomp.fortran/lib4.f90: New test.
6047 * testsuite/libgomp.fortran/lock-1.f90: New test.
6048 * testsuite/libgomp.fortran/lock-2.f90: New test.
6049 * testsuite/libgomp.fortran/nested1.f90: New test.
6050 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
6051 * testsuite/libgomp.fortran/strassen.f90: New test.
6052 * testsuite/libgomp.fortran/tabs1.f90: New test.
6053 * testsuite/libgomp.fortran/tabs2.f: New test.
6054 * testsuite/libgomp.fortran/task1.f90: New test.
6055 * testsuite/libgomp.fortran/task2.f90: New test.
6056 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
6057 * testsuite/libgomp.fortran/vla5.f90: Likewise.
6058 * testsuite/libgomp.c/pr26943-2.c: Likewise.
6059 * testsuite/libgomp.c/pr26943-3.c: Likewise.
6060 * testsuite/libgomp.c/pr26943-4.c: Likewise.
6062 2008-05-23 Jakub Jelinek <jakub@redhat.com>
6065 * testsuite/libgomp.c++/ctor-11.C: New test.
6066 * testsuite/libgomp.c++/ctor-12.C: New test.
6068 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6070 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
6072 2008-05-07 Jakub Jelinek <jakub@redhat.com>
6075 * testsuite/libgomp.c/atomic-5.c: New test.
6076 * testsuite/libgomp.c/atomic-6.c: New test.
6077 * testsuite/libgomp.c/autopar-1.c: New test.
6079 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6081 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
6082 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
6083 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
6084 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
6085 * configure: Regenerate.
6086 * Makefile.in, testsuite/Makefile.in: Likewise.
6088 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
6091 * aclocal.m4: Regenerate.
6092 * configure: Regenerate.
6094 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6097 * testsuite/libgomp.c/atomic-4.c: New test.
6100 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
6101 (gomp_iter_guided_next): Likewise.
6102 * testsuite/libgomp.c/pr35625.c: New test.
6104 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6106 * aclocal.m4: Regenerate.
6107 * configure: Likewise.
6108 * Makefile.in: Likewise.
6109 * testsuite/Makefile.in: Likewise.
6111 2008-03-13 Jakub Jelinek <jakub@redhat.com>
6114 * testsuite/libgomp.c++/pr35185.C: New test.
6116 2008-03-12 Jakub Jelinek <jakub@redhat.com>
6119 * testsuite/libgomp.c/pr35549.c: New test.
6121 2008-03-06 Jakub Jelinek <jakub@redhat.com>
6123 * testsuite/libgomp.c/atomic-3.c: New test.
6125 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6128 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
6131 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
6134 * configure.ac: Add ACX_HEADER_STRING.
6135 * env.c: Include strings.h.
6136 * aclocal.m4: Regenerate.
6137 * config.h.in: Regenerate.
6138 * configure: Regenerate.
6139 * Makefile.in: Regenerate.
6140 * testsuite/Makefile.in: Regenerate.
6142 2008-02-15 Jakub Jelinek <jakub@redhat.com>
6145 * testsuite/libgomp.c/pr35196.c: New test.
6148 * testsuite/libgomp.fortran/pr35130.f90: New test.
6149 * testsuite/libgomp.c/pr35130.c: New test.
6151 2008-01-25 Jakub Jelinek <jakub@redhat.com>
6154 * testsuite/libgomp.c/pr33880.c: New test.
6155 * testsuite/libgomp.fortran/pr33880.f90: New test.
6157 2008-01-24 David Edelsohn <edelsohn@gnu.org>
6159 * configure: Regenerate.
6161 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6163 * configure.ac: Move futex checking into ../config/futex.m4.
6164 * configure: Rebuilt.
6165 * aclocal.m4: Rebuilt.
6166 * Makefile.in: Rebuilt.
6168 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
6169 2007-10-15 ../config/tls.m4 change.
6171 2007-12-19 Jakub Jelinek <jakub@redhat.com>
6174 * testsuite/libgomp.c/pr34513.c: New test.
6175 * testsuite/libgomp.c++/pr34513.C: New test.
6177 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
6180 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
6182 2007-12-04 Jakub Jelinek <jakub@redhat.com>
6184 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
6186 2007-12-03 Jakub Jelinek <jakub@redhat.com>
6188 * testsuite/libgomp.c/private-1.c: New test.
6190 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
6191 Paolo Bonzini <bonzini@gnu.org>
6193 * Makefile.am: Use space as vpath separator. Use 'vpath %'
6194 instead of 'VPATH ='.
6195 * Makefile.in: Regenerate.
6197 2007-11-23 Matthias Klose <doko@ubuntu.com>
6199 * configure.ac: Adjust makeinfo version check.
6200 * configure: Regenerate.
6202 2007-11-10 Jakub Jelinek <jakub@redhat.com>
6205 * testsuite/libgomp.fortran/pr34020.f90: New test.
6207 2007-11-06 Jakub Jelinek <jakub@redhat.com>
6210 * testsuite/libgomp.c++/atomic-1.C: New test.
6212 2007-10-25 Jakub Jelinek <jakub@redhat.com>
6215 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
6216 Make x and y integers rather than (implicit) reals. Add private (j)
6217 clause to the last omp parallel.
6219 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
6221 * configure: Regenerate following changes to ../config/tls.m4.
6223 2007-09-28 Jakub Jelinek <jakub@redhat.com>
6225 * testsuite/libgomp.fortran/stack.f90: New test.
6227 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
6229 * config/mingw32/proc.c: New file.
6231 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
6233 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
6234 (main): Use __get_cpuid to get i386 target fetaures.
6235 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
6236 (main): Use __get_cpuid to get x86_64 target fetaures.
6238 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
6241 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
6242 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
6244 2007-07-12 Jakub Jelinek <jakub@redhat.com>
6247 * testsuite/libgomp.fortran/pr32550.f90: New test.
6248 * testsuite/libgomp.fortran/crayptr2.f90: New test.
6250 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
6252 * aclocal.m4: Regenerated.
6254 2007-07-05 Tobias Burnus <burnus@net-b.de>
6257 * testsuite/libgomp.fortran/pr32359.f90: New.
6259 2007-07-02 Jakub Jelinek <jakub@redhat.com>
6262 * sections.c (GOMP_parallel_sections_start): Only decrease
6263 number of threads to COUNT if dyn_var is true.
6264 * testsuite/libgomp.c/pr32468.c: New test.
6266 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6269 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
6271 2007-06-21 Jakub Jelinek <jakub@redhat.com>
6274 * testsuite/libgomp.c/pr32362-1.c: New test.
6275 * testsuite/libgomp.c/pr32362-2.c: New test.
6276 * testsuite/libgomp.c/pr32362-3.c: New test.
6278 2007-06-07 Jakub Jelinek <jakub@redhat.com>
6280 * team.c (gomp_team_start): Fix setting up thread_attr
6283 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
6285 * configure: Regenerate.
6287 2007-05-23 Steve Ellcey <sje@cup.hp.com>
6289 * Makefile.in: Regenerate.
6290 * configure: Regenerate.
6291 * aclocal.m4: Regenerate.
6292 * testsuite/Makefile.in: Regenerate.
6294 2007-05-04 Jakub Jelinek <jakub@redhat.com>
6296 * config/linux/proc.c: New file.
6299 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
6301 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
6303 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
6305 2007-04-16 Matthias Klose <doko@debian.org>
6307 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
6308 flags if not building with -m64.
6309 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
6310 flag for i?86-*-* targets, if current target matches -m64.
6312 2007-04-14 Steve Ellcey <sje@cup.hp.com>
6314 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
6315 * Makefile.in: Regenerate.
6317 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6320 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
6322 * testsuite/libgomp.fortran/fortran.exp: Likewise.
6324 2007-04-04 Jakub Jelinek <jakub@redhat.com>
6326 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
6328 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
6329 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
6330 (parse_affinity): New function.
6331 (initialize_env): Call it and gomp_init_affinity.
6332 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
6333 create new pthread_attr_t and call gomp_init_thread_affinity
6334 on it for each thread before passing the attribute to pthread_create.
6335 * config/linux/affinity.c: New file.
6336 * config/posix/affinity.c: New file.
6337 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
6338 * configure: Rebuilt.
6339 * config.h.in: Rebuilt.
6340 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
6341 * Makefile.in: Rebuilt.
6343 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
6345 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
6347 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
6348 and use it if found.
6350 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
6352 * testsuite/config/default.exp: New file.
6353 * testsuite/lib/libgomp.exp: New file.
6354 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
6355 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
6356 load_lib *, load_gcc_lib *): Move to libgomp.exp.
6357 (libgomp_load): Remove.
6358 * testsuite/lib/libgomp.exp (libgomp_init): Compute
6359 always_ld_library_path, not ld_library_path. Set additional_flags
6360 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
6361 (target_compile): Do not call libgomp_init. Append lang_library_path
6362 and lang_link_flags to options.
6363 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
6364 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
6366 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
6367 always_ld_library_path. Set LD_LIBRARY_PATH here.
6368 * testsuite/libgomp.fortran/fortran.exp: Ditto.
6369 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
6370 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
6372 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
6373 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
6374 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
6375 * testsuite/libgomp.c/pr29947-1.c: Ditto.
6376 * testsuite/libgomp.c/atomic-10.c: Ditto.
6378 2007-03-21 Jakub Jelinek <jakub@redhat.com>
6380 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
6381 dg-final cleanup-modules line.
6382 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
6383 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
6384 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
6385 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
6386 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
6387 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
6388 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
6390 2007-03-18 Andreas Schwab <schwab@suse.de>
6392 * acinclude.m4: Adjust regular expression for ld version
6394 * configure: Regenerate.
6396 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
6398 * Makefile.am: Add install-pdf target as copied from
6399 automake v1.10 rules.
6400 * Makefile.in: Regenerate
6402 2007-02-07 Jakub Jelinek <jakub@redhat.com>
6405 * configure: Regenerate.
6408 * testsuite/libgomp.c++/pr30703.C: New test.
6410 2007-02-02 Jakub Jelinek <jakub@redhat.com>
6413 2006-07-05 Eric Christopher <echristo@apple.com>
6414 * configure.ac: Depend addition of -pthread on host OS.
6415 * configure: Regenerate.
6417 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6419 * libgomp.texi: Fix spacing after abbreviations.
6421 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
6424 * configure.ac: Add check for makeinfo
6425 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
6426 if an appropiate version of makeinfo is found.
6427 * aclocal.m4: Regenerated.
6428 * configure: Regenerated.
6429 * Makefile.in: Regenerated.
6430 * testsuite/Makefile.in: Regenerated.
6432 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
6435 * libgomp.texi: More about implementation-dependent settings.
6437 2007-01-26 Tobias Burnus <burnus@net-b.de>
6439 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
6441 2007-01-24 Jakub Jelinek <jakub@redhat.com>
6444 * testsuite/libgomp.c/pr30494.c: New test.
6446 2007-01-15 Tom Tromey <tromey@redhat.com>
6448 * configure: Rebuilt.
6449 * configure.ac: Fixed comment.
6451 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
6453 * libgomp.texi: Document implementation specific default values of
6454 environment variables.
6456 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
6459 * libgomp.texi: New file.
6460 * configure.ac: Add --enable-generated-files-in-srcdir option.
6461 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
6463 * Makefile.in: Regenerated.
6464 * config.h.in: Regenerated.
6465 * testsuite/Makefile.in: Regenerated.
6468 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
6471 * env.c (omp_set_num_threads): Set illegal thread count to 1.
6473 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6475 * configure: Regenerate.
6477 2006-12-04 Jakub Jelinek <jakub@redhat.com>
6480 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
6481 start if there shouldn't be any loop iterations.
6482 (gomp_loop_ordered_static_start): Remove start == end test.
6483 * testsuite/libgomp.c/pr29947-1.c: New test.
6484 * testsuite/libgomp.c/pr29947-2.c: New test.
6486 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
6488 * configure.tgt: Force initial-exec TLS model on Linux only.
6490 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
6492 * configure: Regenerated.
6494 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
6496 * env.c (parse_schedule): Reject out of range values.
6497 (parse_unsigned_long): Reject out of range, negative or zero values.
6499 2006-10-29 Jakub Jelinek <jakub@redhat.com>
6502 * testsuite/libgomp.fortran/pr29629.f90: New test.
6504 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
6507 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
6508 * config/posix95: New directory.
6509 * config/posix95/omp-lock.h: New file.
6510 * config/posix95/lock.c: Likewise.
6512 2006-10-14 Geoffrey Keating <geoffk@apple.com>
6514 * aclocal.m4: Regenerate.
6515 * configure: Regenerate.
6517 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6519 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
6522 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6524 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
6526 * configure: Regenerate.
6527 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
6529 2006-09-26 Jakub Jelinek <jakub@redhat.com>
6533 * testsuite/libgomp.c/nestedfn-4.c: New test.
6534 * testsuite/libgomp.c/nestedfn-5.c: New test.
6535 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
6538 * testsuite/libgomp.fortran/condinc1.f: New test.
6539 * testsuite/libgomp.fortran/condinc2.f: New test.
6540 * testsuite/libgomp.fortran/condinc3.f90: New test.
6541 * testsuite/libgomp.fortran/condinc4.f90: New test.
6542 * testsuite/libgomp.fortran/condinc1.inc: New file.
6544 2006-09-18 Tom Tromey <tromey@redhat.com>
6546 * configure: Rebuilt.
6548 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
6551 PR preprocessor/14634
6552 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
6554 * configure: Regenerate.
6556 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
6558 * testsuite/libgomp.fortran/reduction3.f90: Change
6559 -2147483648 to -huge(i)-1 to avoid overflow.
6560 * testsuite/libgomp.fortran/reduction4.f90: Change
6561 Z'ffffffff' to not(0) to avoid overflow.
6563 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
6566 * Makefile.am (libsubincludedir): New.
6567 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
6568 * Makefile.in: Regenerate.
6570 2006-08-17 Jakub Jelinek <jakub@redhat.com>
6573 * env.c: Include ctype.h.
6574 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
6575 leading and/or trailing whitespace and compare strings case
6578 2006-07-16 Jakub Jelinek <jakub@redhat.com>
6581 * testsuite/libgomp.fortran/pr28390.f: New test.
6583 2006-07-05 Eric Christopher <echristo@apple.com>
6585 * configure.ac: Depend addition of -pthread on host OS.
6586 * configure: Regenerate.
6588 2006-06-21 Jakub Jelinek <jakub@redhat.com>
6590 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
6591 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
6594 2006-06-20 Jakub Jelinek <jakub@redhat.com>
6598 * configure.ac: If neither --enable-linux-futex nor
6599 --disable-linux-futex is passed, determine the default by checking
6600 for compiling and/or running against NPTL. With --enable-linux-futex,
6601 check if SYS_gettid and SYS_futex are defined.
6602 * configure: Rebuilt.
6604 2006-06-14 Richard Henderson <rth@redhat.com>
6607 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
6608 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
6610 2006-06-09 Richard Henderson <rth@redhat.com>
6612 * env.c (gomp_nthreads_var): Change to unsigned long.
6613 (gomp_run_sched_chunk): Likewise.
6614 (parse_unsigned_long): Rename from parse_num_threads and generalize.
6615 (initialize_env): Initialize gomp_thread_attr.
6616 * libgomp.h (gomp_nthreads_var): Update decl.
6617 (gomp_run_sched_chunk): Likewise.
6618 (gomp_thread_attr): Declare.
6619 * team.c (gomp_thread_attr): Export.
6620 (initialize_team): Don't initialize it.
6622 2006-06-09 Jakub Jelinek <jakub@redhat.com>
6625 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
6626 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
6628 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6630 * config/mingw32/time.c: New file.
6631 * configure.tgt: Use it.
6633 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
6635 * Makefile.am: Add install-html target. Add install-html to .PHONY
6636 * Makefile.in: Regenerate.
6638 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6641 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
6642 * testsuite/libgomp.c/critical-1.c: Likewise.
6643 * testsuite/libgomp.c/loop-1.c: Likewise.
6644 * testsuite/libgomp.c/loop-2.c: Likewise.
6645 * testsuite/libgomp.c/single-1.c: Likewise.
6646 * testsuite/libgomp.c/ordered-1.c: Likewise.
6647 * testsuite/libgomp.c/ordered-2.c: Likewise.
6649 2006-05-15 Jakub Jelinek <jakub@redhat.com>
6652 * libgomp.fortran/pr27416-1.f90: New test.
6654 2006-05-03 Jakub Jelinek <jakub@redhat.com>
6657 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
6658 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
6660 2006-05-02 Jakub Jelinek <jakub@redhat.com>
6663 * testsuite/libgomp.c/pr26943-1.c: New test.
6664 * testsuite/libgomp.c/pr26943-2.c: New test.
6665 * testsuite/libgomp.c/pr26943-3.c: New test.
6666 * testsuite/libgomp.c/pr26943-4.c: New test.
6667 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
6668 * testsuite/libgomp.c++/pr26943.C: New test.
6670 2006-05-02 Jakub Jelinek <jakub@redhat.com>
6673 * testsuite/libgomp.c++/pr27337.C: New test.
6675 2006-04-26 Jakub Jelinek <jakub@redhat.com>
6678 * testsuite/libgomp.c/pr26171.c: New test.
6680 2006-04-25 Richard Henderson <rth@redhat.com>
6683 * configure.ac: Use GCC_CHECK_TLS.
6684 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
6685 * Makefile.in, aclocal.m4, configure: Regenerate.
6687 2006-04-10 Matthias Klose <doko@debian.org>
6689 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
6690 directory names containing underscores.
6692 2006-03-21 Jakub Jelinek <jakub@redhat.com>
6695 * testsuite/libgomp.c++/pr26691.C: New test.
6697 2006-03-13 Jakub Jelinek <jakub@redhat.com>
6699 * testsuite/libgomp.fortran/retval2.f90: New test.
6701 2006-03-09 Diego Novillo <dnovillo@redhat.com>
6703 * testsuite/libgomp.c++: New directory.
6705 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
6707 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
6708 * config/posix/sem.c: Implement the above.
6710 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
6712 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
6713 define HAVE_BROKEN_POSIX_SEMAPHORES.
6714 * configure: Rebuilt.
6715 * config.h.in: Rebuilt.
6717 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6720 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
6721 for the other pthread check.
6722 * configure: Regenerate.
6723 * config.h.in: Regenerate.
6725 2006-02-15 Jakub Jelinek <jakub@redhat.com>
6729 * Makefile.am (fincludedir): New variable.
6730 (nodist_include_HEADERS): Remove Fortran files.
6731 (nodist_finclude_HEADERS): New variable.
6732 * Makefile.in: Regenerated.
6734 2006-02-13 Jakub Jelinek <jakub@redhat.com>
6736 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
6737 Remove tests for returning assumed character length arrays.
6739 2006-02-12 Roger Sayle <roger@eyesopen.com>
6740 John David Anglin <dave@hiauly1.hia.nrc.ca>
6743 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
6745 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6747 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
6749 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6751 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
6752 part of LD_LIBRARY_PATH manually.
6754 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
6757 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
6760 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
6763 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
6764 * configure.ac (PERL): Don't set.
6765 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
6766 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
6767 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
6768 * omp.h.in: Wrap the new configure substitutions with @ characters.
6769 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
6770 * aclocal.m4, configure, Makefile.in: Regenerate.
6771 * mkomp_h.pl: Delete.
6773 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
6776 * configure.ac: Use GCC_HEADER_STDINT.
6777 * libgomp.h: Include gstdint.h.
6778 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
6779 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
6781 2006-01-24 Richard Henderson <rth@redhat.com>
6784 * configure.ac: Add AM_MAINTAINER_MODE.
6785 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
6787 2006-01-24 Diego Novillo <dnovillo@redhat.com>
6789 * Makefile.in: Regenerate.
6790 * testsuite/Makefile.in: Regenerate.
6791 * aclocal.m4: Regenerate.
6793 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
6795 * config/posix/proc.c: Conditional include of sys/loadavg.h for
6797 * configure.ac: Add check for loadavg.h.
6798 (link_gomp): Adjust comment.
6799 * configure: Regenerate.
6800 * config.h.in: Regenerate.
6802 2006-01-21 Steve Ellcey <sje@cup.hp.com>
6805 * configure.ac: Remove check for alloca.h.
6806 * configure: Regenerate.
6807 * config.h.in: Regenerate.
6808 * libgomp.h: define gomp_alloca to be __builtin_alloca.
6809 * team.c: Remove use of alloca.h.
6810 Call gomp_alloca instead of alloca.
6812 2006-01-20 Steve Ellcey <sje@cup.hp.com>
6815 * team.c: Add include of alloca.h.
6816 * configure.ac: Add check for alloca.h.
6817 * configure: Regenerate.
6818 * config.h.in: Regenerate.
6820 2006-01-17 Jakub Jelinek <jakub@redhat.com>
6823 * testsuite/libgomp.fortran/pr25219.f90: New test.
6825 2005-12-05 Uros Bizjak <uros@kss-loka.si>
6827 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
6828 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
6829 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
6830 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
6831 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
6832 testsuite/libgomp.fortran/threadprivate1.f90,
6833 testsuite/libgomp.fortran/threadprivate2.f90,
6834 testsuite/libgomp.fortran/threadprivate3.f90,
6835 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6836 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6837 testsuite/libgomp.fortran/omp_parse3.f90: Change required
6838 effective-target to TLS runtime.
6840 * testsuite/libgomp.fortran/pr25162.f: Require
6841 effective-target TLS runtime.
6843 2005-12-01 Jakub Jelinek <jakub@redhat.com>
6845 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
6846 * testsuite/libgomp.c/nestedfn-3.c: New test.
6848 2005-11-30 Jakub Jelinek <jakub@redhat.com>
6851 * testsuite/libgomp.fortran/pr25162.f: New test.
6853 2005-11-28 Jakub Jelinek <jakub@redhat.com>
6855 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
6856 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
6858 2005-11-25 Jakub Jelinek <jakub@redhat.com>
6860 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
6861 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
6862 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
6863 single.c, team.c, work.c, config/linux/alpha/futex.h,
6864 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
6865 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
6866 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
6867 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
6868 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
6869 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
6870 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
6873 2005-11-18 Jakub Jelinek <jakub@redhat.com>
6875 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
6876 to nodist_noinst_HEADERS.
6877 * Makefile.in: Rebuilt.
6879 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
6880 add integer count field.
6881 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
6882 omp_nest_lock_t type change.
6883 (omp_init_nest_lock): Likewise. Initialize count to 0.
6884 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
6886 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
6888 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
6889 Increment count if successful and return the new nesting level.
6890 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
6891 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
6892 * testsuite/libgomp.c/lib-1.c: New test.
6893 * testsuite/libgomp.fortran/lib1.f90: New test.
6894 * testsuite/libgomp.fortran/lib2.f: New test.
6895 * testsuite/libgomp.fortran/lib3.f: New test.
6897 2005-11-17 Richard Henderson <rth@redhat.com>
6900 * Makefile.am (nodist_toolexeclib_HEADERS): New.
6901 * configure.ac (link_gomp): New. Substitute it.
6902 (AC_CONFIG_FILES): Add libgomp.spec.
6903 * libgomp.spec.in: New file.
6904 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
6905 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
6907 2005-11-18 Jakub Jelinek <jakub@redhat.com>
6909 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
6910 reduction(-:var) behaving the same as reduction(+:var).
6911 * testsuite/libgomp.c/reduction-4.c: New test.
6913 2005-11-15 Uros Bizjak <uros@kss-loka.si>
6915 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
6916 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
6917 testsuite/libgomp.c/copyin-3.c,
6918 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
6919 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
6920 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
6921 testsuite/libgomp.c++/pr24455.C,
6922 testsuite/libgomp.fortran/threadprivate1.f90,
6923 testsuite/libgomp.fortran/threadprivate2.f90,
6924 testsuite/libgomp.fortran/threadprivate3.f90,
6925 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6926 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6927 testsuite/libgomp.fortran/omp_parse3.f90: Require
6928 effective-target TLS.
6930 2005-11-14 Diego Novillo <dnovillo@redhat.com>
6934 2005-11-13 Jakub Jelinek <jakub@redhat.com>
6937 * team.c (initialize_team): Pass NULL rather than free as
6938 pthread_key_create destructor. Initialize thread specific data
6939 pointer in initial thread to a static local variable rather than
6942 2005-11-11 Uros Bizjak <uros@kss-loka.si>
6944 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
6945 its location to ld_library_path.
6947 2005-11-10 Diego Novillo <dnovillo@redhat.com>
6949 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
6951 2005-11-10 Diego Novillo <dnovillo@redhat.com>
6953 * testsuite/libgomp.c: Rename from libgomp.dg.
6955 2005-11-09 Diego Novillo <dnovillo@redhat.com>
6957 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
6958 threadprivate variable 'i'.
6960 2005-11-09 Jakub Jelinek <jakub@redhat.com>
6962 * config/linux/s390/futex.h: New file.
6963 * configure.tgt: Use it.
6965 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
6966 before the parallel.
6968 2005-11-08 Jakub Jelinek <jakub@redhat.com>
6971 * testsuite/libgomp.c++/master-1.C: New test.
6973 2005-11-07 Jakub Jelinek <jakub@redhat.com>
6975 * testsuite/libgomp.dg/copyin-3.c: New test.
6977 2005-11-07 Jakub Jelinek <jakub@redhat.com>
6979 * testsuite/libgomp.fortran/retval1.f90: New test.
6980 * testsuite/libgomp.fortran/vla7.f90: New test.
6982 2005-11-06 Jakub Jelinek <jakub@redhat.com>
6984 * testsuite/libgomp.fortran/vla2.f90: New test.
6985 * testsuite/libgomp.fortran/vla3.f90: New test.
6986 * testsuite/libgomp.fortran/vla4.f90: New test.
6987 * testsuite/libgomp.fortran/vla5.f90: New test.
6988 * testsuite/libgomp.fortran/vla6.f90: New test.
6990 2005-11-01 Jakub Jelinek <jakub@redhat.com>
6992 * config/linux/sparc/futex.h: New file.
6993 * configure.tgt: Use it.
6994 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
6996 * critical.c: Include stdlib.h.
6997 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
6998 ignoring return value.
6999 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
7000 LIBGOMP_CHECK_SYNC_BUILTINS check.
7001 * configure: Rebuilt.
7003 2005-10-31 Jakub Jelinek <jakub@redhat.com>
7005 * testsuite/libgomp.fortran/vla1.f90: New test.
7007 2005-10-31 Richard Henderson <rth@redhat.com>
7009 * testsuite/libgomp.fortran/character2.f90: Fix race condition
7010 setting 's' in different threads.
7012 2005-10-31 Jakub Jelinek <jakub@redhat.com>
7014 * libgomp.h (attribute_hidden, ialias): Define.
7015 * config/posix/proc.c (omp_get_num_procs): Add ialias.
7016 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
7017 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
7018 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
7019 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
7020 omp_test_lock, omp_test_nest_lock): Likewise.
7021 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
7022 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
7023 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
7024 omp_test_lock, omp_test_nest_lock): Likewise.
7025 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
7026 omp_get_dynamic, omp_get_nested): Likewise.
7027 * parallel.c (omp_get_num_threads, omp_get_max_threads,
7028 omp_get_thread_num, omp_in_parallel): Likewise.
7029 * fortran.c (ialias_redirect): Define.
7030 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
7031 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
7032 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
7033 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
7034 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
7035 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
7036 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
7037 omp_get_wtime): Add ialias_redirect.
7039 2005-10-30 Jakub Jelinek <jakub@redhat.com>
7041 * fortran.c: Include stdlib.h.
7043 2005-10-29 Jakub Jelinek <jakub@redhat.com>
7045 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
7046 * Makefile.in: Regenerated.
7048 2005-10-28 Jakub Jelinek <jakub@redhat.com>
7050 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
7051 * libgomp_f.h.in (omp_check_defines): New function.
7052 * env.c: Include libgomp_f.h.
7053 (initialize_env): Call omp_check_defines.
7055 * testsuite/libgomp.dg/copyin-2.c: New test.
7056 * testsuite/libgomp.c++/copyin-2.C: New test.
7057 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
7059 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
7060 * testsuite/libgomp.fortran/sharing2.f90: New test.
7062 * testsuite/libgomp.dg/copyin-1.c: New test.
7063 * testsuite/libgomp.c++/copyin-1.C: New test.
7065 2005-10-26 Jakub Jelinek <jakub@redhat.com>
7067 * testsuite/libgomp.fortran/crayptr1.f90: New test.
7069 * testsuite/libgomp.fortran/workshare1.f90: New test.
7071 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
7073 * libgomp.fortran/sharing1.f90: New test.
7075 2005-10-24 Jakub Jelinek <jakub@redhat.com>
7078 * testsuite/libgomp.c++/loop-7.C: New test.
7080 * testsuite/libgomp.dg/nestedfn-2.c: New test.
7082 * testsuite/libgomp.dg/nestedfn-1.c: New test.
7083 * testsuite/libgomp.fortran/reduction6.f90: New test.
7084 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
7086 2005-10-23 Richard Henderson <rth@redhat.com>
7088 * testsuite/libgomp.c++/ctor-1.C: New.
7089 * testsuite/libgomp.c++/ctor-2.C: New.
7090 * testsuite/libgomp.c++/ctor-3.C: New.
7091 * testsuite/libgomp.c++/ctor-4.C: New.
7092 * testsuite/libgomp.c++/ctor-5.C: New.
7093 * testsuite/libgomp.c++/ctor-6.C: New.
7094 * testsuite/libgomp.c++/ctor-7.C: New.
7095 * testsuite/libgomp.c++/ctor-8.C: New.
7096 * testsuite/libgomp.c++/ctor-9.C: New.
7098 2005-10-21 Diego Novillo <dnovillo@redhat.com>
7101 * testsuite/libgomp.c++/pr24455-1.C: New test.
7102 * testsuite/libgomp.c++/pr24455.C: New test.
7103 * testsuite/libgomp.dg/pr24455-1.c: New test.
7104 * testsuite/libgomp.dg/pr24455.c: New test.
7106 2005-10-20 Richard Henderson <rth@redhat.com>
7108 * testsuite/libgomp.c++/loop-6.C: New.
7109 * testsuite/libgomp.dg/loop-3.c: New.
7111 2005-10-20 Jakub Jelinek <jakub@redhat.com>
7113 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
7115 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
7118 2005-10-19 Diego Novillo <dnovillo@redhat.com>
7120 * testsuite/libgomp.fortran/jacobi.f: New test.
7122 2005-10-19 Richard Henderson <rth@redhat.com>
7124 * configure.tgt (i?86-linux): Default to with_arch instead of
7125 CFLAGS. Add -mtune to match target_cpu.
7126 (x86_64-linux): Tune to i686.
7128 * fortran.c (omp_test_nest_lock_): Fix typo.
7130 2005-10-19 Jakub Jelinek <jakub@redhat.com>
7132 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
7133 gomp_ordered_sync): Do nothing if team->nthreads == 1.
7134 * testsuite/libgomp.dg/ordered-3.c: New test.
7136 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
7137 Remove volatile keyword.
7139 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
7140 in COMMON block to avoid warnings on 64-bit targets.
7142 2005-10-18 Diego Novillo <dnovillo@redhat.com>
7144 * testsuite/libgomp.dg/shared-3.c: New test.
7146 2005-10-18 Jakub Jelinek <jakub@redhat.com>
7148 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
7149 * testsuite/libgomp.fortran/reduction5.f90: New test.
7151 2005-10-18 Jakub Jelinek <jakub@redhat.com>
7153 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
7155 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
7156 flush loop now that __sync_synchronize has proper memory barrier.
7157 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
7158 Add -ffixed-form to dg-options.
7160 2005-10-17 Diego Novillo <dnovillo@redhat.com>
7162 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
7163 from subdirectories.
7164 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
7165 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
7166 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
7167 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
7168 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
7169 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
7170 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
7171 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
7172 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
7173 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
7174 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
7175 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
7176 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
7177 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
7178 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
7179 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
7180 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
7181 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
7182 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
7183 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
7184 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
7185 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
7186 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
7187 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
7188 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
7190 2005-10-17 Jakub Jelinek <jakub@redhat.com>
7192 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
7193 lang_library_path exists. Use find instead of glob to gather tests.
7194 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
7196 2005-10-17 Diego Novillo <dnovillo@redhat.com>
7198 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
7199 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
7200 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
7201 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
7202 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
7203 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
7204 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
7205 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
7206 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
7207 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
7208 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
7209 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
7210 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
7212 2005-10-15 Jakub Jelinek <jakub@redhat.com>
7214 * testsuite/libgomp.dg/vla-1.c: New test.
7216 * testsuite/libgomp.fortran/reference2.f90: New test.
7218 * testsuite/libgomp.fortran/character2.f90: Remove explicit
7219 declaration of omp_get_thread_num.
7220 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
7223 * testsuite/libgomp.fortran/reduction1.f90: New test.
7224 * testsuite/libgomp.fortran/reduction2.f90: New test.
7225 * testsuite/libgomp.fortran/reduction3.f90: New test.
7226 * testsuite/libgomp.fortran/reduction4.f90: New test.
7228 2005-10-13 Richard Henderson <rth@redhat.com>
7230 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
7231 * Makefile.in: Regenerate.
7232 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
7233 * libgomp.h: Include bar.h.
7234 (struct gomp_barrier): Remove.
7235 (struct gomp_team): Add barrier. Replace master_barrier with
7236 master_release. Replace threads with ordered_release.
7237 (struct gomp_thread): Replace barrier with release.
7238 * ordered.c (gomp_ordered_first): Update for ordered_release change.
7239 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
7240 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
7241 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
7242 (GOMP_single_copy_end): Likewise.
7243 * team.c (gomp_threads_dock): New.
7244 (gomp_barrier_init, gomp_barrier_destroy): Remove.
7245 (gomp_thread_start): Use gomp_barrier_wait.
7246 (new_team, free_team): Update for gomp_team changes.
7247 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
7248 (gomp_team_end): Use gomp_barrier_wait.
7249 (initialize_team): Update for gomp_thread changes.
7250 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
7251 (gomp_work_share_end_nowait): Use atomic ops when available.
7252 * config/linux/bar.c, config/linux/bar.h: New files.
7253 * config/posix/bar.c, config/posix/bar.h: New files.
7255 2005-10-13 Jakub Jelinek <jakub@redhat.com>
7257 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
7258 * testsuite/libgomp.dg/single-2.c: New test.
7260 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
7261 lang_link_flags): Unset, so that they aren't inherited from previously
7264 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
7266 2005-10-12 Richard Henderson <rth@redhat.com>
7268 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
7269 (libgomp_init): Use lang_test_file, lang_library_path, and
7270 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
7272 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
7273 (lang_test_file, lang_link_flags): New.
7274 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
7276 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
7277 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
7278 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
7279 testsuite/libgomp.c++/parallel-1.C,
7280 testsuite/libgomp.c++/reduction-1.C,
7281 testsuite/libgomp.c++/reduction-2.C,
7282 testsuite/libgomp.c++/reduction-3.C,
7283 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
7284 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
7285 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
7286 New files, largely cribbed from the C testsuite.
7288 2005-10-12 Jakub Jelinek <jakub@redhat.com>
7290 * testsuite/libgomp.fortran/character1.f90: New test.
7291 * testsuite/libgomp.fortran/character2.f90: New test.
7293 * testsuite/libgomp.dg/nested-1.c: New test.
7294 * testsuite/libgomp.dg/nested-2.c: New test.
7295 * testsuite/libgomp.fortran/do1.f90: New test.
7296 * testsuite/libgomp.fortran/do2.f90: New test.
7298 * testsuite/libgomp.fortran/reference1.f90: New test.
7300 2005-10-11 Jakub Jelinek <jakub@redhat.com>
7302 * testsuite/libgomp.dg/reduction-1.c: New test.
7303 * testsuite/libgomp.dg/reduction-2.c: New test.
7304 * testsuite/libgomp.dg/reduction-3.c: New test.
7306 2005-10-10 Jakub Jelinek <jakub@redhat.com>
7308 * testsuite/libgomp.dg/atomic-1.c: New test.
7309 * testsuite/libgomp.dg/atomic-2.c: New test.
7311 2005-10-09 Richard Henderson <rth@redhat.com>
7313 * critical.c (atomic_lock): New.
7314 (initialize_critical): Initialize it.
7315 (GOMP_atomic_start, GOMP_atomic_end): New.
7316 * libgomp.map: Export them.
7317 * libgomp_g.h: Declare them.
7319 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
7321 2005-10-02 Richard Henderson <rth@redhat.com>
7323 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
7324 to XCFLAGS instead of CFLAGS.
7326 2005-09-30 Richard Henderson <rth@redhat.com>
7328 * configure.ac: Determine whether -pthread or -lpthread is needed.
7329 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
7330 * Makefine.in, configure: Rebuild.
7332 2005-09-28 Richard Henderson <rth@redhat.com>
7334 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
7335 * testsuite/libgomp.dg/omp-single-3.c: New test.
7337 2005-09-28 Diego Novillo <dnovillo@redhat.com>
7339 * testsuite/libgomp.dg/omp-single-2.c: New test.
7340 * testsuite/libgomp.dg/shared-2.c: Fix return code.
7342 2005-09-27 Richard Henderson <rth@redhat.com>
7344 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
7345 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
7347 2005-09-27 Jakub Jelinek <jakub@redhat.com>
7349 * testsuite/libgomp.dg/omp-loop03.c: New test.
7351 2005-09-27 Diego Novillo <dnovillo@redhat.com>
7353 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
7355 2005-09-27 Diego Novillo <dnovillo@redhat.com>
7357 * testsuite/libgomp.dg/omp-single-1.c: New test.
7358 * testsuite/libgomp.dg/shared-1.c: Return 0.
7359 Add prototype for abort.
7360 * testsuite/libgomp.dg/shared-2.c: Likewise.
7362 2005-09-26 Jakub Jelinek <jakub@redhat.com>
7364 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
7367 2005-09-26 Diego Novillo <dnovillo@redhat.com>
7369 * testsuite/libgomp.dg/shared-1.c: New test.
7370 * testsuite/libgomp.dg/shared-2.c: New test.
7372 2005-09-24 Richard Henderson <rth@redhat.com>
7374 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
7376 2005-09-24 Richard Henderson <rth@redhat.com>
7378 * iter.c (gomp_iter_static_next): Round up when computing number
7379 of iterations. Don't bother distributing a remainder equally.
7381 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
7382 Don't call srand. Zero b before testing.
7385 2005-09-24 Jakub Jelinek <jakub@redhat.com>
7387 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
7388 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
7390 2005-09-23 Jakub Jelinek <jakub@redhat.com>
7392 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
7393 without !$omp end do, followed immediately by subroutine end.
7395 2005-09-23 Diego Novillo <dnovillo@redhat.com>
7397 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
7399 2005-09-22 Richard Henderson <rth@redhat.com>
7401 * critical.c (GOMP_critical_name_start): Change argument to void**.
7402 Reuse the pointer space if the mutex fits.
7403 (GOMP_critical_name_end): Likewise.
7404 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
7405 * libgomp_g.h (GOMP_critical_name_start): Update decl.
7406 (GOMP_critical_name_end): Likewise.
7407 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
7408 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
7410 2005-09-20 Richard Henderson <rth@redhat.com>
7412 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
7413 (create_lock_lock): New.
7414 (initialize_critical): Initialize it.
7415 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
7416 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
7418 2005-09-20 Diego Novillo <dnovillo@redhat.com>
7420 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
7422 2005-09-20 Diego Novillo <dnovillo@redhat.com>
7424 * testsuite/libgomp.dg/omp-loop01.c: New test.
7425 * testsuite/libgomp.dg/omp-loop02.c: New test.
7427 2005-09-20 Jakub Jelinek <jakub@redhat.com>
7429 * configure.ac (AC_PROG_FC): Add.
7430 (USE_FORTRAN): New automake conditional.
7431 * configure: Rebuilt.
7432 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
7433 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
7434 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
7435 Add rules to build them.
7436 * Makefile.in: Rebuilt.
7437 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
7439 * libgomp.map: Add Fortran wrappers.
7440 * libgomp_f.h.in: New file.
7441 * omp_lib.h.in: New file.
7442 * omp_lib.f90.in: New file.
7443 * fortran.c: New file.
7444 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
7445 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
7446 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
7447 libgfortran has been built.
7448 * testsuite/libgomp.fortran/fortran.exp: New file.
7449 * testsuite/libgomp.fortran/omp_cond1.f: New test.
7450 * testsuite/libgomp.fortran/omp_cond2.f: New test.
7451 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
7452 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
7453 * testsuite/libgomp.fortran/omp_hello.f: New test.
7454 * testsuite/libgomp.fortran/omp_orphan.f: New test.
7455 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
7456 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
7457 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
7458 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
7459 * testsuite/libgomp.fortran/omp_reduction.f: New test.
7460 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
7461 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
7463 2005-08-30 Richard Henderson <rth@redhat.com>
7465 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
7466 function for when aliases are not usable.
7467 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
7468 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7469 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
7470 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
7471 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
7472 GOMP_loop_ordered_guided_next): Likewise.
7473 * ordered.c (GOMP_ordered_start): Likewise.
7475 2005-08-01 Diego Novillo <dnovillo@redhat.com>
7477 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
7478 * testsuite/libgomp.dg/omp_hello.c: Fix return code
7479 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
7480 * testsuite/libgomp.dg/omp_orphan.c: Likewise
7481 * testsuite/libgomp.dg/omp_reduction.c: Likewise
7482 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
7483 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
7484 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
7485 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
7487 2005-07-07 Eric Christopher <echristo@redhat.com>
7488 Diego Novillo <dnovillo@redhat.com>
7490 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
7491 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
7493 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
7494 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
7495 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
7496 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
7497 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
7498 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
7499 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
7501 2005-06-13 Diego Novillo <dnovillo@redhat.com>
7503 * TOPLEVEL.patch: Remove.
7505 2005-05-16 Richard Henderson <rth@redhat.com>
7507 * configure.ac: Test for clock_gettime.
7508 * config.h.in, configure: Rebuild.
7509 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
7510 (omp_get_wtime): Use clock_gettime if available.
7511 (omp_get_wtick): Use clock_getres if available.
7513 2005-05-11 Richard Henderson <rth@redhat.com>
7515 * config/linux/ia64/futex.h: New file.
7516 * configure.tgt: Use it.
7518 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
7520 2005-05-07 Richard Henderson <rth@redhat.com>
7522 * config/linux/powerpc/futex.h: New file.
7523 * configure.tgt: Use it.
7525 * config/linux/i486/futex.h: Merge ...
7526 * config/linux/x86_64/futex.h: ... into ...
7527 * config/linux/x86/futex.h: ... here.
7528 * configure.tgt: Update to match.
7530 2005-05-06 Richard Henderson <rth@redhat.com>
7532 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
7533 * config/linux/i486/futex.h: Likewise.
7534 * config/linux/x86_64/futex.h: Likewise.
7536 * config/linux/lock.c: New file.
7537 * config/linux/omp-lock.h: New file.
7539 * critical.c, env.h: Don't include omp.h
7540 * config/posix/lock.c: Include libgomp.h instead of omp.h.
7541 * config/posix/time.c: Likewise.
7542 * config/posix/omp-lock.h: New file.
7543 * libgomp.h: Include omp-lock.h and omp.h.
7544 * Makefile.am (nodist_include_HEADERS): New.
7546 * configure.ac (PERL): New.
7547 * mkomp_h.pl: New file.
7548 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
7550 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
7552 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
7553 build directory. Re-add -march=i486 hack.
7555 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
7556 (libgomp_link_flags): Remove.
7557 (libgomp_initialized): Remove.
7558 (libgomp_init): Don't protect from reinitialization. Copy code
7559 from libstdc++ for getting the multilib set correctly.
7561 2005-05-05 Richard Henderson <rth@redhat.com>
7563 * config/linux/alpha/futex.h: New file.
7564 * configure.tgt (alpha*-*-linux*): Use it.
7566 * config/posix/mutex.c: New file.
7567 * config/posix/sem.c: Use libgomp.h.
7569 * configure.tgt (x86_64-linux): Also test CC for -m32.
7570 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
7572 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
7575 * Makefile.am (SUBDIRS): New.
7576 (libgomp_la_LDFLAGS): Add -lpthread.
7577 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
7578 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
7580 * libgomp_g.h: New file.
7581 * libgomp.h: Split out all public declarations to libgomp_g.h.
7582 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
7583 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
7584 * config/linux/sem.h: Likewise.
7585 * config/posix/sem.h: Likewise.
7587 * Makefile.am (AM_LDFLAGS): New.
7588 (libgomp_version_script): Split out from ...
7589 (libgomp_la_LDFLAGS): ... here.
7590 (libgomp_version_info): New.
7591 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
7592 (LIBGOMP_ENABLE): New.
7593 (LIBGOMP_CHECK_LINKER_FEATURES): New.
7594 (LIBGOMP_ENABLE_SYMVERS): New.
7595 * configure.ac (AC_INIT): Version 1.0.
7596 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
7597 (enable-linux-futex): Likewise. Rename from enable-futex.
7598 (libtool_VERSION): New.
7599 (LIBGOMP_ENABLE_SYMVERS): Use it.
7600 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
7601 * Makefile.in, aclocal.m4, configure: Rebuild.
7603 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
7604 (gomp_mutex_unlock_slow): Fix typo.
7605 * config/linux/sem.c: Similarly.
7606 (gomp_sem_post_slow): Fix typo.
7607 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
7608 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
7609 [__PIC__] (sys_futex0): Don't use tmp output in asm.
7611 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
7612 (libgomp_la_LDFLAGS): Add top_srcdir to path.
7613 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
7614 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
7615 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
7616 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
7617 LDFLAGS. Pull enable_futex check to top-level.
7618 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
7619 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
7621 First attempt at real configury.
7622 * Makefile, config.h: Remove file.
7623 * Makefile.am, Makefile.in: New file.
7624 * acinclude.m4 aclocal.m4: New file.
7625 * configure.ac, configure.tgt, configure: New file.
7627 * config/posix/lock.c: Rename from sys-lock.c.
7628 * config/posix/mutex.h: Rename from sys-mutex.h.
7629 * config/posix/sem.c: Rename from sys-sem.c.
7630 * config/posix/sem.h: Rename from sys-sem.h.
7631 * config/posix/proc.c: Rename from sys-proc.c.
7632 * config/posix/time.c: Rename from sys-proc.c.
7634 * config/linux/mutex.c: New file.
7635 * config/linux/mutex.h: New file.
7636 * config/linux/sem.c: New file.
7637 * config/linux/sem.h: New file.
7638 * config/linux/i486/futex.h: New file.
7639 * config/linux/x86_64/futex.h: New file.
7641 2005-05-04 Richard Henderson <rth@redhat.com>
7643 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
7644 * libgomp.h: Declare them.
7645 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
7646 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
7648 2005-05-04 Richard Henderson <rth@redhat.com>
7650 * libgomp-1 code drop
7652 2005-05-04 Richard Henderson <rth@redhat.com>
7654 * iter.c (gomp_iter_static_next): Return tri-state on 0.
7655 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
7656 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
7657 (gomp_iter_static_next): Update.
7658 (gomp_ordered_static_next): Update.
7659 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
7660 (gomp_loop_ordered_static_start): Likewise. Exit early for a
7661 totally empty range.
7662 (gomp_loop_ordered_static_next): Refine test for calling
7663 gomp_ordered_static_next.
7664 * testsuite/ordered-1.c: Add case for more threads than iterations.
7666 * iter.c (gomp_iter_runtime_next_locked): Remove.
7667 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
7668 gomp_loop_guided_start, gomp_loop_ordered_static_start,
7669 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7670 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
7671 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
7672 gomp_loop_ordered_guided_next): Downcase name, make static, add
7673 an external alias with the old name.
7674 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7675 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
7676 switch and call one of the above static functions.
7677 * libgomp.h: Update.
7679 * work.c (gomp_work_share_start): Lock the mutex for !first too.
7680 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
7681 GOMP_loop_guided_start, GOMP_loop_runtime_start,
7682 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7683 GOMP_loop_ordered_guided_start): Update to match.
7684 * sections.c (GOMP_sections_start): Likewise.
7685 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
7687 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
7688 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
7689 Use bounds check instead of modulus.
7690 (gomp_ordered_sync): Split out of GOMP_ordered_start.
7691 (gomp_ordered_last): Don't sync with ordered_owner here.
7692 (gomp_ordered_next): Likewise.
7693 (gomp_ordered_static_loop_next): Likewise.
7694 * loop.c, libgomp.h: Update to match.
7696 * libgomp.h (GOMP_barrier): Declare.
7698 * testsuite/barrier-1.c: New file.
7699 * testsuite/critical-1.c: New file.
7700 * testsuite/ordered-2.c: New file.
7701 * testsuite/ordered-1.c: New file.
7702 * testsuite/sections-1.c: New file.
7703 * testsuite/single-1.c: New file.
7704 * testsuite/Makefile (TESTS): Add them.
7706 2005-05-04 Richard Henderson <rth@redhat.com>
7708 * libgomp.h (struct gomp_work_share): Add ordered_owner.
7709 * loop.c (GOMP_loop_static_start): If not the startup thread,
7710 acquire the mutex to wait for initialization complete.
7711 (GOMP_loop_ordered_static_start): Likewise.
7712 (GOMP_loop_ordered_runtime_start): Likewise.
7713 (GOMP_loop_ordered_static_first): Remove.
7714 (GOMP_loop_ordered_dynamic_first): Remove.
7715 (GOMP_loop_ordered_guided_first): Remove.
7716 (GOMP_loop_ordered_runtime_first): Remove.
7717 * ordered.c (gomp_ordered_loop_first): Post to own release when
7718 we're the first thread.
7719 (gomp_ordered_loop_last): Wait on release if not owner.
7720 (gomp_ordered_loop_next): Likewise.
7721 (gomp_ordered_static_loop_init): New.
7722 (gomp_ordered_static_loop_next): Use ordered_owner.
7723 (GOMP_ordered_start): Likewise.
7724 * work.c (gomp_new_work_share): Initialize ordered_owner.
7726 2005-05-03 Richard Henderson <rth@redhat.com>
7728 * Makefile (OPT): New.
7731 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
7732 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
7733 * libgomp.h, libgomp.map, NOTES: Update to match.
7735 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
7736 Add initialized and thr members.
7737 (gomp_thread_start): Pause when initially spawned to wait for
7738 the whole team to be created.
7739 (gomp_team_start): Release team members at the end.
7741 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
7742 (f_foo_1): Use GOMP_loop_end.
7743 (f_foo_2): Use GOMP_loop_end_nowait.
7745 * testsuite/loop-2.c: New file.
7746 * testsuite/Makefile (TESTS): Add it.
7748 2005-05-03 Richard Henderson <rth@redhat.com>
7750 * iter.c (gomp_iter_static_next): Fix overflow check typo.
7751 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
7752 * team.c (new_team): Initialize oldest_live_gen to 1 if no
7755 * testsuite/Makefile: New file.
7756 * testsuite/loop-1.c: New file.
7758 2005-05-03 Richard Henderson <rth@redhat.com>
7760 Initial implementation and checkin.
7762 Copyright (C) 2005-2016 Free Software Foundation, Inc.
7764 Copying and distribution of this file, with or without modification,
7765 are permitted in any medium without royalty provided the copyright
7766 notice and this notice are preserved.