1 2016-08-22 Release Manager
5 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
8 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
13 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
15 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
16 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
17 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
18 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
19 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
20 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
21 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
22 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
23 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
24 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
25 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
26 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
28 2016-07-02 Jakub Jelinek <jakub@redhat.com>
30 Backported from mainline
31 2016-07-01 Jakub Jelinek <jakub@redhat.com>
34 * testsuite/libgomp.fortran/associate3.f90: New test.
36 2016-06-21 Jakub Jelinek <jakub@redhat.com>
38 Backported from mainline
39 2016-06-17 Jakub Jelinek <jakub@redhat.com>
41 * testsuite/libgomp.c++/target-21.C: New test.
43 2016-06-16 Jakub Jelinek <jakub@redhat.com>
45 * testsuite/libgomp.c++/target-20.C: New test.
47 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
50 Backport from trunk r237291:
51 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
52 Cesar Philippidis <cesar@codesourcery.com>
54 * libgomp.oacc-c/nested-function-1.c: New file.
55 * libgomp.oacc-c/nested-function-2.c: Likewise.
56 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
57 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
58 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
61 Backport from trunk r237290:
62 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
63 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
64 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
66 2016-05-23 Martin Jambor <mjambor@suse.cz>
68 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
70 2016-05-16 Martin Jambor <mjambor@suse.cz>
72 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
74 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
77 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
78 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
79 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
81 2016-04-27 Jakub Jelinek <jakub@redhat.com>
83 Backported from mainline
84 2016-04-19 Jakub Jelinek <jakub@redhat.com>
87 * testsuite/libgomp.c/pr70680-1.c: New test.
88 * testsuite/libgomp.c/pr70680-2.c: New test.
90 2016-04-27 Release Manager
94 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
96 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
99 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
101 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
102 pass parameter variables to subroutines.
104 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
107 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
109 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
112 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
113 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
115 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
117 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
118 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
119 GOACC_declare prototype.
121 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
122 Merge this file, and...
123 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
124 ... this file, and...
125 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
126 ... this file, and...
127 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
128 ... this file, and...
129 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
130 ... this file, and...
131 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
132 ... this file, and...
133 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
134 ... this file, and...
135 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
136 ... this file, and...
137 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
138 ... this file, and...
139 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
140 ... this file, and...
141 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
142 ... this file, and...
143 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
144 ... this file, and...
145 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
146 ... this file into...
147 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
150 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
151 Make failure observable.
153 2016-04-12 Jakub Jelinek <jakub@redhat.com>
155 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
157 * target.c (gomp_target_fallback_firstprivate,
158 gomp_target_unshare_firstprivate): Removed.
159 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
160 before waiting for dependencies.
161 (gomp_target_task_fn): Don't copy firstprivate vars here.
162 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
163 firstprivate_copies here.
164 (gomp_create_target_task): Don't initialize firstprivate_copies field.
165 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
166 explicit/implicit firstprivate.
168 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
172 PR tree-optimization/70373
176 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
178 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
180 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
182 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
184 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
186 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
188 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
190 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
192 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
194 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
195 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
196 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
197 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
199 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
201 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
203 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
205 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
207 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
208 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
209 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
210 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
211 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
212 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
214 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
215 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
216 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
217 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
218 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
219 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
220 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
221 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
222 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
223 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
224 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
225 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
226 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
227 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
228 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
230 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
231 James Norris <jnorris@codesourcery.com>
232 Nathan Sidwell <nathan@codesourcery.com>
233 Julian Brown <julian@codesourcery.com>
234 Cesar Philippidis <cesar@codesourcery.com>
235 Chung-Lin Tang <cltang@codesourcery.com>
236 Tom de Vries <tom@codesourcery.com>
238 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
239 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
240 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
241 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
242 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
243 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
244 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
245 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
246 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
248 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
250 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
252 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
253 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
254 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
255 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
257 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
259 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
260 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
261 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
262 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
263 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
264 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
265 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
266 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
267 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
268 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
270 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
271 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
272 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
274 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
276 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
278 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
280 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
282 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
283 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
284 ... this new file. Update.
285 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
286 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
287 ... this new file. Update.
288 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
290 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
292 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
294 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
296 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
298 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
300 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
303 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
305 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
307 * testsuite/libgomp.oacc-c/c.exp: Likewise.
308 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
309 -fno-builtin-acc_on_device instead of -O0.
310 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
312 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
313 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
315 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
316 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
317 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
318 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
319 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
320 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
321 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
322 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
323 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
324 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
325 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
326 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
327 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
328 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
329 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
330 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
331 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
332 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
334 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
336 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
339 2016-03-24 Martin Liska <mliska@suse.cz>
341 * plugin/plugin-hsa.c (packet_store_release): New function
342 that is taken from the HSA runtime manual.
343 (GOMP_OFFLOAD_run): Use the function.
345 2016-03-23 Jakub Jelinek <jakub@redhat.com>
348 * testsuite/libgomp.c++/pr70376.C: New test.
350 2016-03-23 Tom de Vries <tom@codesourcery.com>
352 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
353 initialization of lresult and lvresult.
354 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
356 2016-03-23 James Norris <jnorris@codesourcery.com>
357 Daichi Fukuoka <dc-fukuoka@sgi.com>
360 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
361 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
362 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
363 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
365 2016-03-23 Martin Liska <mliska@suse.cz>
368 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
369 argument just in case a dispatched kernel uses that argument.
371 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
373 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
374 -ftree-parallelize-loops/-fopenacc changes.
375 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
377 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
379 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
381 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
383 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
384 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
386 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
388 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
389 always_ld_library_path the path to libgcc_s.
391 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
394 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
396 2016-03-09 Tom de Vries <tom@codesourcery.com>
398 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
399 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
400 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
402 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
403 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
404 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
405 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
407 2016-03-07 Martin Jambor <mjambor@suse.cz>
409 * testsuite/lib/libgomp.exp
410 (check_effective_target_hsa_offloading_selected_nocache): New.
411 (check_effective_target_hsa_offloading_selected): Likewise.
412 * testsuite/libgomp.hsa.c/c.exp: Likewise.
413 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
414 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
415 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
416 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
417 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
418 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
419 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
420 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
421 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
422 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
423 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
424 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
425 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
426 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
427 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
428 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
430 2016-03-07 Martin Jambor <mjambor@suse.cz>
432 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
433 non-shared memory accelerators.
434 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
435 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
436 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
437 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
438 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
439 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
440 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
441 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
442 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
444 2016-03-07 Martin Jambor <mjambor@suse.cz>
446 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
449 2016-03-02 Jakub Jelinek <jakub@redhat.com>
452 * testsuite/libgomp.c++/pr69555-1.C: New test.
453 * testsuite/libgomp.c++/pr69555-2.C: New test.
455 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
456 Martin Jambor <mjambor@suse.cz>
458 * testsuite/lib/libgomp.exp
459 (check_effective_target_offload_device_shared_as): New proc.
460 * testsuite/libgomp.c++/declare_target-1.C: New test.
462 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
465 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
467 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
469 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
470 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
472 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
473 -ftree-parallelize-loops/-fopenacc changes.
474 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
475 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
477 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
479 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
481 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
483 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
485 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
487 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
489 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
490 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
492 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
493 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
495 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
496 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
499 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
501 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
503 2016-02-19 Jakub Jelinek <jakub@redhat.com>
506 * testsuite/libgomp.c/pr69805.c: New test.
508 2016-02-16 Tom de Vries <tom@codesourcery.com>
511 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
513 2016-02-09 Tom de Vries <tom@codesourcery.com>
515 PR tree-optimization/69599
516 * testsuite/libgomp.c/omp-nested-3.c: New test.
517 * testsuite/libgomp.c/pr46032-2.c: New test.
518 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
519 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
521 2016-02-09 Tom de Vries <tom@codesourcery.com>
524 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
526 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
528 * testsuite/libgomp.c/target-31.c: Fix testcase.
530 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
532 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
534 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
535 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
536 reduction and map clauses.
537 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
539 2016-02-02 James Norris <jnorris@codesourcery.com>
541 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
543 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
545 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
546 * oacc-parallel.c (GOACC_host_data): Remove function definition.
548 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
551 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
553 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
554 (hsa_kmt_lib): Set variables.
555 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
556 always_ld_library_path.
557 * Makefile.in: Regenerate.
558 * configure: Likewise.
559 * testsuite/Makefile.in: Likewise.
561 * plugin/configfrag.ac (offload_additional_options)
562 (offload_additional_lib_paths): Don't amend for hsa offloading.
563 * configure: Regenerate.
565 * plugin/configfrag.ac: Don't configure for offloading target if
566 we don't build the corresponding plugin.
567 * configure: Regenerate.
569 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
571 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
572 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
574 2016-01-26 Tom de Vries <tom@codesourcery.com>
576 PR tree-optimization/69110
577 * testsuite/libgomp.c/pr69110.c: New test.
579 2016-01-25 Richard Biener <rguenther@suse.de>
582 * testsuite/libgomp.c++/pr69393.C: New testcase.
584 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
586 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
587 function wasn't mapped to the device with non-shared memory.
589 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
591 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
593 2016-01-19 Martin Jambor <mjambor@suse.cz>
594 Martin Liska <mliska@suse.cz>
596 * plugin/Makefrag.am: Add HSA plugin requirements.
597 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
598 (HSA_RUNTIME_LIB): Likewise.
599 (HSA_RUNTIME_CPPFLAGS): Likewise.
600 (HSA_RUNTIME_INCLUDE): New substitution.
601 (HSA_RUNTIME_LIB): Likewise.
602 (HSA_RUNTIME_LDFLAGS): Likewise.
603 (hsa-runtime): New configure option.
604 (hsa-runtime-include): Likewise.
605 (hsa-runtime-lib): Likewise.
606 (PLUGIN_HSA): New substitution variable.
607 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
609 (PLUGIN_HSA_CPPFLAGS): Likewise.
610 (PLUGIN_HSA_LDFLAGS): Likewise.
611 (PLUGIN_HSA_LIBS): Likewise.
612 Check that we have access to HSA run-time.
613 * libgomp-plugin.h (offload_target_type): New element
614 OFFLOAD_TARGET_TYPE_HSA.
615 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
617 (bool gomp_create_target_task): Updated.
618 (gomp_device_descr): Extra parameter of run_func and async_run_func,
619 new field can_run_func.
620 * libgomp_g.h (GOMP_target_ext): Update prototype.
621 * oacc-host.c (host_run): Added a new parameter args.
622 * target.c (calculate_firstprivate_requirements): New function.
623 (copy_firstprivate_data): Likewise.
624 (gomp_target_fallback_firstprivate): Use them.
625 (gomp_target_unshare_firstprivate): New function.
626 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
628 (GOMP_target): Do host fallback for all shared memory devices. Do not
629 pass any args to plugins.
630 (GOMP_target_ext): Introduce device-specific argument parameter args.
631 Allow host fallback if device shares memory. Do not remap data if
632 device has shared memory.
633 (gomp_target_task_fn): Likewise. Also treat shared memory devices
634 like host fallback for mappings.
635 (GOMP_target_data): Treat shared memory devices like host fallback.
636 (GOMP_target_data_ext): Likewise.
637 (GOMP_target_update): Likewise.
638 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
639 gomp_create_target_task.
640 (GOMP_target_enter_exit_data): Likewise.
641 (omp_target_alloc): Treat shared memory devices like host fallback.
642 (omp_target_free): Likewise.
643 (omp_target_is_present): Likewise.
644 (omp_target_memcpy): Likewise.
645 (omp_target_memcpy_rect): Likewise.
646 (omp_target_associate_ptr): Likewise.
647 (gomp_load_plugin_for_device): Also load can_run.
648 * task.c (GOMP_PLUGIN_target_task_completion): Free
650 (gomp_create_target_task): Accept new argument args and store it to
652 * plugin/plugin-hsa.c: New file.
654 2016-01-18 Tom de Vries <tom@codesourcery.com>
656 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
657 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
658 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
659 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
660 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
661 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
662 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
663 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
664 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
665 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
666 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
668 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
670 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
671 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
672 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
673 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
674 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
675 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
676 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
677 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
679 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
681 2016-01-15 Jakub Jelinek <jakub@redhat.com>
683 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
685 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
687 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
689 2016-01-12 James Norris <jnorris@codesourcery.com>
691 * libgomp.texi: Updates for OpenACC.
693 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
695 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
697 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
700 * testsuite/libgomp.fortran/pr66680.f90: New test.
702 2016-01-07 Jakub Jelinek <jakub@redhat.com>
705 * testsuite/libgomp.c/pr68960.c: New test.
707 2016-01-06 Nathan Sidwell <nathan@acm.org>
709 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
710 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
712 2016-01-04 Jakub Jelinek <jakub@redhat.com>
714 Update copyright years.
716 * libgomp.texi: Bump @copying's copyright year.
718 2015-12-31 Nathan Sidwell <nathan@acm.org>
720 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
721 dg-additional-options syntax.
722 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
723 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
724 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
725 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
726 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
727 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
728 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
729 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
730 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
731 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
732 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
733 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
734 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
735 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
736 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
737 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
738 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
739 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
741 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
743 * libgomp.h (REFCOUNT_LINK): Define.
744 (struct splay_tree_key_s): Add link_key.
745 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
746 Replace target address of the pointer with target address of newly
747 mapped object in the splay tree. Set link pointer on target to the
748 device address of the mapped object.
749 (gomp_unmap_vars): Restore target address of the pointer in the splay
750 tree for REFCOUNT_LINK objects after unmapping.
751 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
752 declare target link" objects.
753 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
754 "omp declare target link" objects, which were mapped for the image.
755 (gomp_exit_data): Restore target address of the pointer in the splay
756 tree for REFCOUNT_LINK objects after unmapping.
757 * testsuite/libgomp.c/target-link-1.c: New file.
759 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
761 * libgomp.h (gomp_device_state): New enum.
762 (struct gomp_device_descr): Replace is_initialized with state.
763 (gomp_fini_device): Remove declaration.
764 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
765 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
766 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
767 (acc_set_device_type): Use state instead of is_initialized.
768 (acc_set_device_num): Likewise.
769 * target.c (resolve_device): Use state instead of is_initialized.
770 Do not initialize finalized device.
771 (gomp_map_vars): Do nothing if device is finalized.
772 (gomp_unmap_vars): Likewise.
773 (gomp_update): Likewise.
774 (GOMP_offload_register_ver): Use state instead of is_initialized.
775 (GOMP_offload_unregister_ver): Likewise.
776 (gomp_init_device): Likewise.
777 (gomp_unload_device): Likewise.
778 (gomp_fini_device): Remove.
779 (gomp_get_target_fn_addr): Do nothing if device is finalized.
780 (GOMP_target): Go to host fallback if device is finalized.
781 (GOMP_target_ext): Likewise.
782 (gomp_exit_data): Do nothing if device is finalized.
783 (gomp_target_task_fn): Go to host fallback if device is finalized.
784 (gomp_target_fini): New static function.
785 (gomp_target_init): Use state instead of is_initialized.
786 Call gomp_target_fini at exit.
788 2015-12-09 Tom de Vries <tom@codesourcery.com>
790 PR tree-optimization/68716
791 * testsuite/libgomp.c/omp-nested-2.c: New test.
793 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
795 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
796 target openacc_nvidia_accel_selected.
797 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
798 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
799 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
800 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
802 2015-12-01 Julian Brown <julian@codesourcery.com>
803 James Norris <James_Norris@mentor.com>
805 * oacc-parallel.c (GOACC_host_data): New function.
806 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
807 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
808 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
809 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
810 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
811 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
812 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
814 2015-11-30 James Norris <jnorris@codesourcery.com>
815 Cesar Philippidis <cesar@codesourcery.com>
818 * libgomp.oacc-fortran/routine-5.f90: New test.
819 * libgomp.oacc-fortran/routine-7.f90: New test.
820 * libgomp.oacc-fortran/routine-9.f90: New test.
822 2015-11-30 Tom de Vries <tom@codesourcery.com>
824 PR tree-optimization/46032
825 * testsuite/libgomp.c/pr46032.c: New test.
827 2015-11-27 Jakub Jelinek <jakub@redhat.com>
830 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
831 (gomp_create_target_task): Call it before freeing
832 GOMP_TARGET_TASK_DATA tasks.
835 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
836 in between case label and OpenMP standalone directives.
837 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
839 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
841 * configure: Regenerate.
843 2015-11-26 Jakub Jelinek <jakub@redhat.com>
845 * testsuite/libgomp.c/target-35.c: New test.
847 2015-11-22 James Norris <jnorris@codesourcery.com>
848 Cesar Philippidis <cesar@codesourcery.com>
850 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
851 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
852 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
853 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
854 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
856 2015-11-20 Jakub Jelinek <jakub@redhat.com>
859 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
860 * testsuite/libgomp.c/reduction-12.c: Likewise.
861 * testsuite/libgomp.c++/reduction-11.C: Likewise.
862 * testsuite/libgomp.c++/reduction-12.C: Likewise.
864 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
866 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
867 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
868 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
869 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
870 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
872 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
873 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
875 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
877 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
879 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
881 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
883 * config/nvptx/priority_queue.c: New file.
885 2015-11-14 Jakub Jelinek <jakub@redhat.com>
887 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
890 2015-11-14 Jakub Jelinek <jakub@redhat.com>
891 Aldy Hernandez <aldyh@redhat.com>
892 Ilya Verbin <ilya.verbin@intel.com>
894 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
895 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
896 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
897 iterators or IV by chunk size.
898 * parallel.c (gomp_resolve_num_threads): Don't assume that
899 if thr->ts.team is non-NULL, then pool must be non-NULL.
900 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
901 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
902 GOMP_PLUGIN_target_task_completion.
903 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
904 * Makefile.in: Regenerate.
905 * libgomp.h: Shuffle prototypes and forward definitions around so
906 priority queues can be defined.
907 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
908 (enum gomp_target_task_state): New enum.
909 (struct gomp_target_task): Add state, tgt, task and team fields.
910 (gomp_create_target_task): Change return type to bool, add
912 (gomp_target_task_fn): Change return type to bool.
913 (struct gomp_device_descr): Add async_run_func.
914 (struct gomp_task): Remove children, next_child, prev_child,
915 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
917 (struct gomp_taskgroup): Remove children.
919 (struct gomp_team): Change task_queue type to a priority queue.
920 (splay_compare): Define inline.
921 (priority_queue_offset): New.
922 (priority_node_to_task): New.
923 (task_to_priority_node): New.
924 * oacc-mem.c: Do not include splay-tree.h.
925 * priority_queue.c: New file.
926 * priority_queue.h: New file.
927 * splay-tree.c: Do not include splay-tree.h.
928 (splay_tree_foreach_internal): New.
929 (splay_tree_foreach): New.
930 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
931 (splay_tree_callback): Define typedef.
932 * target.c (splay_compare): Move to libgomp.h.
933 (GOMP_target): Don't adjust *thr in any way around running offloaded
935 (GOMP_target_ext): Likewise. Handle target nowait.
936 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
937 return value from gomp_create_target_task, if false, fallthrough
938 as if no dependencies exist.
939 (gomp_target_task_fn): Change return type to bool, return true
940 if the task should have another part scheduled later. Handle
942 (gomp_load_plugin_for_device): Initialize async_run.
943 * task.c (gomp_init_task): Initialize children_queue.
944 (gomp_clear_parent_in_list): New.
945 (gomp_clear_parent_in_tree): New.
946 (gomp_clear_parent): Handle priorities.
947 (GOMP_task): Likewise.
948 (priority_queue_move_task_first,
949 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
951 (gomp_create_target_task): Use priority queues. Change return type
952 to bool, add state argument, return false if for async
953 {{enter,exit} data,update} constructs no dependencies need to be
954 waited for, handle target nowait. Set task->fn to NULL instead of
956 (verify_children_queue): Remove.
957 (priority_list_upgrade_task): New.
958 (priority_queue_upgrade_task): New.
959 (verify_task_queue): Remove.
960 (priority_list_downgrade_task): New.
961 (priority_queue_downgrade_task): New.
962 (gomp_task_run_pre): Use priority queues.
963 Abstract code out to priority_queue_downgrade_task.
964 (gomp_task_run_post_handle_dependers): Use priority queues.
965 (gomp_task_run_post_remove_parent): Likewise.
966 (gomp_task_run_post_remove_taskgroup): Likewise.
967 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
969 (GOMP_taskwait): Likewise.
970 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
971 priority-queue_upgrade_task.
972 (GOMP_taskgroup_start): Use priority queues.
973 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
974 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
976 * taskloop.c (GOMP_taskloop): Handle priorities.
977 * team.c (gomp_new_team): Call priority_queue_init.
978 (free_team): Call priority_queue_free.
979 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
980 team created for target nowait in implicit parallel region.
981 (gomp_team_start): For nested check, test thr->ts.level instead of
982 thr->ts.team != NULL.
983 * testsuite/libgomp.c/doacross-3.c: New test.
984 * testsuite/libgomp.c/ordered-5.c: New test.
985 * testsuite/libgomp.c/priority.c: New test.
986 * testsuite/libgomp.c/target-31.c: New test.
987 * testsuite/libgomp.c/target-32.c: New test.
988 * testsuite/libgomp.c/target-33.c: New test.
989 * testsuite/libgomp.c/target-34.c: New test.
991 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
993 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
995 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
998 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1000 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
1001 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
1003 2015-11-12 James Norris <jnorris@codesourcery.com>
1004 Joseph Myers <joseph@codesourcery.com>
1006 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
1007 * oacc-parallel.c (GOACC_declare): New function.
1008 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
1009 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
1010 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
1011 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
1012 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
1014 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
1016 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
1018 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
1020 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
1021 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
1023 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1025 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
1028 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1030 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
1031 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
1032 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
1033 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
1034 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
1036 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
1038 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
1039 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1041 2015-11-05 Jakub Jelinek <jakub@redhat.com>
1042 Ilya Verbin <ilya.verbin@intel.com>
1044 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
1045 GOMP_loop_nonmonotonic_dynamic_start,
1046 GOMP_loop_nonmonotonic_guided_next,
1047 GOMP_loop_nonmonotonic_guided_start,
1048 GOMP_loop_ull_nonmonotonic_dynamic_next,
1049 GOMP_loop_ull_nonmonotonic_dynamic_start,
1050 GOMP_loop_ull_nonmonotonic_guided_next,
1051 GOMP_loop_ull_nonmonotonic_guided_start,
1052 GOMP_parallel_loop_nonmonotonic_dynamic,
1053 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
1054 (GOMP_target_41): Renamed to ...
1055 (GOMP_target_ext): ... this. Add num_teams and thread_limit
1057 (GOMP_target_data_41): Renamed to ...
1058 (GOMP_target_data_ext): ... this.
1059 (GOMP_target_update_41): Renamed to ...
1060 (GOMP_target_update_ext): ... this.
1061 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
1062 GOMP_target_data_ext and GOMP_target_update_ext instead of
1063 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
1064 Export GOMP_loop_nonmonotonic_dynamic_next,
1065 GOMP_loop_nonmonotonic_dynamic_start,
1066 GOMP_loop_nonmonotonic_guided_next,
1067 GOMP_loop_nonmonotonic_guided_start,
1068 GOMP_loop_ull_nonmonotonic_dynamic_next,
1069 GOMP_loop_ull_nonmonotonic_dynamic_start,
1070 GOMP_loop_ull_nonmonotonic_guided_next,
1071 GOMP_loop_ull_nonmonotonic_guided_start,
1072 GOMP_parallel_loop_nonmonotonic_dynamic and
1073 GOMP_parallel_loop_nonmonotonic_guided.
1074 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
1075 GOMP_parallel_loop_nonmonotonic_guided,
1076 GOMP_loop_nonmonotonic_dynamic_start,
1077 GOMP_loop_nonmonotonic_guided_start,
1078 GOMP_loop_nonmonotonic_dynamic_next,
1079 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
1080 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
1081 GOMP_loop_ull_nonmonotonic_guided_start,
1082 GOMP_loop_ull_nonmonotonic_dynamic_next,
1083 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
1084 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
1086 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
1087 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
1088 Use gomp_map_val function.
1089 (gomp_target_fallback_firstprivate): New static function.
1090 (GOMP_target_41): Renamed to ...
1091 (GOMP_target_ext): ... this. Add num_teams and thread_limit
1092 arguments. Move firstprivate fallback handling into a new
1094 (GOMP_target_data_41): Renamed to ...
1095 (GOMP_target_data_ext): ... this.
1096 (GOMP_target_update_41): Renamed to ...
1097 (GOMP_target_update_ext): ... this.
1098 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
1099 gomp_map_0len_lookup instead of gomp_map_lookup.
1100 (omp_target_is_present): Use gomp_map_0len_lookup instead of
1102 * testsuite/libgomp.c/target-28.c: Likewise.
1103 * testsuite/libgomp.c/monotonic-1.c: New test.
1104 * testsuite/libgomp.c/monotonic-2.c: New test.
1105 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
1106 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
1107 * testsuite/libgomp.c/pr66199-5.c: New test.
1108 * testsuite/libgomp.c/pr66199-6.c: New test.
1109 * testsuite/libgomp.c/pr66199-7.c: New test.
1110 * testsuite/libgomp.c/pr66199-8.c: New test.
1111 * testsuite/libgomp.c/pr66199-9.c: New test.
1112 * testsuite/libgomp.c/reduction-11.c: New test.
1113 * testsuite/libgomp.c/reduction-12.c: New test.
1114 * testsuite/libgomp.c/reduction-13.c: New test.
1115 * testsuite/libgomp.c/reduction-14.c: New test.
1116 * testsuite/libgomp.c/reduction-15.c: New test.
1117 * testsuite/libgomp.c/target-12.c (main): Adjust for
1118 omp_target_is_present change for one-past-last element.
1119 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
1120 the same var is both mapped and privatized.
1121 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
1122 handling of zero-length array sections.
1123 * testsuite/libgomp.c/target-28.c: New test.
1124 * testsuite/libgomp.c/target-29.c: New test.
1125 * testsuite/libgomp.c/target-30.c: New test.
1126 * testsuite/libgomp.c/target-teams-1.c: New test.
1127 * testsuite/libgomp.c++/member-6.C: New test.
1128 * testsuite/libgomp.c++/member-7.C: New test.
1129 * testsuite/libgomp.c++/monotonic-1.C: New test.
1130 * testsuite/libgomp.c++/monotonic-2.C: New test.
1131 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
1132 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
1133 * testsuite/libgomp.c++/pr66199-3.C: New test.
1134 * testsuite/libgomp.c++/pr66199-4.C: New test.
1135 * testsuite/libgomp.c++/pr66199-5.C: New test.
1136 * testsuite/libgomp.c++/pr66199-6.C: New test.
1137 * testsuite/libgomp.c++/pr66199-7.C: New test.
1138 * testsuite/libgomp.c++/pr66199-8.C: New test.
1139 * testsuite/libgomp.c++/pr66199-9.C: New test.
1140 * testsuite/libgomp.c++/reduction-11.C: New test.
1141 * testsuite/libgomp.c++/reduction-12.C: New test.
1142 * testsuite/libgomp.c++/target-13.C: New test.
1143 * testsuite/libgomp.c++/target-14.C: New test.
1144 * testsuite/libgomp.c++/target-15.C: New test.
1145 * testsuite/libgomp.c++/target-16.C: New test.
1146 * testsuite/libgomp.c++/target-17.C: New test.
1147 * testsuite/libgomp.c++/target-18.C: New test.
1148 * testsuite/libgomp.c++/target-19.C: New test.
1150 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1152 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
1154 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1155 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1156 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1157 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1158 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1159 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1160 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1161 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1162 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1163 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
1164 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
1165 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1166 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1167 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
1169 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1171 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
1172 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
1173 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
1174 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
1175 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
1176 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
1177 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
1178 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
1180 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
1182 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
1183 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
1184 (GOMP_OFFLOAD_openacc_parallel): Likewise.
1185 * oacc-host.c (host_openacc_exec): Likewise.
1186 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
1188 2015-11-03 Julian Brown <julian@codesourcery.com>
1189 Thomas Schwinge <thomas@codesourcery.com>
1191 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
1192 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1193 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
1195 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
1196 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
1198 2015-11-03 James Norris <jnorris@codesourcery.com>
1200 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
1202 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
1204 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
1205 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
1206 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
1207 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
1208 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
1210 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
1212 * openacc.h (enum acc_device_t): Reformat. Ensure layout
1214 (enum acc_async_t): Reformat.
1215 (acc_on_device): Declare compatible with builtin and provide C++
1217 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
1219 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
1220 Cesar Philippidis <cesar@codesourcery.com>
1222 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
1223 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
1224 ... this. Add a description of the test at the top of the file.
1225 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
1226 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
1227 ... this. Add a description of the test at the top of the file.
1229 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1231 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
1232 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
1233 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
1234 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
1235 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
1236 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
1238 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1240 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
1243 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1246 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
1248 2015-10-27 James Norris <jnorris@codesourcery.com>
1250 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
1251 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
1253 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
1255 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
1256 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1258 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
1259 acc_device_nvidia usage.
1260 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1261 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1262 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
1264 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
1265 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
1268 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
1272 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
1273 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
1275 2015-10-23 Tom de Vries <tom@codesourcery.com>
1278 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
1280 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
1282 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
1284 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1286 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
1287 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
1289 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
1290 to 0 when mapnum is 0.
1292 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1294 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
1295 Cast to int from int32_t.
1297 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1298 Aldy Hernandez <aldyh@redhat.com>
1299 Ilya Verbin <ilya.verbin@intel.com>
1301 * config/linux/affinity.c (omp_get_place_num_procs,
1302 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
1303 * config/linux/doacross.h: New file.
1304 * config/posix/affinity.c (omp_get_place_num_procs,
1305 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
1306 * config/posix/doacross.h: New file.
1307 * env.c: Include gomp-constants.h.
1308 (struct gomp_task_icv): Rename run_sched_modifier to
1309 run_sched_chunk_size.
1310 (gomp_max_task_priority_var): New variable.
1311 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
1312 (handle_omp_display_env): Change _OPENMP value from 201307 to
1313 201511. Print OMP_MAX_TASK_PRIORITY.
1314 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
1315 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
1316 chunk_size and run_sched_modifier to run_sched_chunk_size.
1317 (omp_get_max_task_priority, omp_get_initial_device,
1318 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
1319 omp_get_partition_place_nums): New functions.
1320 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
1321 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
1323 (omp_get_num_places_, omp_get_place_num_procs_,
1324 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
1325 omp_get_place_proc_ids_8_, omp_get_place_num_,
1326 omp_get_partition_num_places_, omp_get_partition_place_nums_,
1327 omp_get_partition_place_nums_8_, omp_get_initial_device_,
1328 omp_get_max_task_priority_): New functions.
1329 * libgomp_g.h (GOMP_loop_doacross_static_start,
1330 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
1331 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
1332 GOMP_loop_ull_doacross_dynamic_start,
1333 GOMP_loop_ull_doacross_guided_start,
1334 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
1335 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
1336 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
1337 GOMP_target_data_41, GOMP_target_update_41,
1338 GOMP_target_enter_exit_data): New prototypes.
1339 (GOMP_task): Add prototype argument.
1340 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
1341 (struct gomp_doacross_work_share): New type.
1342 (struct gomp_work_share): Add doacross field.
1343 (struct gomp_task_icv): Rename run_sched_modifier to
1344 run_sched_chunk_size.
1345 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
1346 GOMP_TASK_UNDEFERRED. Add comments.
1347 (struct gomp_task_depend_entry): Add comments.
1348 (struct gomp_task): Likewise.
1349 (struct gomp_taskgroup): Likewise.
1350 (struct gomp_target_task): New type.
1351 (struct gomp_team): Add comment.
1352 (gomp_get_place_proc_ids_8, gomp_doacross_init,
1353 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
1354 gomp_create_target_task, gomp_target_task_fn): New prototypes.
1355 (struct target_var_desc): New type.
1356 (struct target_mem_desc): Adjust comment. Use struct
1357 target_var_desc instead of splay_tree_key for list.
1358 (REFCOUNT_INFINITY): Define.
1359 (struct splay_tree_key_s): Remove copy_from field.
1360 (struct gomp_device_descr): Add dev2dev_func field.
1361 (enum gomp_map_vars_kind): New enum.
1362 (gomp_map_vars): Add one argument.
1363 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
1364 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
1365 omp_get_place_num_procs, omp_get_place_num_procs_,
1366 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
1367 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
1368 omp_get_place_num_, omp_get_partition_num_places,
1369 omp_get_partition_num_places_, omp_get_partition_place_nums,
1370 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
1371 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
1372 omp_target_free, omp_target_is_present, omp_target_memcpy,
1373 omp_target_memcpy_rect, omp_target_associate_ptr and
1374 omp_target_disassociate_ptr.
1375 (GOMP_4.0.2): Renamed to ...
1376 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
1377 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
1378 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
1379 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
1380 GOMP_loop_doacross_static_start, GOMP_doacross_post,
1381 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
1382 GOMP_loop_ull_doacross_guided_start,
1383 GOMP_loop_ull_doacross_runtime_start,
1384 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
1385 GOMP_doacross_ull_wait.
1386 * libgomp.texi: Document omp_get_max_task_priority.
1387 Rename modifier argument to chunk_size for omp_set_schedule and
1388 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
1389 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
1390 to run_sched_chunk_size renaming.
1391 (GOMP_loop_ordered_runtime_start): Likewise.
1392 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1393 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
1394 GOMP_parallel_loop_runtime_start): New functions.
1395 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
1396 to run_sched_chunk_size renaming.
1397 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
1398 GOMP_loop_doacross_guided_start): New functions or aliases.
1399 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
1400 run_sched_modifier to run_sched_chunk_size renaming.
1401 (GOMP_loop_ull_ordered_runtime_start): Likewise.
1402 (gomp_loop_ull_doacross_static_start,
1403 gomp_loop_ull_doacross_dynamic_start,
1404 gomp_loop_ull_doacross_guided_start,
1405 GOMP_loop_ull_doacross_runtime_start): New functions.
1406 (GOMP_loop_ull_doacross_static_start,
1407 GOMP_loop_ull_doacross_dynamic_start,
1408 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
1409 * oacc-mem.c (acc_map_data, present_create_copy,
1410 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
1412 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
1413 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
1414 instead of false to gomp_map_vars.
1415 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
1416 * omp.h.in (omp_lock_hint_t): New type.
1417 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1418 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1419 omp_get_place_num, omp_get_partition_num_places,
1420 omp_get_partition_place_nums, omp_get_initial_device,
1421 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
1422 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
1423 omp_target_associate_ptr, omp_target_disassociate_ptr): New
1425 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
1426 (omp_lock_hint_none, omp_lock_hint_uncontended,
1427 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
1428 omp_lock_hint_speculative): New parameters.
1429 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1430 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1431 omp_get_place_num, omp_get_partition_num_places,
1432 omp_get_partition_place_nums, omp_get_initial_device,
1433 omp_get_max_task_priority): New interfaces.
1434 (omp_set_schedule, omp_get_schedule): Rename modifier argument
1436 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
1437 (omp_lock_hint_none, omp_lock_hint_uncontended,
1438 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
1439 omp_lock_hint_speculative): New parameters.
1440 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1441 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1442 omp_get_place_num, omp_get_partition_num_places,
1443 omp_get_partition_place_nums, omp_get_initial_device,
1444 omp_get_max_task_priority): New functions and subroutines.
1445 * ordered.c: Include stdarg.h and string.h.
1446 (MAX_COLLAPSED_BITS): Define.
1447 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
1448 gomp_doacross_ull_init, GOMP_doacross_ull_post,
1449 GOMP_doacross_ull_wait): New functions.
1450 * target.c: Include errno.h.
1451 (resolve_device): If device is not initialized, call
1452 gomp_init_device on it.
1453 (gomp_map_lookup): New function.
1454 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
1455 Don't bump refcount if REFCOUNT_INFINITY. Handle
1456 GOMP_MAP_ALWAYS_TO_P.
1457 (get_kind): Rename is_openacc argument to short_mapkind.
1458 (gomp_map_pointer): Use gomp_map_lookup.
1459 (gomp_map_fields_existing): New function.
1460 (gomp_map_vars): Rename is_openacc argument to short_mapkind
1461 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
1462 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
1463 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
1464 Adjust for tgt->list changed type and copy_from living in there.
1465 (gomp_copy_from_async): Adjust for tgt->list changed type and
1466 copy_from living in there.
1467 (gomp_unmap_vars): Likewise.
1468 (gomp_update): Likewise. Rename is_openacc argument to
1469 short_mapkind. Don't fail if object is not mapped.
1470 (gomp_load_image_to_device): Initialize refcount to
1472 (gomp_target_fallback): New function.
1473 (gomp_get_target_fn_addr): Likewise.
1474 (GOMP_target): Adjust gomp_map_vars caller, use
1475 gomp_get_target_fn_addr and gomp_target_fallback.
1476 (GOMP_target_41): New function.
1477 (gomp_target_data_fallback): New function.
1478 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
1479 (GOMP_target_data_41): New function.
1480 (GOMP_target_update): Adjust gomp_update caller.
1481 (GOMP_target_update_41): New function.
1482 (gomp_exit_data, GOMP_target_enter_exit_data,
1483 gomp_target_task_fn, omp_target_alloc, omp_target_free,
1484 omp_target_is_present, omp_target_memcpy,
1485 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
1486 omp_target_associate_ptr, omp_target_disassociate_ptr,
1487 gomp_load_plugin_for_device): New functions.
1488 * task.c: Include gomp-constants.h. Include taskloop.c
1489 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
1490 (gomp_task_handle_depend): New function.
1491 (GOMP_task): Use it. Add priority argument. Use
1492 gomp-constant.h constants instead of hardcoded numbers.
1493 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
1494 (gomp_create_target_task): New function.
1495 (verify_children_queue, verify_taskgroup_queue,
1496 verify_task_queue): New functions.
1497 (gomp_task_run_pre): Call verify_*_queue functions.
1498 If an upcoming tied task is about to leave the sibling or
1499 taskgroup queues in an invalid state, adjust appropriately.
1500 Remove taskgroup argument. Add comments.
1501 (gomp_task_run_post_handle_dependers): Add comments.
1502 (gomp_task_run_post_remove_parent): Likewise.
1503 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
1504 (GOMP_taskwait): Likewise. Add comments.
1505 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
1506 problem such that the first non parent_depends_on task does not
1507 end up at the end of the children queue.
1508 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
1509 GOMP_TASK_UNDEFERRED.
1510 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
1511 * taskloop.c: New file.
1512 * testsuite/lib/libgomp.exp
1513 (check_effective_target_offload_device_nonshared_as): New proc.
1514 * testsuite/libgomp.c/affinity-2.c: New test.
1515 * testsuite/libgomp.c/doacross-1.c: New test.
1516 * testsuite/libgomp.c/doacross-2.c: New test.
1517 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
1518 Add map clause to target.
1519 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
1520 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
1521 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
1522 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
1523 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
1525 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
1526 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
1527 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
1528 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
1529 not defined. Use those where needed.
1530 * testsuite/libgomp.c/for-4.c: New test.
1531 * testsuite/libgomp.c/for-5.c: New test.
1532 * testsuite/libgomp.c/for-6.c: New test.
1533 * testsuite/libgomp.c/linear-1.c: New test.
1534 * testsuite/libgomp.c/ordered-4.c: New test.
1535 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
1536 only allowed on the loop iterator.
1537 * testsuite/libgomp.c/pr66199-3.c: New test.
1538 * testsuite/libgomp.c/pr66199-4.c: New test.
1539 * testsuite/libgomp.c/reduction-7.c: New test.
1540 * testsuite/libgomp.c/reduction-8.c: New test.
1541 * testsuite/libgomp.c/reduction-9.c: New test.
1542 * testsuite/libgomp.c/reduction-10.c: New test.
1543 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
1545 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
1546 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
1547 * testsuite/libgomp.c/target-11.c: New test.
1548 * testsuite/libgomp.c/target-12.c: New test.
1549 * testsuite/libgomp.c/target-13.c: New test.
1550 * testsuite/libgomp.c/target-14.c: New test.
1551 * testsuite/libgomp.c/target-15.c: New test.
1552 * testsuite/libgomp.c/target-16.c: New test.
1553 * testsuite/libgomp.c/target-17.c: New test.
1554 * testsuite/libgomp.c/target-18.c: New test.
1555 * testsuite/libgomp.c/target-19.c: New test.
1556 * testsuite/libgomp.c/target-20.c: New test.
1557 * testsuite/libgomp.c/target-21.c: New test.
1558 * testsuite/libgomp.c/target-22.c: New test.
1559 * testsuite/libgomp.c/target-23.c: New test.
1560 * testsuite/libgomp.c/target-24.c: New test.
1561 * testsuite/libgomp.c/target-25.c: New test.
1562 * testsuite/libgomp.c/target-26.c: New test.
1563 * testsuite/libgomp.c/target-27.c: New test.
1564 * testsuite/libgomp.c/taskloop-1.c: New test.
1565 * testsuite/libgomp.c/taskloop-2.c: New test.
1566 * testsuite/libgomp.c/taskloop-3.c: New test.
1567 * testsuite/libgomp.c/taskloop-4.c: New test.
1568 * testsuite/libgomp.c++/ctor-13.C: New test.
1569 * testsuite/libgomp.c++/doacross-1.C: New test.
1570 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
1571 Replace offload_device with offload_device_nonshared_as.
1572 * testsuite/libgomp.c++/for-12.C: New test.
1573 * testsuite/libgomp.c++/for-13.C: New test.
1574 * testsuite/libgomp.c++/for-14.C: New test.
1575 * testsuite/libgomp.c++/linear-1.C: New test.
1576 * testsuite/libgomp.c++/member-1.C: New test.
1577 * testsuite/libgomp.c++/member-2.C: New test.
1578 * testsuite/libgomp.c++/member-3.C: New test.
1579 * testsuite/libgomp.c++/member-4.C: New test.
1580 * testsuite/libgomp.c++/member-5.C: New test.
1581 * testsuite/libgomp.c++/ordered-1.C: New test.
1582 * testsuite/libgomp.c++/reduction-5.C: New test.
1583 * testsuite/libgomp.c++/reduction-6.C: New test.
1584 * testsuite/libgomp.c++/reduction-7.C: New test.
1585 * testsuite/libgomp.c++/reduction-8.C: New test.
1586 * testsuite/libgomp.c++/reduction-9.C: New test.
1587 * testsuite/libgomp.c++/reduction-10.C: New test.
1588 * testsuite/libgomp.c++/reference-1.C: New test.
1589 * testsuite/libgomp.c++/simd14.C: New test.
1590 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
1591 * testsuite/libgomp.c++/target-5.C: New test.
1592 * testsuite/libgomp.c++/target-6.C: New test.
1593 * testsuite/libgomp.c++/target-7.C: New test.
1594 * testsuite/libgomp.c++/target-8.C: New test.
1595 * testsuite/libgomp.c++/target-9.C: New test.
1596 * testsuite/libgomp.c++/target-10.C: New test.
1597 * testsuite/libgomp.c++/target-11.C: New test.
1598 * testsuite/libgomp.c++/target-12.C: New test.
1599 * testsuite/libgomp.c++/taskloop-1.C: New test.
1600 * testsuite/libgomp.c++/taskloop-2.C: New test.
1601 * testsuite/libgomp.c++/taskloop-3.C: New test.
1602 * testsuite/libgomp.c++/taskloop-4.C: New test.
1603 * testsuite/libgomp.c++/taskloop-5.C: New test.
1604 * testsuite/libgomp.c++/taskloop-6.C: New test.
1605 * testsuite/libgomp.c++/taskloop-7.C: New test.
1606 * testsuite/libgomp.c++/taskloop-8.C: New test.
1607 * testsuite/libgomp.c++/taskloop-9.C: New test.
1608 * testsuite/libgomp.fortran/affinity1.f90: New test.
1609 * testsuite/libgomp.fortran/affinity2.f90: New test.
1611 2015-10-13 Tom de Vries <tom@codesourcery.com>
1613 PR tree-optimization/67476
1614 * testsuite/libgomp.c/autopar-3.c: New test.
1615 * testsuite/libgomp.c/autopar-4.c: New test.
1616 * testsuite/libgomp.c/autopar-5.c: New test.
1617 * testsuite/libgomp.c/autopar-6.c: New test.
1618 * testsuite/libgomp.c/autopar-7.c: New test.
1619 * testsuite/libgomp.c/autopar-8.c: New test.
1621 2015-10-12 James Norris <jnorris@codesourcery.com>
1623 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
1626 2015-10-09 David Malcolm <dmalcolm@redhat.com>
1628 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
1631 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
1633 * oacc-ptx.h: Remove file, moving its content into...
1634 * config/nvptx/fortran.c: ... here...
1635 * config/nvptx/oacc-init.c: ..., here...
1636 * config/nvptx/oacc-parallel.c: ..., and here.
1637 * config/nvptx/openacc.f90: New file.
1638 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
1639 (link_ptx): Don't link in predefined bits of PTX code.
1641 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
1642 Bernd Schmidt <bernds@codesourcery.com>
1644 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
1645 (struct targ_ptx_obj): New.
1646 (nvptx_tdata): Move earlier, change data format.
1647 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
1649 (GOMP_OFFLOAD_load_image): Adjust.
1651 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
1653 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
1654 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1655 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1656 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1657 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1658 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1659 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1660 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1661 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1662 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1663 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1664 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1665 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1666 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1667 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1668 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1669 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1670 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1671 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1672 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1673 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1674 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1675 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1676 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1677 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1678 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1679 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1680 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1681 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1682 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1683 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1684 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1685 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1686 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1687 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1688 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1689 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1690 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1691 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1692 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1693 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1694 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1695 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1696 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1697 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1698 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1699 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1700 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1701 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1702 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1703 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1704 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1705 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1706 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1707 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1708 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1709 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1710 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1711 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1712 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1713 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1714 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1715 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1717 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1719 * oacc-init.c (acc_on_device): Force optimization level.
1721 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1723 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
1724 (cuda_errlist): Delete.
1725 (cuda_error): Reimplement.
1727 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1729 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
1731 * libgomp.map (GOACC_parallel_keyed): New.
1732 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
1734 (GOACC_parallel_keyed): New interface. Lose geometry arguments
1735 and take keyed varargs list. Adjust call to exec_func.
1736 (GOACC_parallel): Force host fallback.
1737 * libgomp_g.h (GOACC_parallel): Remove.
1738 (GOACC_parallel_keyed): Declare.
1739 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
1740 (stuct targ_gn_descriptor): Replace name field with launch field.
1741 (nvptx_exec): Lose separate geometry args, take array. Process
1742 dynamic dimensions and adjust.
1743 (struct nvptx_tdata): Replace fn_names field with fn_descs.
1744 (GOMP_OFFLOAD_load_image): Adjust for change in function table
1746 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
1748 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
1751 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1754 * oacc-int.h (goacc_host_init): Add declaration.
1755 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
1756 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
1758 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1759 Sebastian Pop <s.pop@samsung.com>
1761 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
1763 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
1764 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
1765 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
1766 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
1767 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1769 2015-09-03 Jakub Jelinek <jakub@redhat.com>
1771 * configure.tgt: Add missing ;; in between nvptx and rtems
1774 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1776 * config/posix/pool.h (gomp_adjust_thread_attr): New.
1777 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
1778 (gomp_thread_pool_reservoir): Add priority member.
1779 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
1781 (parse_thread_pools): Likewise.
1782 * team.c (gomp_team_start): Call configuration provided
1783 gomp_adjust_thread_attr(). Destroy thread attributes if
1785 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
1787 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1789 * config/posix/pool.h: New.
1790 * config/rtems/pool.h: Likewise.
1791 * config/rtems/proc.c: Likewise.
1792 * libgomp.h (gomp_thread_destructor): Declare.
1793 * team.c: Include configuration provided "pool.h".
1794 (gomp_get_thread_pool): Define in configuration.
1795 (gomp_team_end): Call configuration defined
1796 gomp_release_thread_pool().
1798 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1800 * config/rtems/bar.c: New.
1801 * config/rtems/bar.h: Likewise.
1802 * config/rtems/mutex.c: Likewise.
1803 * config/rtems/mutex.h: Likewise.
1804 * config/rtems/sem.c: Likewise.
1805 * config/rtems/sem.h: Likewise.
1806 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
1807 <sys/lock.h> header file.
1808 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
1809 supported by Newlib.
1810 * configure: Regenerate.
1812 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1814 * team.c (gomp_new_thread_pool): Delete and move content to ...
1815 (gomp_get_thread_pool): ... new function. Allocate and
1816 initialize thread pool on demand.
1817 (get_last_team): Use gomp_get_thread_pool().
1818 (gomp_team_start): Delete thread pool initialization.
1820 2015-09-03 Tom de Vries <tom@codesourcery.com>
1822 PR tree-optimization/65637
1823 * testsuite/libgomp.c/autopar-2.c: New test.
1825 2015-08-29 Tom de Vries <tom@codesourcery.com>
1827 PR tree-optimization/46193
1828 * testsuite/libgomp.c/pr46193.c: New test.
1830 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
1833 * libgomp.map: Add 4.0.2 version.
1834 * target.c (offload_image_descr): Add version field.
1835 (gomp_load_image_to_device): Add version argument. Adjust plugin
1836 call. Improve load mismatch diagnostic.
1837 (gomp_unload_image_from_device): Add version argument. Adjust plugin
1839 (GOMP_offload_regster): Make stub function, move bulk to ...
1840 (GOMP_offload_register_ver): ... here. Process version argument.
1841 (GOMP_offload_unregister): Make stub function, move bulk to ...
1842 (GOMP_offload_unregister_ver): ... here. Process version argument.
1843 (gomp_init_device): Process version field.
1844 (gomp_unload_device): Process version field.
1845 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
1846 macros. Check plugin version.
1847 * libgomp.h (gomp_device_descr): Add version function field. Adjust
1848 loader and unloader types.
1849 * oacc-host.c: Include gomp-constants.h.
1850 (host_version): New.
1851 (host_load_image, host_unload_image): Adjust.
1852 (host_dispatch): Add host_version.
1853 * plugin/plugin-nvptx.c: Include gomp-constants.h.
1854 (GOMP_OFFLOAD_version): New.
1855 (GOMP_OFFLOAD_load_image): Add version arg and check it.
1856 (GOMP_OFFLOAD_unload_image): Likewise.
1857 * plugin/plugin-host.c: Include gomp-constants.h.
1858 (GOMP_OFFLOAD_version): New.
1859 (GOMP_OFFLOAD_load_image): Add version arg.
1860 (GOMP_OFFLOAD_unload_image): Likewise.
1862 2015-08-24 Tom de Vries <tom@codesourcery.com>
1864 PR tree-optimization/65468
1865 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
1867 2015-08-24 Tom de Vries <tom@codesourcery.com>
1869 PR tree-optimization/65468
1870 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
1872 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
1876 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
1877 (gomp_iter_guided_next): Idem.
1878 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
1879 (gomp_iter_ull_guided_next): Idem.
1880 * config/linux/wait.h (do_spin): Idem.
1882 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1884 * libgomp-plugin.h (enum offload_target_type): Remove
1885 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
1886 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
1887 * openacc.h (enum acc_device_t): Likewise.
1888 * openacc_lib.h: Likewise.
1889 * oacc-init.c (name_of_acc_device_t): Don't handle it.
1890 (acc_on_device): Just use __builtin_acc_on_device.
1891 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
1892 of acc_on_device builtin.
1893 * plugin/plugin-host.h: Remove file.
1894 * plugin/plugin-host.c: Likewise, but salvage some content into...
1895 * oacc-host.c: ... this file.
1896 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
1897 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
1898 * Makefile.in: Regenerate.
1899 * configure: Likewise.
1900 * testsuite/lib/libgomp.exp
1901 (check_effective_target_openacc_host_nonshm_selected): Remove.
1902 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
1903 ACC_DEVICE_TYPE=host_nonshm.
1904 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1905 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1906 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1907 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1908 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1909 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1911 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1912 Jakub Jelinek <jakub@redhat.com>
1914 * config/nvptx/affinity.c: New file.
1915 * config/nvptx/alloc.c: Likewise.
1916 * config/nvptx/bar.c: Likewise.
1917 * config/nvptx/barrier.c: Likewise.
1918 * config/nvptx/critical.c: Likewise.
1919 * config/nvptx/env.c: Likewise.
1920 * config/nvptx/error.c: Likewise.
1921 * config/nvptx/fortran.c: Likewise.
1922 * config/nvptx/iter.c: Likewise.
1923 * config/nvptx/iter_ull.c: Likewise.
1924 * config/nvptx/libgomp-plugin.c: Likewise.
1925 * config/nvptx/lock.c: Likewise.
1926 * config/nvptx/loop.c: Likewise.
1927 * config/nvptx/loop_ull.c: Likewise.
1928 * config/nvptx/mutex.c: Likewise.
1929 * config/nvptx/oacc-async.c: Likewise.
1930 * config/nvptx/oacc-cuda.c: Likewise.
1931 * config/nvptx/oacc-host.c: Likewise.
1932 * config/nvptx/oacc-init.c: Likewise.
1933 * config/nvptx/oacc-mem.c: Likewise.
1934 * config/nvptx/oacc-parallel.c: Likewise.
1935 * config/nvptx/oacc-plugin.c: Likewise.
1936 * config/nvptx/omp-lock.h: Likewise.
1937 * config/nvptx/ordered.c: Likewise.
1938 * config/nvptx/parallel.c: Likewise.
1939 * config/nvptx/proc.c: Likewise.
1940 * config/nvptx/ptrlock.c: Likewise.
1941 * config/nvptx/sections.c: Likewise.
1942 * config/nvptx/sem.c: Likewise.
1943 * config/nvptx/single.c: Likewise.
1944 * config/nvptx/splay-tree.c: Likewise.
1945 * config/nvptx/target.c: Likewise.
1946 * config/nvptx/task.c: Likewise.
1947 * config/nvptx/team.c: Likewise.
1948 * config/nvptx/time.c: Likewise.
1949 * config/nvptx/work.c: Likewise.
1950 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
1951 * configure: Regenerate.
1952 * configure.tgt (config_path): Set to "nvptx" for target
1955 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1957 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
1959 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
1961 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
1962 (cuda_errlist): Constify.
1963 (errmsg): Move into ...
1964 (cuda_error): ... here. Make smaller.
1965 (_XSTR, _STR): Delete.
1966 (cuda_synames): Delete.
1967 (verify_device_library): Delete.
1968 (nvptx_init): Don't call it.
1970 2015-07-28 Tom de Vries <tom@codesourcery.com>
1972 * testsuite/libgomp.c/uns-outer-4.c: New test.
1974 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
1976 * testsuite/libgomp.c/pr66714.c: New test.
1978 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
1981 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
1982 (fib_ref): New function.
1983 (fib): Correct corner cases in the recursion.
1984 (main): Replace the non-simd loop with fib_ref call.
1985 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
1987 (fibonacci): Lower the parameter N to 30. Correct accordingly check
1988 for the last array element value. Replace the non-simd loop with
1989 fib_ref call. Remove redundant b_ref array. Remove the comparison
1990 of the last array element with according Fibonacci sequence element.
1991 (fib): Correct corner cases in the recursion.
1993 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
1995 * target.c (gomp_offload_image_to_device): Rename to ...
1996 (gomp_load_image_to_device): ... here.
1997 (GOMP_offload_register): Adjust call.
1998 (gomp_init_device): Likewise.
1999 (gomp_unload_image_from_device): New. Broken out of ...
2000 (GOMP_offload_unregister): ... here. Call it.
2001 (gomp_unload_device): New.
2002 * libgomp.h (gomp_unload_device): Declare.
2003 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
2006 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
2008 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
2010 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
2012 (goacc_waits): Move !num_waits handling to ...
2013 (GOACC_wait): ... here, the only caller that might have zero waits.
2015 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
2016 (struct ptx_image_data): Move earlier, add fns field.
2017 (struct ptx_device): Add images and image_lock fields.
2018 (ptx_images, ptx_image_lock): Delete.
2019 (nvptx_open_device): Initialize images and image_lock fields.
2020 (nvptx_close_device): Destroy image_lock.
2021 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
2022 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
2025 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
2027 * target.c (GOMP_offload_register): Use int for device type arg.
2028 (GOMP_offload_unregister): Likewise.
2030 * target.c (struct_offload_image_descr): Constify host_table.
2031 (gomp_offload_image_to_device): Likewise.
2032 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
2034 * libgomp.h (gomp_device_descr): Constify target data arguments.
2035 * target.c (struct offload_image_descr): Constify target_data.
2036 (gomp_offload_image_to_device): Likewise.
2037 (GOMP_offload_register): Likewise.
2038 (GOMP_offload_unrefister): Likewise.
2039 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
2040 GOMP_OFFLOAD_unload_image): Constify target data.
2041 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
2042 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
2044 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
2046 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
2047 Workaround driver library const error.
2048 (struct nvptx_tdata, nvptx_tdata_t): New.
2049 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
2052 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
2054 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
2055 of EPS parameter from integer to real.
2056 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
2057 type of EPS parameter from integer to real.
2059 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
2061 * team.c (get_last_team): New.
2062 (gomp_new_team): Recycle last non-nested team if possible.
2063 (gomp_team_end): Move team work share list free lock destruction
2065 (free_team): ... here.
2067 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
2069 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
2070 and ref from int to double. Replaced their comparison with
2071 an inequality of their difference and EPS.
2072 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
2073 comparison of pri and a reference number with an inequality of their
2075 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
2076 the comparison of sum and sum_ref with an inequality of their
2078 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
2079 the comparison of pri and a reference number with an inequality of
2080 their difference and EPS.
2082 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
2084 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
2085 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
2086 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
2087 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
2088 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
2089 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
2090 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
2091 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
2092 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
2093 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
2094 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
2095 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
2096 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
2098 (vec_mult): Likewise. Add #pragma omp taskwait.
2099 (main): Adjust caller.
2100 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
2101 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
2102 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
2103 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
2104 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
2105 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
2106 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
2107 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
2108 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
2109 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
2110 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
2111 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
2112 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
2113 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
2114 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
2115 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
2116 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
2117 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
2118 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
2119 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
2120 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
2121 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
2122 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
2123 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
2124 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
2125 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
2126 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
2127 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
2128 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
2129 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
2130 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
2131 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
2132 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
2133 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
2134 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
2135 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
2136 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
2137 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
2138 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
2139 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
2140 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
2141 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
2142 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
2143 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
2144 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
2145 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
2146 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
2147 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
2148 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
2149 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
2150 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
2151 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
2152 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
2153 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
2154 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
2155 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
2156 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
2157 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
2158 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
2159 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
2160 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
2161 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
2162 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
2163 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
2164 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
2165 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
2166 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
2167 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
2168 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
2169 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
2170 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
2171 (vec_mult): Add !$omp taskwait.
2172 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
2173 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
2174 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
2175 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
2176 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
2177 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
2178 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
2179 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
2180 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
2181 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
2182 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
2183 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
2184 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
2185 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
2186 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
2187 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
2188 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
2189 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
2190 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
2191 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
2192 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
2193 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
2194 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
2195 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
2196 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
2197 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
2198 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
2199 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
2200 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
2201 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
2202 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
2203 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
2204 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
2205 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
2206 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
2207 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
2208 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
2209 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
2210 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
2211 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
2212 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
2213 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
2214 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
2215 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
2216 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
2217 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
2218 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
2219 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
2220 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
2221 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
2222 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
2223 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
2224 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
2225 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
2226 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
2227 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
2228 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
2229 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
2230 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
2231 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
2232 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
2233 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
2234 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
2235 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
2236 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
2237 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
2238 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
2240 2015-07-10 Tom de Vries <tom@codesourcery.com>
2242 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
2243 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
2245 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2248 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
2249 in a 64-bit configuration.
2250 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
2251 offloading testing if no such device is available.
2252 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2253 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2255 2015-07-08 Tom de Vries <tom@codesourcery.com>
2257 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
2259 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2261 2015-07-07 Tom de Vries <tom@codesourcery.com>
2263 PR tree-optimization/66642
2264 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
2265 iteration count case.
2266 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
2267 function, factor out of ...
2268 (main): ... here. Test low iteration count case.
2270 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
2272 * libgomp.h (gomp_thread_pool): Comment last_team field.
2274 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
2276 * testsuite/libgomp.c++/pr66702-1.C: Require
2277 vect_simd_clones effective target.
2278 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
2280 2015-06-30 Tom de Vries <tom@codesourcery.com>
2282 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
2283 already set. Use DEFAULT_CFLAGS in dg-runtest.
2284 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
2287 2015-06-30 Tom de Vries <tom@codesourcery.com>
2289 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
2290 already set. Use DEFAULT_CFLAGS in dg-runtest.
2291 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
2292 * testsuite/libgomp.c++/pr64824.C: Same.
2293 * testsuite/libgomp.c++/pr64868.C: Same.
2294 * testsuite/libgomp.c++/pr66199-1.C: Same.
2295 * testsuite/libgomp.c++/pr66199-2.C: Same.
2296 * testsuite/libgomp.c++/target-2.C: Same.
2297 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
2298 -std=<standard> option.
2299 * testsuite/libgomp.c++/udr-11.C: Same.
2300 * testsuite/libgomp.c++/udr-12.C: Same.
2301 * testsuite/libgomp.c++/udr-13.C: Same.
2302 * testsuite/libgomp.c++/udr-14.C: Same.
2303 * testsuite/libgomp.c++/udr-15.C: Same.
2304 * testsuite/libgomp.c++/udr-16.C: Same.
2305 * testsuite/libgomp.c++/udr-17.C: Same.
2306 * testsuite/libgomp.c++/udr-18.C: Same.
2307 * testsuite/libgomp.c++/udr-19.C: Same.
2308 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
2309 * testsuite/libgomp.c++/simd-1.C: Same.
2310 * testsuite/libgomp.c++/simd-2.C: Same.
2311 * testsuite/libgomp.c++/simd-3.C: Same.
2312 * testsuite/libgomp.c++/simd-4.C: Same.
2313 * testsuite/libgomp.c++/simd-5.C: Same.
2314 * testsuite/libgomp.c++/simd-6.C: Same.
2315 * testsuite/libgomp.c++/simd-7.C: Same.
2316 * testsuite/libgomp.c++/simd-8.C: Same.
2317 * testsuite/libgomp.c++/simd-9.C: Same.
2318 * testsuite/libgomp.c++/simd10.C: Same.
2319 * testsuite/libgomp.c++/simd11.C: Same.
2320 * testsuite/libgomp.c++/simd12.C: Same.
2321 * testsuite/libgomp.c++/simd13.C: Same.
2323 2015-06-30 Jakub Jelinek <jakub@redhat.com>
2326 * testsuite/libgomp.c++/pr66702-1.C: New test.
2327 * testsuite/libgomp.c++/pr66702-2.C: New test.
2329 2015-06-30 Tom de Vries <tom@codesourcery.com>
2331 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
2332 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
2333 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
2334 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
2336 2015-06-30 Tom de Vries <tom@codesourcery.com>
2338 PR tree-optimization/66652
2339 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
2340 using restrict pointers.
2341 (main): Add arguments to calls to f.
2342 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2344 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
2346 * configure.ac: Fix check for header <sys/sysctl.h>.
2347 * configure: Regenerate.
2348 * config.h.in: Likewise.
2350 2015-06-23 Tom de Vries <tom@codesourcery.com>
2352 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
2354 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
2356 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
2358 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
2362 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
2363 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2365 2015-06-15 Tom de Vries <tom@codesourcery.com>
2367 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
2368 dg-additional-options for any remaining options.
2369 * testsuite/libgomp.c/atomic-2.c: Same.
2370 * testsuite/libgomp.c/atomic-4.c: Same.
2371 * testsuite/libgomp.c/atomic-5.c: Same.
2372 * testsuite/libgomp.c/atomic-6.c: Same.
2373 * testsuite/libgomp.c/autopar-1.c: Same.
2374 * testsuite/libgomp.c/copyin-1.c: Same.
2375 * testsuite/libgomp.c/copyin-2.c: Same.
2376 * testsuite/libgomp.c/copyin-3.c: Same.
2377 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
2378 * testsuite/libgomp.c/nestedfn-5.c: Same.
2379 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
2380 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
2381 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
2382 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2383 * testsuite/libgomp.c/pr32362-1.c: Same.
2384 * testsuite/libgomp.c/pr32362-2.c: Same.
2385 * testsuite/libgomp.c/pr32362-3.c: Same.
2386 * testsuite/libgomp.c/pr39591-1.c: Same.
2387 * testsuite/libgomp.c/pr39591-2.c: Same.
2388 * testsuite/libgomp.c/pr39591-3.c: Same.
2389 * testsuite/libgomp.c/pr58392.c: Same.
2390 * testsuite/libgomp.c/pr58756.c: Same.
2391 * testsuite/libgomp.c/simd-1.c: Same.
2392 * testsuite/libgomp.c/simd-10.c: Same.
2393 * testsuite/libgomp.c/simd-11.c: Same.
2394 * testsuite/libgomp.c/simd-12.c: Same.
2395 * testsuite/libgomp.c/simd-13.c: Same.
2396 * testsuite/libgomp.c/simd-14.c: Same.
2397 * testsuite/libgomp.c/simd-15.c: Same.
2398 * testsuite/libgomp.c/simd-2.c: Same.
2399 * testsuite/libgomp.c/simd-3.c: Same.
2400 * testsuite/libgomp.c/simd-4.c: Same.
2401 * testsuite/libgomp.c/simd-5.c: Same.
2402 * testsuite/libgomp.c/simd-6.c: Same.
2403 * testsuite/libgomp.c/simd-7.c: Same.
2404 * testsuite/libgomp.c/simd-8.c: Same.
2405 * testsuite/libgomp.c/simd-9.c: Same.
2407 2015-06-15 Tom de Vries <tom@codesourcery.com>
2409 * testsuite/libgomp.c/pr35625.c: Fix typo.
2411 2015-06-15 Tom de Vries <tom@codesourcery.com>
2413 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
2415 * testsuite/libgomp.c/atomic-3.c: Same.
2416 * testsuite/libgomp.c/debug-1.c: Same.
2417 * testsuite/libgomp.c/nqueens-1.c: Same.
2418 * testsuite/libgomp.c/pr26171.c: Same.
2419 * testsuite/libgomp.c/pr48591.c: Same.
2420 * testsuite/libgomp.c/pr64824.c: Same.
2421 * testsuite/libgomp.c/pr64868.c: Same.
2422 * testsuite/libgomp.c/pr66133.c: Same.
2423 * testsuite/libgomp.c/pr66199-1.c: Same.
2424 * testsuite/libgomp.c/pr66199-2.c: Same.
2425 * testsuite/libgomp.c/target-8.c: Same.
2427 2015-06-15 Tom de Vries <tom@codesourcery.com>
2429 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
2431 * testsuite/libgomp.c/for-1.c: Same.
2432 * testsuite/libgomp.c/for-2.c: Same.
2433 * testsuite/libgomp.c/for-3.c: Same.
2434 * testsuite/libgomp.c/pr35625.c: Same.
2435 * testsuite/libgomp.c/pr39154.c: Same.
2436 * testsuite/libgomp.c/simd-16.c: Same.
2437 * testsuite/libgomp.c/simd-17.c: Same.
2439 2015-06-13 Tom de Vries <tom@codesourcery.com>
2441 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
2443 2015-06-13 Tom de Vries <tom@codesourcery.com>
2445 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
2446 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2447 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
2449 (main): Use N instead of hardcoded constants.
2451 2015-06-05 Tom de Vries <tom@codesourcery.com>
2453 merge from gomp4 branch:
2454 2015-05-28 Tom de Vries <tom@codesourcery.com>
2456 PR tree-optimization/65443
2457 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
2458 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
2459 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
2461 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2463 * testsuite/libgomp.graphite/bounds.c: Adjust for
2464 cleanup-tree-dump removal.
2465 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
2466 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2467 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2468 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
2469 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2470 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2471 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2472 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2473 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2474 * testsuite/libgomp.graphite/pr41118.c: Likewise.
2476 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
2478 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
2479 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
2480 (futex_wake) [!__x86_64__]: Ditto.
2482 2015-05-28 Julian Brown <julian@codesourcery.com>
2484 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
2485 function comment. Only call gomp_fatal if new argument is true.
2486 (acc_dev_num_out_of_range): New function.
2487 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
2488 acc_dev_num_out_of_range as appropriate.
2489 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
2490 (acc_get_device_num, acc_set_device_num): Update calls to
2492 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
2495 2015-05-28 Julian Brown <julian@codesourcery.com>
2498 * oacc-init.c (plugin/plugin-host.h): Include.
2499 (acc_on_device): Check whether we're in an offloaded region for
2501 plugin. Don't use __builtin_acc_on_device.
2502 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
2503 nonshm_exec flag in thread-local data.
2504 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
2505 data for host_nonshm plugin.
2506 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
2507 for host_nonshm plugin.
2508 * plugin/plugin-host.h: New.
2510 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2512 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
2514 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2516 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
2518 (FUTEX_PRIVATE_FLAG): Remove L suffix.
2519 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
2522 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2524 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
2526 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
2528 * target.c (gomp_map_pointer): New function abstracting out
2529 GOMP_MAP_POINTER handling.
2530 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
2533 2015-05-19 Jakub Jelinek <jakub@redhat.com>
2536 * testsuite/libgomp.c/pr66199-1.c: New test.
2537 * testsuite/libgomp.c/pr66199-2.c: New test.
2538 * testsuite/libgomp.c++/pr66199-1.C: New test.
2539 * testsuite/libgomp.c++/pr66199-2.C: New test.
2540 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
2541 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
2543 2015-05-19 Julian Brown <julian@codesourcery.com>
2545 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
2548 2015-05-13 Jakub Jelinek <jakub@redhat.com>
2551 * testsuite/libgomp.c/pr66133.c: New test.
2553 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2555 * Makefile.in: Regenerated with automake-1.11.6.
2556 * aclocal.m4: Likewise.
2557 * config.h.in: Likewise.
2558 * configure: Likewise.
2559 * testsuite/Makefile.in: Likewise.
2561 2015-05-08 Jason Merrill <jason@redhat.com>
2563 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
2566 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
2568 2015-05-06 Julian Brown <julian@codesourcery.com>
2570 * oacc-init.c (acc_device_lock): Add explanatory comment.
2571 (resolve_device): Add comment about locking requirement.
2572 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
2573 gomp_init_device and gomp_fini_device calls.
2574 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
2575 (acc_get_device_num, acc_set_device_num): Add locking around
2576 resolve_device and gomp_init_device calls.
2578 2015-05-06 Julian Brown <julian@codesourcery.com>
2580 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
2581 goacc_thread_lock on error paths.
2582 * oacc-mem.c (lookup_host): Remove locking from function. Note
2583 locking requirement for caller in function comment.
2584 (lookup_dev): Likewise.
2585 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
2586 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
2587 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
2590 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
2594 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
2595 don't expect "0x" prefix for "%p" format specifier, don't expect
2596 "(nil)" for NULL pointer.
2597 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2598 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2599 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2600 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2601 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2602 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2603 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2604 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2605 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2606 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2607 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2608 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2609 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2610 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2611 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2612 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2613 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2614 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2615 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2616 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2617 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2618 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2619 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2620 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2621 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2622 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2623 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2624 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2625 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
2626 accurately specify what we're looking for.
2627 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2628 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2629 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2630 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2631 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2633 2015-04-30 James Norris <jnorris@codesourcery.com>
2636 * testsuite/lib/libgomp.exp
2637 (check_effective_target_openacc_host_selected)
2638 (check_effective_target_openacc_host_nonshm_selected): New
2640 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
2642 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
2643 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
2644 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2645 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2646 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2647 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2648 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2649 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2650 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2651 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2652 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2653 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2654 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2655 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2656 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2657 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2658 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2659 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2660 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2661 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2662 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2663 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2664 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2665 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2666 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2667 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2668 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2669 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2670 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2671 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2672 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2673 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2674 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2675 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2676 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2677 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2678 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2679 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2680 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2681 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2682 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2683 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2684 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2686 2015-04-08 Julian Brown <julian@codesourcery.com>
2688 * libgomp.h (target_mem_desc: Remove mem_map field.
2689 (acc_dispatch_t): Remove open_device_func, close_device_func,
2690 get_device_num_func, set_device_num_func, target_data members.
2691 Change create_thread_data_func argument to device number instead of
2693 * oacc-async.c (assert.h): Include.
2694 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
2695 (acc_wait_all, acc_wait_all_async): Use current host thread's
2696 active device, not base_dev.
2697 * oacc-cuda.c (acc_get_current_cuda_device)
2698 (acc_get_current_cuda_context, acc_get_cuda_stream)
2699 (acc_set_cuda_stream): Likewise.
2700 * oacc-host.c (host_dispatch): Don't set open_device_func,
2701 close_device_func, get_device_num_func or set_device_num_func.
2702 * oacc-init.c (base_dev, init_key): Remove.
2703 (cached_base_dev): New.
2704 (name_of_acc_device_t): New.
2705 (acc_init_1): Initialise default-numbered device, not zeroth.
2706 (acc_shutdown_1): Close all devices of a given type.
2707 (goacc_destroy_thread): Don't use base_dev.
2708 (lazy_open, lazy_init, lazy_init_and_open): Remove.
2709 (goacc_attach_host_thread_to_device): New.
2710 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
2711 (acc_get_num_devices): Don't use base_dev.
2712 (acc_set_device_type): Reimplement.
2713 (acc_get_device_type): Don't use base_dev.
2714 (acc_get_device_num): Tweak logic.
2715 (acc_set_device_num): Likewise.
2716 (acc_on_device): Use acc_get_device_type.
2717 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
2718 (goacc_lazy_initialize): Reimplement with acc_init and
2719 goacc_attach_host_thread_to_device.
2720 * oacc-int.h (goacc_thread): Add base_dev field.
2721 (base_dev): Remove extern declaration.
2722 (goacc_attach_host_thread_to_device): Add prototype.
2723 * oacc-mem.c (acc_malloc): Use current thread's device instead of
2725 (acc_free): Likewise.
2726 (acc_memcpy_to_device): Likewise.
2727 (acc_memcpy_from_device): Likewise.
2728 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
2729 goacc_lazy_initialize (throughout).
2730 (GOACC_parallel): Use tgt_offset to locate target functions.
2731 * target.c (gomp_map_vars): Don't set tgt->mem_map.
2732 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
2733 (gomp_load_plugin_for_device): Remove open_device, close_device,
2734 get_device_num, set_device_num openacc hook initialisation. Don't set
2735 openacc.target_data.
2736 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
2737 (GOMP_OFFLOAD_openacc_close_device)
2738 (GOMP_OFFLOAD_openacc_get_device_num)
2739 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
2740 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
2742 * plugin/plugin-nvptx.c (ptx_inited): Remove.
2743 (instantiated_devices, ptx_dev_lock): New.
2744 (struct ptx_image_data): New.
2745 (ptx_devices, ptx_images, ptx_image_lock): New.
2746 (fini_streams_for_device): Reorder cuStreamDestroy call.
2747 (nvptx_get_num_devices): Remove forward declaration.
2748 (nvptx_init): Change return type to bool.
2749 (nvptx_fini): Remove.
2750 (nvptx_attach_host_thread_to_device): New.
2751 (nvptx_open_device): Return struct ptx_device* instead of void*.
2752 (nvptx_close_device): Change argument type to struct ptx_device*,
2753 return type to void.
2754 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
2755 (kernel_target_data, kernel_host_table): Remove static globals.
2756 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
2757 (GOMP_OFFLOAD_init_device): Reimplement.
2758 (GOMP_OFFLOAD_fini_device): Likewise.
2759 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
2760 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
2761 (GOMP_OFFLOAD_host2dev): Use ORD argument.
2762 (GOMP_OFFLOAD_openacc_open_device)
2763 (GOMP_OFFLOAD_openacc_close_device)
2764 (GOMP_OFFLOAD_openacc_set_device_num)
2765 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
2766 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
2770 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
2772 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
2774 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
2775 * libgomp.h (struct gomp_memory_mapping): Remove.
2776 (struct target_mem_desc): Change type of mem_map from
2777 gomp_memory_mapping * to splay_tree_s *.
2778 (struct gomp_device_descr): Remove register_image_func, get_table_func.
2779 Add load_image_func, unload_image_func.
2780 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
2781 Remove offload_regions_registered.
2782 (gomp_init_tables): Remove.
2783 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2785 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
2786 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
2787 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
2788 offload_regions_registered.
2789 Initialize load_image_func, unload_image_func, mem_map.root.
2790 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
2791 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
2792 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
2793 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
2794 gomp_memory_mapping *. Use dev's lock and splay_tree.
2795 (lookup_dev): Use dev's lock.
2796 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
2797 (acc_is_present): Likewise.
2798 (acc_map_data): Likewise.
2799 (acc_unmap_data): Likewise. Use dev's lock.
2800 (present_create_copy): Likewise.
2801 (delete_copyout): Pass dev to lookup_host instead of mem_map.
2802 (update_dev_host): Likewise.
2803 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
2804 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
2805 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
2806 (GOMP_OFFLOAD_get_table): Remove
2807 (GOMP_OFFLOAD_load_image): New function.
2808 (GOMP_OFFLOAD_unload_image): New function.
2809 * target.c (register_lock): New mutex for offload image registration.
2810 (num_devices): Do not guard with PLUGIN_SUPPORT.
2811 (gomp_realloc_unlock): New static function.
2812 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
2814 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
2815 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
2816 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
2818 (gomp_unmap_vars): Likewise.
2819 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
2820 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
2821 (gomp_offload_image_to_device): New static function.
2822 (GOMP_offload_register): Add mutex lock.
2823 Call gomp_offload_image_to_device for all initialized devices.
2824 Replace gomp_realloc with gomp_realloc_unlock.
2825 (GOMP_offload_unregister): New function.
2826 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
2827 get_table_func from the plugin with calls to init_device_func and
2828 gomp_offload_image_to_device.
2829 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2831 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
2832 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
2833 (GOMP_target_data): Do not call gomp_init_tables.
2834 (GOMP_target_update): Likewise. Remove argument from gomp_update.
2835 (gomp_load_plugin_for_device): Replace register_image and get_table
2836 with load_image and unload_image in DLSYM ().
2837 (gomp_register_images_for_device): Remove function.
2838 (gomp_target_init): Do not initialize current_device.mem_map.*,
2839 current_device.offload_regions_registered.
2840 Remove call to gomp_register_images_for_device.
2841 Do not free offload_images and num_offload_images.
2843 2015-03-30 Jakub Jelinek <jakub@redhat.com>
2846 * testsuite/libgomp.fortran/pr65597.f90: New test.
2848 2015-03-27 Tom de Vries <tom@codesourcery.com>
2851 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
2852 (init, check): New function.
2853 (foo): Change return type to void.
2854 (main): Call init and check.
2856 2015-03-27 Tom de Vries <tom@codesourcery.com>
2859 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
2860 (foo): Use M for non-inner loops to scale down test-case.
2862 2015-03-25 Kai Tietz <ktietz@redhat.com>
2865 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
2866 (GOACC_data_start): Likewise.
2867 * target.c (gomp_map_vars): Likewise.
2869 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
2871 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
2874 2015-03-19 Jakub Jelinek <jakub@redhat.com>
2876 * testsuite/libgomp.c/target-10.c: New test.
2877 * testsuite/libgomp.c++/target-4.C: New test.
2879 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
2881 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
2882 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
2884 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
2886 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
2887 * configure.ac (*-*-rtems*): Assume Pthread is supported.
2888 (pthread.h): Check for this header file.
2889 * configure: Regenerate.
2891 2015-02-25 Tom de Vries <tom@codesourcery.com>
2893 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
2894 (check_reduction_op, check_reduction_macro, max, min):
2896 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
2898 (main): Use new functions.
2900 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
2902 * target.c (gomp_load_plugin_for_device): Use const char * instead of
2903 char * for variables holding dlerror return values.
2906 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
2908 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
2910 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
2911 Cesar Philippidis <cesar@codesourcery.com>
2913 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
2914 GOACC_ctaid, and GOACC_nctaid routines.
2916 2015-02-11 Jakub Jelinek <jakub@redhat.com>
2919 * testsuite/libgomp.c/atomic-18.c: New test.
2920 * testsuite/libgomp.c++/atomic-16.C: New test.
2922 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2926 * testsuite/libgomp.c/pr64824.c: New test.
2927 * testsuite/libgomp.c/pr64868.c: New test.
2928 * testsuite/libgomp.c++/pr64824.C: New test.
2929 * testsuite/libgomp.c++/pr64868.C: New test.
2931 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
2934 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
2935 Link with -lpthread.
2936 * config/aix/plugin-suffix.h: Delete.
2938 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
2941 * configure.tgt (*-*-aix*): Use config_path "aix posix".
2942 (*-*-darwin*): Use config_path "bsd darwin posix".
2943 (*-*-hpux*): Use config_path "hpux posix".
2944 * target.c: Add include of plugin-suffix.h and use
2945 SONAME_SUFFIX macro.
2946 * config/aix/plugin-suffix.h: New file.
2947 * config/darwin/plugin-suffix.h: New file.
2948 * config/hpux/plugin-suffix.h: New file.
2949 * config/posix/plugin-suffix.h: New file.
2951 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2954 * libgomp.c/pr64734.c: New test.
2956 2015-01-23 Tom de Vries <tom@codesourcery.com>
2959 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
2961 2015-01-23 Tom de Vries <tom@codesourcery.com>
2964 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
2967 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2970 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
2971 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
2972 formal parameter. Update all users.
2973 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
2974 Document unused formal parameter.
2976 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
2978 * oacc-parallel.c: Don't include <alloca.h>.
2979 (GOACC_parallel): Use gomp_alloca instead of alloca.
2981 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
2983 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
2985 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2986 James Norris <jnorris@codesourcery.com>
2987 Tom de Vries <tom@codesourcery.com>
2988 Julian Brown <julian@codesourcery.com>
2989 Cesar Philippidis <cesar@codesourcery.com>
2990 Nathan Sidwell <nathan@codesourcery.com>
2991 Tobias Burnus <burnus@net-b.de>
2993 * Makefile.am (search_path): Add $(top_srcdir)/../include.
2994 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
2995 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
2996 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
2997 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
2998 Include $(top_srcdir)/plugin/Makefrag.am.
2999 (nodist_libsubinclude_HEADERS): Add openacc.h.
3000 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
3001 openacc.f90, openacc.mod, openacc_kinds.mod.
3002 (omp_lib.mod): Generalize into...
3003 (%.mod): ... this new rule.
3004 (openacc_kinds.mod, openacc.mod): New rules.
3005 * plugin/configfrag.ac: New file.
3006 * configure.ac: Move plugin/offloading support into it. Include
3007 it. Instantiate testsuite/libgomp-test-support.pt.exp.
3008 * plugin/Makefrag.am: New file.
3009 * testsuite/Makefile.am (OFFLOAD_TARGETS)
3010 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
3012 (libgomp-test-support.exp): New rule.
3013 (all-local): Depend on it.
3014 * Makefile.in: Regenerate.
3015 * testsuite/Makefile.in: Regenerate.
3016 * config.h.in: Likewise.
3017 * configure: Likewise.
3018 * configure.tgt: Harden shell syntax.
3019 * env.c: Include "oacc-int.h".
3020 (parse_acc_device_type): New function.
3021 (gomp_debug_var, goacc_device_type, goacc_device_num): New
3023 (initialize_env): Initialize those. Call
3024 goacc_runtime_initialize.
3025 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
3026 (gomp_fatal): Call gomp_vfatal.
3027 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
3028 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
3029 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
3030 (splay_tree_node, splay_tree, splay_tree_key)
3031 (struct target_mem_desc, struct splay_tree_key_s)
3032 (struct gomp_memory_mapping, struct acc_dispatch_t)
3033 (struct gomp_device_descr, gomp_acc_insert_pointer)
3034 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
3035 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
3036 (gomp_free_memmap, gomp_fini_device): New declarations.
3037 (gomp_vdebug, gomp_debug): New macros.
3038 Include "splay-tree.h".
3039 * libgomp.map (OACC_2.0): New symbol version. Use for
3040 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
3041 acc_set_device_type_h_, acc_get_device_type,
3042 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
3043 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
3044 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
3045 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
3046 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
3047 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
3048 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
3049 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
3050 acc_copyin_array_h_, acc_present_or_copyin,
3051 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
3052 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
3053 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
3054 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
3055 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
3056 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
3057 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
3058 acc_update_device, acc_update_device_32_h_,
3059 acc_update_device_64_h_, acc_update_device_array_h_,
3060 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
3061 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
3062 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
3063 acc_is_present_64_h_, acc_is_present_array_h_,
3064 acc_memcpy_to_device, acc_memcpy_from_device,
3065 acc_get_current_cuda_device, acc_get_current_cuda_context,
3066 acc_get_cuda_stream, acc_set_cuda_stream.
3067 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
3068 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
3069 GOACC_update, GOACC_wait, GOACC_get_thread_num,
3070 GOACC_get_num_threads.
3071 (GOMP_PLUGIN_1.0): New symbol version. Use for
3072 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
3073 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
3074 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
3075 GOMP_PLUGIN_acc_thread.
3076 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
3077 environment variable.
3078 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
3079 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
3080 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
3081 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
3082 (splay_tree_remove): New declarations.
3083 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
3084 (splay_tree_remove, splay_tree_lookup): Move into...
3085 * splay-tree.c: ... this new file.
3086 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
3087 (splay_tree_node, splay_tree, splay_tree_key)
3088 (struct target_mem_desc, struct splay_tree_key_s)
3089 (struct gomp_device_descr): Don't declare.
3090 (num_devices_openmp): New variable.
3091 (gomp_get_num_devices ): Use it.
3092 (gomp_init_targets_once): New function.
3093 (gomp_get_num_devices ): Use it.
3094 (get_kind, gomp_copy_from_async, gomp_free_memmap)
3095 (gomp_fini_device, gomp_register_image_for_device): New functions.
3096 (gomp_map_vars): Add devaddrs parameter.
3097 (gomp_update): Add mm parameter.
3098 (gomp_init_device): Move most of it into...
3099 (gomp_init_tables): ... this new function.
3100 (gomp_register_images_for_device): Remove function.
3101 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
3102 Make them hidden instead of static.
3103 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
3104 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
3105 (GOMP_target_end_data, GOMP_target_update)
3106 (gomp_load_plugin_for_device, gomp_target_init): Update for
3108 * oacc-async.c: New file.
3109 * oacc-cuda.c: Likewise.
3110 * oacc-host.c: Likewise.
3111 * oacc-init.c: Likewise.
3112 * oacc-int.h: Likewise.
3113 * oacc-mem.c: Likewise.
3114 * oacc-parallel.c: Likewise.
3115 * oacc-plugin.c: Likewise.
3116 * oacc-plugin.h: Likewise.
3117 * oacc-ptx.h: Likewise.
3118 * openacc.f90: Likewise.
3119 * openacc.h: Likewise.
3120 * openacc_lib.h: Likewise.
3121 * plugin/plugin-host.c: Likewise.
3122 * plugin/plugin-nvptx.c: Likewise.
3123 * libgomp-plugin.c: Likewise.
3124 * libgomp-plugin.h: Likewise.
3125 * libgomp_target.h: Remove file after merging content into the
3126 former file. Update all users.
3127 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
3128 (offload_targets_s, offload_targets_s_openacc): New variables.
3129 (check_effective_target_openacc_nvidia_accel_present)
3130 (check_effective_target_openacc_nvidia_accel_selected): New
3132 (libgomp_init): Update for OpenACC changes.
3133 * testsuite/libgomp-test-support.exp.in: New file.
3134 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
3135 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3136 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3137 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
3138 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
3139 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
3140 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
3141 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
3142 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3143 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
3144 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
3145 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
3146 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
3147 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3148 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3149 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3150 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3151 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3152 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3153 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3154 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
3155 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3156 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3157 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
3158 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3159 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3160 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3161 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3162 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3163 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3164 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3165 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3166 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3167 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
3168 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
3169 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
3170 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
3171 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
3172 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
3173 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3174 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3175 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3176 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3177 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3178 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3179 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
3180 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
3181 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3182 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3183 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3184 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3185 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3186 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3187 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
3188 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
3189 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3190 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3191 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
3192 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3193 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
3194 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3195 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
3196 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3197 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
3198 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
3199 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
3200 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
3201 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
3202 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
3203 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
3204 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
3205 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3206 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3207 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3208 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
3209 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
3210 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3211 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3212 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
3213 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
3214 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
3215 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
3216 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3217 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3218 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3219 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
3220 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
3221 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
3222 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3223 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
3224 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
3225 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
3226 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
3227 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
3228 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
3229 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
3230 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
3231 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
3232 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
3233 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
3234 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
3235 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
3236 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
3237 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
3238 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
3239 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
3240 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
3241 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
3242 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
3243 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
3244 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
3245 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3246 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
3247 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
3248 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3249 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3250 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
3251 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3252 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
3253 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
3254 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
3255 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
3256 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
3257 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
3258 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3259 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
3260 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3261 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
3262 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
3263 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
3264 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
3265 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
3266 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
3267 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
3268 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
3269 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3270 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3271 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3272 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3273 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
3275 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
3276 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
3277 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
3278 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3279 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
3280 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3281 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3282 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3283 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3284 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3285 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3286 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3287 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3288 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3289 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3290 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3291 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3292 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3293 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3294 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3295 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3296 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3297 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3298 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3299 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3300 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3301 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3302 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3303 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3304 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3305 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3306 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3307 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3308 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3309 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3310 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3311 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3312 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3313 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3314 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3315 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3316 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3317 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3318 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3319 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3320 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3321 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3322 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3323 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3324 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3325 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3326 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3327 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3328 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3329 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3330 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3331 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3332 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3333 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3334 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3336 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3337 Julian Brown <julian@codesourcery.com>
3338 David Malcolm <dmalcolm@redhat.com>
3340 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
3341 to "GNU Offloading and Multi Processing Runtime Library". Change
3343 * configure: Regenerate.
3344 * libgomp.texi: Update.
3346 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3348 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
3350 * configure: Regenerate.
3352 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
3353 "intelmic" in $offload_targets.
3355 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3357 Update copyright years.
3359 * libgomp.texi: Bump @copying's copyright year.
3361 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3363 * testsuite/lib/libgomp.exp: Load target-utils.exp.
3364 Move load of target-supportes.exp earlier.
3366 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
3368 * testsuite/libgomp.c/target-9.c: New test.
3370 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
3372 * config.h.in: Regenerate.
3373 * configure: Regenerate.
3374 * configure.ac: Add GCC_CHECK_EMUTLS.
3375 * libgomp.h: Add check for USE_EMUTLS: this case
3376 is equal to HAVE_TLS.
3379 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
3381 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
3383 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
3384 Ilya Verbin <ilya.verbin@intel.com>
3386 * testsuite/libgomp.c/target-critical-1.c: New test.
3388 2014-11-26 Jakub Jelinek <jakub@redhat.com>
3390 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
3391 to dg-options unless expensive testing is on.
3392 (TESTITERS): Define to N if not defined.
3393 (main): Use TESTITERS instead of N.
3394 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
3395 dg-additional-options depending on whether expensive testing is on.
3396 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
3397 Decrease N to 100000 and CHUNKSZ to 10000.
3399 2014-11-24 Jakub Jelinek <jakub@redhat.com>
3402 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
3403 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3405 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
3407 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
3409 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3412 * configure: Regenerated.
3414 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
3416 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
3417 vect_simd_clones effective target.
3418 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
3420 2014-11-14 Jakub Jelinek <jakub@redhat.com>
3422 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
3423 of 32 as block_size.
3424 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
3425 instead of 32 as block_size.
3427 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
3428 Ilya Verbin <ilya.verbin@intel.com>
3430 * Makefile.in: Regenerate.
3431 * configure: Regenerate.
3432 * configure.ac: Set up offload_additional_options,
3433 offload_additional_lib_paths and offload_targets.
3434 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
3435 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
3436 * testsuite/Makefile.in: Regenerate.
3437 * testsuite/lib/libgomp.exp (libgomp_init): Append
3438 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
3439 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
3440 build directory to LD_LIBRARY_PATH for intelmic offload targets.
3442 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
3443 Ilya Verbin <ilya.verbin@intel.com>
3444 Kirill Yukhin <kirill.yukhin@intel.com>
3445 Ilya Tocar <ilya.tocar@intel.com>
3447 * testsuite/lib/libgomp.exp
3448 (check_effective_target_offload_device): New.
3449 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
3450 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
3451 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
3452 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
3453 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
3454 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
3455 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
3456 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
3457 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
3458 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
3459 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
3460 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
3461 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
3462 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
3463 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
3464 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
3465 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
3466 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
3467 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
3468 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
3469 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
3470 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
3471 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
3472 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
3473 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
3474 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
3475 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
3476 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
3477 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
3478 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
3479 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
3480 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
3481 * testsuite/libgomp.c/target-7.c: Fix test.
3482 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
3483 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
3484 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
3485 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
3486 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
3487 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
3488 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
3489 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
3490 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
3491 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
3492 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
3493 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
3494 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
3495 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
3496 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
3497 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
3498 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
3499 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
3500 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
3501 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
3502 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
3503 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
3504 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
3505 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
3506 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
3507 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
3508 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
3509 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
3510 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
3511 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
3512 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
3514 2014-11-13 Jakub Jelinek <jakub@redhat.com>
3515 Ilya Verbin <ilya.verbin@intel.com>
3516 Thomas Schwinge <thomas@codesourcery.com>
3517 Andrey Turetskiy <andrey.turetskiy@intel.com>
3519 * libgomp.map (GOMP_4.0.1): New symbol version.
3520 Add GOMP_offload_register.
3521 * libgomp_target.h: New file.
3522 * splay-tree.h: New file.
3523 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
3524 (gomp_target_init): New forward declaration.
3525 (gomp_is_initialized): New static variable.
3526 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
3527 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
3529 (offload_images, num_offload_images, devices, num_devices): New static
3531 (splay_compare): New static function.
3532 (struct gomp_device_descr): New structure.
3533 (gomp_get_num_devices): Call gomp_target_init.
3534 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
3535 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
3536 (GOMP_offload_register): New function.
3537 (GOMP_target): Arrange for host callback to be performed in a separate
3538 initial thread and contention group, inheriting ICVs from
3539 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
3540 Add device initialization and lookup for target function in splay tree.
3541 (GOMP_target_data): Add device initialization and call gomp_map_vars.
3542 (GOMP_target_end_data): Call gomp_unmap_vars.
3543 (GOMP_target_update): Add device initialization and call gomp_update.
3544 (gomp_load_plugin_for_device, gomp_register_images_for_device)
3545 (gomp_target_init): New static functions.
3547 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
3548 Thomas Schwinge <thomas@codesourcery.com>
3549 Ilya Verbin <ilya.verbin@intel.com>
3550 Andrey Turetskiy <andrey.turetskiy@intel.com>
3552 * config.h.in: Regenerate.
3553 * configure: Regenerate.
3554 * configure.ac: Check for libdl, required for plugin support.
3555 (PLUGIN_SUPPORT): Define if plugins are supported.
3556 (enable_offload_targets): Support Intel MIC targets.
3557 (OFFLOAD_TARGETS): List of target names suitable for offloading.
3559 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3562 * configure: Regenerate.
3564 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3566 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
3568 2014-10-06 Marek Polacek <polacek@redhat.com>
3570 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
3571 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
3572 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
3573 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3575 2014-10-06 Marek Polacek <polacek@redhat.com>
3577 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
3578 * testsuite/libgomp.c/nqueens-1.c: Likewise.
3579 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3580 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3581 * testsuite/libgomp.c/pr36802-2.c: Likewise.
3582 * testsuite/libgomp.c/pr36802-3.c: Likewise.
3583 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3584 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3585 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
3586 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
3587 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
3588 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
3589 * testsuite/libgomp.c/omp-single-1.c: Likewise.
3590 * testsuite/libgomp.c/omp-single-2.c: Likewise.
3591 * testsuite/libgomp.c/omp_matvec.c: Likewise.
3592 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
3593 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
3594 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
3597 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3600 * testsuite/libgomp.c/pr61200.c: New test.
3602 2014-09-18 Jakub Jelinek <jakub@redhat.com>
3605 * testsuite/libgomp.c++/pr63248.C: New test.
3607 2014-08-04 Jakub Jelinek <jakub@redhat.com>
3609 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
3610 is not zero, but taskgroup->children is NULL and there are
3611 any task->children, schedule those instead of waiting.
3612 * testsuite/libgomp.c/depend-6.c: New test.
3613 * testsuite/libgomp.c/depend-7.c: New test.
3614 * testsuite/libgomp.c/depend-8.c: New test.
3615 * testsuite/libgomp.c/depend-9.c: New test.
3616 * testsuite/libgomp.c/depend-10.c: New test.
3618 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3620 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
3621 (struct gomp_taskwait): New type.
3622 (struct gomp_task): Add taskwait and parent_depends_on, remove
3623 in_taskwait and taskwait_sem fields.
3624 (gomp_finish_task): Don't destroy taskwait_sem.
3625 * task.c (gomp_init_task): Don't init in_taskwait, instead init
3626 taskwait and parent_depends_on.
3627 (GOMP_task): For if (0) tasks with depend clause that depend on
3628 earlier tasks don't defer them, instead call
3629 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
3630 Initialize redundant_out field, for redundant out entries just
3631 move them at the end of linked list instead of removing them
3632 completely, and set redundant_out flag instead of redundant.
3633 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
3635 (gomp_task_run_post_handle_dependers): If parent is in
3636 gomp_task_maybe_wait_for_dependencies and newly runnable task
3637 is not parent_depends_on, queue it in parent->children linked
3638 list after all runnable tasks with parent_depends_on set.
3639 Adjust for addition of taskwait indirection.
3640 (gomp_task_run_post_remove_parent): If parent is in
3641 gomp_task_maybe_wait_for_dependencies and task to be removed
3642 is parent_depends_on, decrement n_depend and if needed awake
3643 parent. Adjust for addition of taskwait indirection.
3644 (GOMP_taskwait): Adjust for addition of taskwait indirection.
3645 (gomp_task_maybe_wait_for_dependencies): New function.
3646 * testsuite/libgomp.c/depend-5.c: New test.
3648 2014-07-13 Tobias Burnus <burnus@net-b.de>
3650 * testsuite/libgomp.fortran/pr34020.f90: Make compile
3651 with TS 18508/Fortran 2015.
3653 2014-07-06 Marek Polacek <polacek@redhat.com>
3656 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
3658 2014-07-03 Jakub Jelinek <jakub@redhat.com>
3660 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
3661 matches regex $lang_source_re, add $lang_include_flags to options.
3662 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
3663 * testsuite/libgomp.c++/c++.exp: Likewise.
3664 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
3665 and lang_include_flags instead of adding -fintrinsic-modules-path= to
3667 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
3669 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
3671 * testsuite/libgomp.fortran/fortran.exp: Explain
3672 gfortran-dg-runtest usage.
3674 2014-06-25 Jakub Jelinek <jakub@redhat.com>
3676 * testsuite/libgomp.fortran/simd5.f90: New test.
3677 * testsuite/libgomp.fortran/simd6.f90: New test.
3678 * testsuite/libgomp.fortran/simd7.f90: New test.
3680 2014-06-24 Jakub Jelinek <jakub@redhat.com>
3682 * testsuite/libgomp.c/for-2.c: Define SC to static for
3683 #pragma omp for simd testing.
3684 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
3685 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
3687 * testsuite/libgomp.c/simd-14.c: New test.
3688 * testsuite/libgomp.c/simd-15.c: New test.
3689 * testsuite/libgomp.c/simd-16.c: New test.
3690 * testsuite/libgomp.c/simd-17.c: New test.
3691 * testsuite/libgomp.c++/for-10.C: Define SC to static for
3692 #pragma omp for simd testing.
3693 * testsuite/libgomp.c++/simd10.C: New test.
3694 * testsuite/libgomp.c++/simd11.C: New test.
3695 * testsuite/libgomp.c++/simd12.C: New test.
3696 * testsuite/libgomp.c++/simd13.C: New test.
3698 * testsuite/libgomp.fortran/aligned1.f03: New test.
3699 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
3700 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
3701 tasks with !$omp parallel !$omp single.
3702 * testsuite/libgomp.fortran/target8.f90: New test.
3703 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
3704 not to use trim in the combiner, instead call elemental function.
3705 (fn): New elemental function.
3706 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
3708 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
3710 * testsuite/libgomp.fortran/udr12.f90: New test.
3711 * testsuite/libgomp.fortran/udr13.f90: New test.
3712 * testsuite/libgomp.fortran/udr14.f90: New test.
3713 * testsuite/libgomp.fortran/udr15.f90: New test.
3715 2014-06-18 Jakub Jelinek <jakub@redhat.com>
3717 * omp_lib.f90.in (openmp_version): Set to 201307.
3718 * omp_lib.h.in (openmp_version): Likewise.
3719 * testsuite/libgomp.c/target-8.c: New test.
3720 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
3721 and inbranch clauses.
3722 * testsuite/libgomp.fortran/depend-3.f90: New test.
3723 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
3725 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3726 * testsuite/libgomp.fortran/target1.f90: New test.
3727 * testsuite/libgomp.fortran/target2.f90: New test.
3728 * testsuite/libgomp.fortran/target3.f90: New test.
3729 * testsuite/libgomp.fortran/target4.f90: New test.
3730 * testsuite/libgomp.fortran/target5.f90: New test.
3731 * testsuite/libgomp.fortran/target6.f90: New test.
3732 * testsuite/libgomp.fortran/target7.f90: New test.
3734 2014-06-10 Jakub Jelinek <jakub@redhat.com>
3737 * testsuite/libgomp.fortran/allocatable9.f90: New test.
3738 * testsuite/libgomp.fortran/allocatable10.f90: New test.
3739 * testsuite/libgomp.fortran/allocatable11.f90: New test.
3740 * testsuite/libgomp.fortran/allocatable12.f90: New test.
3741 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
3742 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
3743 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
3744 * testsuite/libgomp.fortran/associate1.f90: New test.
3745 * testsuite/libgomp.fortran/associate2.f90: New test.
3746 * testsuite/libgomp.fortran/procptr1.f90: New test.
3748 2014-06-06 Jakub Jelinek <jakub@redhat.com>
3750 * testsuite/libgomp.fortran/simd1.f90: New test.
3751 * testsuite/libgomp.fortran/udr1.f90: New test.
3752 * testsuite/libgomp.fortran/udr2.f90: New test.
3753 * testsuite/libgomp.fortran/udr3.f90: New test.
3754 * testsuite/libgomp.fortran/udr4.f90: New test.
3755 * testsuite/libgomp.fortran/udr5.f90: New test.
3756 * testsuite/libgomp.fortran/udr6.f90: New test.
3757 * testsuite/libgomp.fortran/udr7.f90: New test.
3758 * testsuite/libgomp.fortran/udr8.f90: New test.
3759 * testsuite/libgomp.fortran/udr9.f90: New test.
3760 * testsuite/libgomp.fortran/udr10.f90: New test.
3761 * testsuite/libgomp.fortran/udr11.f90: New test.
3763 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
3765 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
3766 vect_simd_clones effective target.
3767 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
3769 2014-05-21 Jakub Jelinek <jakub@redhat.com>
3772 * testsuite/libgomp.c++/simd-9.C: New test.
3774 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
3776 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
3777 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
3778 texts according to their @menu entry positions.
3780 2014-05-11 Jakub Jelinek <jakub@redhat.com>
3782 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
3783 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
3784 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
3785 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
3786 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
3787 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
3788 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
3789 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
3790 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
3791 * testsuite/libgomp.fortran/depend-1.f90: New test.
3792 * testsuite/libgomp.fortran/depend-2.f90: New test.
3793 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
3794 * testsuite/libgomp.fortran/simd1.f90: New test.
3795 * testsuite/libgomp.fortran/simd2.f90: New test.
3796 * testsuite/libgomp.fortran/simd3.f90: New test.
3797 * testsuite/libgomp.fortran/simd4.f90: New test.
3798 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
3800 2014-05-02 Jakub Jelinek <jakub@redhat.com>
3802 * testsuite/libgomp.c/simd-10.c: New test.
3803 * testsuite/libgomp.c/simd-11.c: New test.
3804 * testsuite/libgomp.c/simd-12.c: New test.
3805 * testsuite/libgomp.c/simd-13.c: New test.
3807 2014-04-24 Jakub Jelinek <jakub@redhat.com>
3809 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
3810 atomic type clauses in any order and optional comma in between.
3811 * testsuite/libgomp.c++/atomic-15.C: Likewise.
3812 * testsuite/libgomp.c/atomic-17.c: Likewise.
3814 * testsuite/libgomp.c/simd-7.c: New test.
3815 * testsuite/libgomp.c/simd-8.c: New test.
3816 * testsuite/libgomp.c/simd-9.c: New test.
3817 * testsuite/libgomp.c/loop-16.c: New test.
3819 2014-04-02 Richard Henderson <rth@redhat.com>
3821 * config/linux/futex.h (futex_wait): Get error value from errno.
3822 (futex_wake): Likewise.
3824 2014-03-25 Jakub Jelinek <jakub@redhat.com>
3827 * testsuite/libgomp.c++/udr-11.C: New test.
3828 * testsuite/libgomp.c++/udr-12.C: New test.
3829 * testsuite/libgomp.c++/udr-13.C: New test.
3830 * testsuite/libgomp.c++/udr-14.C: New test.
3831 * testsuite/libgomp.c++/udr-15.C: New test.
3832 * testsuite/libgomp.c++/udr-16.C: New test.
3833 * testsuite/libgomp.c++/udr-17.C: New test.
3834 * testsuite/libgomp.c++/udr-18.C: New test.
3835 * testsuite/libgomp.c++/udr-19.C: New test.
3837 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3839 Update copyright years
3841 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3843 * hashtab.h: Use the standard form for the copyright notice.
3845 2014-01-02 Tobias Burnus <burnus@net-b.de>
3847 * libgomp.texi: Bump @copying's copyright year.
3849 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
3851 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
3852 alloca () with __builtin_alloca ().
3853 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
3854 * testsuite/libgomp.c/lock-3.c: Likewise.
3855 * testsuite/libgomp.c/pr48591.c: Likewise.
3857 2013-12-17 Jakub Jelinek <jakub@redhat.com>
3860 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
3863 2013-12-16 Jakub Jelinek <jakub@redhat.com>
3866 * testsuite/libgomp.c/pr58756.c: New test.
3868 2013-12-12 Jakub Jelinek <jakub@redhat.com>
3871 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
3874 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
3876 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
3878 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
3879 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
3880 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3881 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
3884 * libgomp_g.h: Include <stddef.h> for size_t.
3886 * libgomp.spec.in: Update comment about libgomp's dependencies.
3887 * configure.ac: Likewise.
3888 * configure: Regenerate.
3890 2013-10-16 Tobias Burnus <burnus@net-b.de>
3892 * libgomp.texi: (Runtime Library Routines): Update references for
3893 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
3894 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
3895 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
3896 (Environment Variables): Update references for OpenMP 4.0. Add
3897 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
3898 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
3901 2013-10-14 Jakub Jelinek <jakub@redhat.com>
3903 * env.c (parse_bind_var): Initialize value to avoid
3904 (false positive) warning.
3906 2013-10-12 Jakub Jelinek <jakub@redhat.com>
3909 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
3911 (gomp_init_num_threads): Move i variable declaration into
3912 #ifdef CPU_ALLOC_SIZE block.
3913 * config/linux/affinity.c (gomp_affinity_init_level): Test
3914 gomp_places_list_len == 0 rather than gomp_places_list == 0
3915 when checking for topology reading error.
3916 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
3917 * env.c (parse_affinity): Add ignore argument, if true, don't populate
3918 gomp_places_list, only parse env var and always return false.
3919 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
3920 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
3921 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
3922 and either of these variables were parsed correctly into a places
3925 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
3926 Jakub Jelinek <jakub@redhat.com>
3928 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
3929 of 5 loopfn matches.
3930 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3931 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3932 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
3933 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3934 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3935 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3936 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3937 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3939 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
3941 * Makefile.am (omp_lib.mod): Streamline rule.
3942 * Makefile.in: Regenerate.
3944 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
3947 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
3948 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3949 * testsuite/libgomp.fortran/lib2.f: Likewise.
3950 * testsuite/libgomp.fortran/lib3.f: Likewise.
3952 * configure.ac: Typo fix.
3953 * configure: Regenerate.
3955 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
3956 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3958 * omp.h.in: Don't touch the user's namespace.
3960 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3961 Tobias Burnus <burnus@net-b.de>
3962 Richard Henderson <rth@redhat.com>
3964 * target.c: New file.
3965 * Makefile.am (libgomp_la_SOURCES): Add target.c.
3966 * Makefile.in: Regenerated.
3967 * libgomp_g.h (GOMP_task): Add depend argument.
3968 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3969 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3970 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
3971 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
3972 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
3973 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
3974 GOMP_taskgroup_start, GOMP_taskgroup_end,
3975 GOMP_parallel_sections): New prototypes.
3976 * fortran.c (omp_is_initial_device): Add ialias_redirect.
3977 (omp_is_initial_device_): New function.
3978 (ULP, STR1, STR2, ialias_redirect): Removed.
3979 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
3980 omp_set_default_device_8_, omp_get_default_device_,
3981 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
3983 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3984 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3985 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
3987 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
3988 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
3989 omp_set_default_device, omp_set_default_device_,
3990 omp_set_default_device_8_, omp_get_default_device,
3991 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
3992 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
3993 omp_get_team_num_): Export @@OMP_4.0.
3994 * team.c (struct gomp_thread_start_data): Add place field.
3995 (gomp_thread_start): Clear thr->thread_pool and
3996 thr->task before returning. Use gomp_team_barrier_wait_final
3997 instead of gomp_team_barrier_wait. Initialize thr->place.
3998 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
3999 team_cancelled and task_queued_count fields.
4000 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
4001 before calling pthread_exit.
4002 (gomp_free_thread): No longer static. Use
4003 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
4004 (gomp_team_start): Add flags argument. Set
4005 thr->thread_pool->threads_busy to nthreads immediately after creating
4006 new pool. Use gomp_managed_threads_lock instead of
4007 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
4008 (gomp_team_end): Use gomp_managed_threads_lock instead of
4009 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
4010 of gomp_team_barrier_wait. If team->team_cancelled, call
4011 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
4012 rather than thr->ts.work_share.
4013 (initialize_team): Don't call gomp_sem_init here.
4014 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
4016 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
4017 * env.c (gomp_global_icv): Add default_device_var, target_data and
4018 bind_var initializers.
4019 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
4020 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
4021 gomp_places_list_len): New variables.
4022 (parse_bind_var, parse_one_place, parse_places_var): New functions.
4023 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
4025 (gomp_cancel_var): New global variable.
4026 (parse_int): New function.
4027 (handle_omp_display_env): New function.
4028 (initialize_env): Use it. Initialize default_device_var.
4029 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
4030 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
4031 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
4032 been successfully parsed (and call gomp_init_affinity in that case).
4033 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4034 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4035 omp_get_team_num, omp_is_initial_device): New functions.
4036 * libgomp.h: Include stdlib.h.
4037 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
4039 (struct target_mem_desc): Forward declare.
4040 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
4041 and thread_limit_var fields.
4042 (gomp_get_num_devices): New prototype.
4043 (gomp_cancel_var): New extern decl.
4044 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
4045 team_cancelled and task_queued_count fields. Add comments about
4046 task_{,queued_,running_}count.
4047 (gomp_cancel_kind): New enum.
4048 (gomp_work_share_end_cancel): New prototype.
4049 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
4050 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
4052 (struct gomp_taskgroup): New type.
4053 (struct gomp_task_depend_entry,
4054 struct gomp_dependers_vec): New types.
4055 (gomp_finish_task): Free depend_hash if non-NULL.
4056 (struct gomp_team_state): Add place_partition_off
4057 and place_partition_len fields.
4058 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
4059 gomp_places_list_len): New extern decls.
4060 (struct gomp_thread): Add place field.
4061 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
4062 (gomp_init_thread_affinity): Add place argument.
4063 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4064 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4065 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4066 gomp_affinity_init_level, gomp_affinity_print_place): New
4068 (gomp_team_start): Add flags argument.
4069 (gomp_thread_limit_var, gomp_remaining_threads_count,
4070 gomp_remaining_threads_lock): Remove.
4071 (gomp_managed_threads_lock): New variable.
4072 (struct gomp_thread_pool): Add threads_busy field.
4073 (gomp_free_thread): New prototype.
4074 * task.c: Include hashtab.h.
4075 (hash_entry_type): New typedef.
4076 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
4077 (gomp_init_task): Clear dependers, depend_hash, depend_count,
4078 copy_ctors_done and taskgroup fields.
4079 (GOMP_task): Add depend argument, handle depend clauses. If
4080 gomp_team_barrier_cancelled or if it's taskgroup has been
4081 cancelled, don't queue or start new tasks. Set copy_ctors_done
4082 field if needed. Initialize taskgroup field. If copy_ctors_done
4083 and already cancelled, don't discard the task. If taskgroup is
4084 non-NULL, enqueue the task into taskgroup queue. Increment
4085 num_children field in taskgroup. Increment task_queued_count.
4086 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
4087 gomp_task_run_post_remove_taskgroup): New inline functions.
4088 (gomp_task_run_post_handle_depend_hash,
4089 gomp_task_run_post_handle_dependers,
4090 gomp_task_run_post_handle_depend): New functions.
4091 (GOMP_taskwait): Use them. If more than one new tasks
4092 have been queued, wake other threads if needed.
4093 (gomp_barrier_handle_tasks): Likewise. If
4094 gomp_team_barrier_cancelled, don't start any new tasks, just free
4096 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
4098 (omp_proc_bind_kind, omp_proc_bind_false,
4099 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
4100 omp_proc_bind_spread): New params.
4101 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4102 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4103 omp_get_team_num, omp_is_initial_device): New interfaces.
4104 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
4105 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
4106 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
4107 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
4108 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
4109 useless use omp_lib_kinds.
4110 * omp.h.in (omp_proc_bind_t): New typedef.
4111 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4112 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4113 omp_get_team_num, omp_is_initial_device): New prototypes.
4114 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
4115 through to gomp_team_start.
4116 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
4117 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
4118 Adjust gomp_parallel_loop_start callers.
4119 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
4120 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
4121 GOMP_loop_end_cancel): New functions.
4122 (GOMP_parallel_end): Add ialias_redirect.
4123 * hashtab.h: New file.
4124 * libgomp.texi (Environment Variables): Minor cleanup,
4125 update section refs to OpenMP 4.0rc2.
4126 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
4127 environment variables.
4128 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
4129 team->work_shares_to_free to thr->ts.work_share before calling
4131 (gomp_work_share_end_cancel): New function.
4132 * config/linux/proc.c: Include errno.h.
4133 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
4134 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
4135 sizeof (cpu_set_t) to determine number of iterations. Fix up check
4136 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
4137 gomp_cpuset_size is sizeof (cpu_set_t).
4138 (gomp_init_num_threads): Initialize gomp_cpuset_size,
4139 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
4140 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
4141 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
4142 contain any logical CPUs.
4143 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
4144 is NULL. Use gomp_cpusetp instead of &cpuset and pass
4145 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
4146 pthread_getaffinity_np. Check gomp_places_list instead of
4147 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
4148 * config/linux/bar.c (gomp_barrier_wait_end,
4149 gomp_barrier_wait_last): Use BAR_* defines.
4150 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
4151 from state where needed. Set work_share_cancelled to 0 on last
4153 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
4154 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
4156 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
4157 Add cpusetsize argument.
4158 (gomp_cpuset_size, gomp_cpusetp): Declare.
4159 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
4160 (affinity_counter): Remove.
4161 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
4162 if CPU_ALLOC_SIZE isn't defined.
4163 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
4164 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
4165 bind current thread to the first place.
4166 (gomp_init_thread_affinity): Rewritten. Add place argument, just
4167 pthread_setaffinity_np to gomp_places_list[place].
4168 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4169 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4170 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4171 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
4172 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
4173 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
4174 (gomp_barrier_t): Add awaited_final field.
4175 (gomp_barrier_init): Initialize awaited_final field.
4176 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
4177 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
4179 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
4181 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
4182 gomp_team_barrier_cancelled): New inline functions.
4183 (gomp_barrier_last_thread,
4184 gomp_team_barrier_set_task_pending,
4185 gomp_team_barrier_clear_task_pending,
4186 gomp_team_barrier_set_waiting_for_tasks,
4187 gomp_team_barrier_waiting_for_tasks,
4188 gomp_team_barrier_done): Use BAR_* defines.
4189 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
4190 (gomp_barrier_wait_end): Use BAR_* defines.
4191 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
4192 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
4194 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
4195 gomp_team_barrier_cancel): New functions.
4196 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
4198 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4199 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4200 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4201 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
4202 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
4203 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
4204 (gomp_barrier_t): Add cancellable field.
4205 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
4206 gomp_team_barrier_cancel): New prototypes.
4207 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
4208 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
4209 gomp_team_barrier_cancelled): New inline functions.
4210 (gomp_barrier_wait_start, gomp_barrier_last_thread,
4211 gomp_team_barrier_set_task_pending,
4212 gomp_team_barrier_clear_task_pending,
4213 gomp_team_barrier_set_waiting_for_tasks,
4214 gomp_team_barrier_waiting_for_tasks,
4215 gomp_team_barrier_done): Use BAR_* defines.
4216 * barrier.c (GOMP_barrier_cancel): New function.
4217 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
4218 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
4219 omp_proc_bind_spread): New params.
4220 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4221 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4222 omp_get_team_num, omp_is_initial_device): New externals.
4223 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
4225 (gomp_resolve_num_threads): Adjust for thread_limit now being in
4226 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
4227 infinity. If not nested, just return minimum of max_num_threads
4228 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
4229 to the returned value. Otherwise, don't update atomically
4230 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
4231 (GOMP_parallel_end): Adjust for thread_limit now being in
4232 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
4233 infinity. Adjust threads_busy in the pool rather than
4234 gomp_remaining_threads_count. Remember team->nthreads and call
4235 gomp_team_end before adjusting threads_busy, if not nested
4236 afterwards, just set it to 1 non-atomically. Add ialias.
4237 (GOMP_parallel_start): Adjust gomp_team_start caller.
4238 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
4239 * testsuite/libgomp.c/affinity-1.c: New test.
4240 * testsuite/libgomp.c/atomic-15.c: New test.
4241 * testsuite/libgomp.c/atomic-16.c: New test.
4242 * testsuite/libgomp.c/atomic-17.c: New test.
4243 * testsuite/libgomp.c/cancel-for-1.c: New test.
4244 * testsuite/libgomp.c/cancel-for-2.c: New test.
4245 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
4246 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
4247 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
4248 * testsuite/libgomp.c/cancel-sections-1.c: New test.
4249 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
4250 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
4251 * testsuite/libgomp.c/depend-1.c: New test.
4252 * testsuite/libgomp.c/depend-2.c: New test.
4253 * testsuite/libgomp.c/depend-3.c: New test.
4254 * testsuite/libgomp.c/depend-4.c: New test.
4255 * testsuite/libgomp.c/for-1.c: New test.
4256 * testsuite/libgomp.c/for-1.h: New file.
4257 * testsuite/libgomp.c/for-2.c: New test.
4258 * testsuite/libgomp.c/for-2.h: New file.
4259 * testsuite/libgomp.c/for-3.c: New test.
4260 * testsuite/libgomp.c/pr58392.c: New test.
4261 * testsuite/libgomp.c/simd-1.c: New test.
4262 * testsuite/libgomp.c/simd-2.c: New test.
4263 * testsuite/libgomp.c/simd-3.c: New test.
4264 * testsuite/libgomp.c/simd-4.c: New test.
4265 * testsuite/libgomp.c/simd-5.c: New test.
4266 * testsuite/libgomp.c/simd-6.c: New test.
4267 * testsuite/libgomp.c/target-1.c: New test.
4268 * testsuite/libgomp.c/target-2.c: New test.
4269 * testsuite/libgomp.c/target-3.c: New test.
4270 * testsuite/libgomp.c/target-4.c: New test.
4271 * testsuite/libgomp.c/target-5.c: New test.
4272 * testsuite/libgomp.c/target-6.c: New test.
4273 * testsuite/libgomp.c/target-7.c: New test.
4274 * testsuite/libgomp.c/taskgroup-1.c: New test.
4275 * testsuite/libgomp.c/thread-limit-1.c: New test.
4276 * testsuite/libgomp.c/thread-limit-2.c: New test.
4277 * testsuite/libgomp.c/thread-limit-3.c: New test.
4278 * testsuite/libgomp.c/udr-1.c: New test.
4279 * testsuite/libgomp.c/udr-2.c: New test.
4280 * testsuite/libgomp.c/udr-3.c: New test.
4281 * testsuite/libgomp.c++/affinity-1.C: New test.
4282 * testsuite/libgomp.c++/atomic-10.C: New test.
4283 * testsuite/libgomp.c++/atomic-11.C: New test.
4284 * testsuite/libgomp.c++/atomic-12.C: New test.
4285 * testsuite/libgomp.c++/atomic-13.C: New test.
4286 * testsuite/libgomp.c++/atomic-14.C: New test.
4287 * testsuite/libgomp.c++/atomic-15.C: New test.
4288 * testsuite/libgomp.c++/cancel-for-1.C: New test.
4289 * testsuite/libgomp.c++/cancel-for-2.C: New test.
4290 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
4291 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
4292 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
4293 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
4294 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
4295 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
4296 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
4297 * testsuite/libgomp.c++/cancel-test.h: New file.
4298 * testsuite/libgomp.c++/for-9.C: New test.
4299 * testsuite/libgomp.c++/for-10.C: New test.
4300 * testsuite/libgomp.c++/for-11.C: New test.
4301 * testsuite/libgomp.c++/simd-1.C: New test.
4302 * testsuite/libgomp.c++/simd-2.C: New test.
4303 * testsuite/libgomp.c++/simd-3.C: New test.
4304 * testsuite/libgomp.c++/simd-4.C: New test.
4305 * testsuite/libgomp.c++/simd-5.C: New test.
4306 * testsuite/libgomp.c++/simd-6.C: New test.
4307 * testsuite/libgomp.c++/simd-7.C: New test.
4308 * testsuite/libgomp.c++/simd-8.C: New test.
4309 * testsuite/libgomp.c++/target-1.C: New test.
4310 * testsuite/libgomp.c++/target-2.C: New test.
4311 * testsuite/libgomp.c++/target-2-aux.cc: New file.
4312 * testsuite/libgomp.c++/target-3.C: New test.
4313 * testsuite/libgomp.c++/taskgroup-1.C: New test.
4314 * testsuite/libgomp.c++/udr-1.C: New test.
4315 * testsuite/libgomp.c++/udr-2.C: New test.
4316 * testsuite/libgomp.c++/udr-3.C: New test.
4317 * testsuite/libgomp.c++/udr-4.C: New test.
4318 * testsuite/libgomp.c++/udr-5.C: New test.
4319 * testsuite/libgomp.c++/udr-6.C: New test.
4320 * testsuite/libgomp.c++/udr-7.C: New test.
4321 * testsuite/libgomp.c++/udr-8.C: New test.
4322 * testsuite/libgomp.c++/udr-9.C: New test.
4324 2013-09-20 Jakub Jelinek <jakub@redhat.com>
4327 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
4330 2013-09-20 Alan Modra <amodra@gmail.com>
4332 * configure: Regenerate.
4334 2013-09-19 Jakub Jelinek <jakub@redhat.com>
4336 * testsuite/libgomp.c/sections-2.c: New test.
4338 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
4340 * testsuite/libgomp.fortran/strassen.f90:
4341 Add dg-skip-if aarch64_tiny.
4343 2013-06-20 Iain Sandoe <iain@codesourcery.com>
4344 Cesar Philippidis <cesar@codesourcery.com>
4346 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
4347 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
4348 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
4349 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4350 * testsuite/libgomp.graphite/graphite.exp: Likewise.
4351 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
4352 Use dg-runtest rather than gfortran-dg-runtest.
4354 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
4356 * testsuite/libgomp.c/icv-2.c: Extend current handling of
4357 Linux-based x86 systems to cover all GNU systems.
4358 * testsuite/libgomp.c/lock-3.c: Likewise.
4359 * testsuite/libgomp.c/pr48591.c: Likewise.
4361 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
4363 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
4364 GNU/Hurd, as done for Linux-based systems.
4366 * config/posix/ptrlock.h: Fix comment.
4368 2013-05-27 Tobias Burnus <burnus@net-b.de>
4371 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
4372 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
4373 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
4374 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
4375 omp_destroy_nest_lock): Correct arguments to match the one in
4377 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
4378 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
4379 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
4380 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
4382 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4384 * testsuite/libgomp.c/loop-13.c: New test.
4385 * testsuite/libgomp.c/loop-14.c: New test.
4386 * testsuite/libgomp.c/loop-15.c: New test.
4387 * testsuite/libgomp.c++/loop-13.C: New test.
4388 * testsuite/libgomp.c++/loop-14.C: New test.
4389 * testsuite/libgomp.c++/loop-15.C: New test.
4391 2013-02-06 Jakub Jelinek <jakub@redhat.com>
4394 * testsuite/libgomp.c++/pr56217.C: New test.
4396 2013-02-01 Alan Modra <amodra@gmail.com>
4398 * task.c (GOMP_task, GOMP_taskwait): Comment.
4400 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
4401 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
4404 * config/linux/wait.h (do_spin): Use atomic load for addr.
4405 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
4406 for intptr and ptrlock.
4407 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
4410 2013-01-22 Alan Modra <amodra@gmail.com>
4414 * task.c (GOMP_task): Revert 2011-12-09 change.
4415 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
4416 barrier to read task->children..
4417 (gomp_barrier_handle_tasks): ..and matching atomic store with
4418 release barrier here when setting parent->children to NULL.
4420 2013-01-16 Jakub Jelinek <jakub@redhat.com>
4421 Tobias Burnus <burnus@net-b.de>
4424 * testsuite/libgomp.fortran/fortran.exp: Use
4425 -fintrinsic-modules-path= instead of
4426 -fintrinsic-modules-path.
4428 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
4430 Update copyright years.
4432 2012-12-19 Tobias Burnus <burnus@net-b.de>
4434 * testsuite/libgomp.fortran/fortran.exp: Set
4435 -fintrinsic-modules-path.
4437 2012-12-19 Tobias Burnus <burnus@net-b.de>
4439 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
4440 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
4442 2012-11-21 Jakub Jelinek <jakub@redhat.com>
4445 * team.c (gomp_free_thread): Decrease gomp_managed_threads
4446 if pool had any threads_used.
4448 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
4450 * testsuite/libgomp.c++/pr24455.C: Use
4451 -Wl,-undefined,dynamic_lookup on darwin.
4453 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
4455 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
4457 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
4459 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
4461 2012-10-23 Ian Bolton <ian.bolton@arm.com>
4462 Jim MacArthur <jim.macarthur@arm.com>
4463 Marcus Shawcroft <marcus.shawcroft@arm.com>
4464 Nigel Stephens <nigel.stephens@arm.com>
4465 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4466 Richard Earnshaw <rearnsha@arm.com>
4467 Sofiane Naci <sofiane.naci@arm.com>
4468 Stephen Thomas <stephen.thomas@arm.com>
4469 Tejas Belagod <tejas.belagod@arm.com>
4470 Yufeng Zhang <yufeng.zhang@arm.com>
4472 * configure.tgt: Add AArch64.
4474 2012-10-04 Jason Merrill <jason@redhat.com>
4476 * testsuite/libgomp.c++/tls-init1.C: New.
4478 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
4480 * configure: Regenerated.
4482 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
4484 * config/linux/mips/futex.h (sys_futex0): Change to static
4485 function with noinline, nomips16 attributes under MIPS16. Adjust
4486 asm statement to place 'li v0,SYS_futex' immediately before
4489 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
4491 * libgomp.texi (Library Index): Renamed from "Index" to prevent
4492 conflict with index.html on case-insensitive file systems.
4494 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
4496 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
4497 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
4499 2012-07-02 Richard Guenther <rguenther@suse.de>
4500 Michael Matz <matz@suse.de>
4501 Tobias Grosser <tobias@grosser.es>
4502 Sebastian Pop <sebpop@gmail.com>
4504 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4505 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
4506 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4507 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4509 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
4511 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
4513 2012-06-22 Richard Guenther <rguenther@suse.de>
4515 Merge from graphite branch
4516 2012-01-13 Tobias Grosser <tobias@grosser.es>
4518 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4519 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
4521 2012-06-07 Jakub Jelinek <jakub@redhat.com>
4524 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
4525 use GOMP_barrier () call instead.
4526 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4527 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4528 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
4529 call GOMP_barrier instead.
4530 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4532 2012-06-06 Jakub Jelinek <jakub@redhat.com>
4535 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
4536 argument to memset call.
4538 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4540 * configure: Regenerated.
4542 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4544 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
4546 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
4549 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
4551 2012-03-22 Jakub Jelinek <jakub@redhat.com>
4554 * testsuite/libgomp.c/pr52547.c: New test.
4556 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4558 * testsuite/lib/libgomp.exp: load fortran-modules.exp
4560 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4562 * configure.tgt (mips-sgi-irix6*): Remove.
4564 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4566 * configure.tgt (alpha*-dec-osf*): Remove.
4568 * config/osf/sem.h: Remove.
4569 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
4571 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
4573 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
4575 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4578 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
4579 Remove ENABLE_SYMVERS_SOL2.
4580 * configure: Regenerate.
4581 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
4582 (PREPROCESS): New variable.
4583 (libgomp.ver): New target.
4584 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
4585 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
4586 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
4588 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
4589 * Makefile.in: Regenerate.
4591 2012-02-14 Walter Lee <walt@tilera.com>
4593 * configure.tgt: Handle tilegx and tilepro.
4594 * config/linux/tile/futex.h: New file.
4596 2012-02-08 Richard Guenther <rguenther@suse.de>
4598 PR tree-optimization/46886
4599 * testsuite/libgomp.c/pr46886.c: New testcase.
4601 2012-01-25 Matthias Klose <doko@ubuntu.com>
4603 * config/linux/arm: Remove empty directory.
4604 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
4606 2011-12-09 Alan Modra <amodra@gmail.com>
4609 * task.c (GOMP_taskwait): Don't access task->children outside of
4610 task_lock mutex region.
4611 (GOMP_task): Likewise.
4613 2011-12-06 Jakub Jelinek <jakub@redhat.com>
4616 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
4618 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
4619 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
4620 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4621 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4622 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
4624 2011-12-02 Alan Modra <amodra@gmail.com>
4626 * config/linux/affinity.c: Use atomic rather than sync builtin.
4627 * config/linux/lock.c: Likewise.
4628 * config/linux/ptrlock.h: Likewise.
4629 * config/linux/ptrlock.c: Likewise.
4630 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
4631 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
4632 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
4633 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
4634 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
4635 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
4636 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
4637 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
4638 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
4639 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
4641 2011-11-30 Alan Modra <amodra@gmail.com>
4644 * config/linux/bar.h: Use atomic rather than sync builtins.
4645 * config/linux/bar.c: Likewise. Add missing acquire
4646 synchronisation on generation field.
4647 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
4650 2011-11-30 Alan Modra <amodra@gmail.com>
4652 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
4653 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
4654 * config/linux/mutex.h: Use atomic rather than sync builtins.
4655 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
4656 * config/linux/omp-lock.h: Comment fix.
4657 * config/linux/arm/mutex.h: Delete.
4658 * config/linux/powerpc/mutex.h: Delete.
4659 * config/linux/ia64/mutex.h: Delete.
4660 * config/linux/mips/mutex.h: Delete.
4662 2011-11-30 Alan Modra <amodra@gmail.com>
4665 * config/linux/sem.h: Rewrite.
4666 * config/linux/sem.c: Rewrite.
4668 2011-11-28 Richard Henderson <rth@redhat.com>
4670 * libgomp.h (enum memmodel): New.
4672 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
4674 * configure: Regenerate.
4676 2011-10-10 Matthias Klose <doko@ubuntu.com>
4678 * config/posix95: Remove empty directory.
4680 2011-08-26 Jakub Jelinek <jakub@redhat.com>
4682 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
4684 2011-08-19 Jakub Jelinek <jakub@redhat.com>
4687 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
4688 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
4690 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4692 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
4694 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4697 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
4699 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
4701 * config/linux/proc.h: New.
4702 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
4703 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
4704 (gomp_init_num_threads): Update call to cpuset_popcount.
4705 (get_num_procs): Ditto.
4706 * config/linux/affinity.c (gomp_init_affinity): Call
4707 gomp_cpuset_popcount.
4709 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4713 * omp.h.in (omp_in_final): New prototype.
4714 * omp_lib.f90.in (omp_in_final): New interface.
4715 (omp_integer_kind, omp_logical_kind): Remove
4716 and replace all its uses in the module with 4.
4717 (openmp_version): Change to 201107.
4718 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
4719 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
4720 kind for the parameters.
4721 (omp_in_final): New external.
4722 (openmp_version): Change to 201107.
4723 * task.c (omp_in_final): New function.
4724 (gomp_init_task): Initialize final_task.
4725 (GOMP_task): Remove unused attribute from flags. Handle final
4727 (GOMP_taskyield): New function.
4728 (omp_in_final): Return true if if (false) or final (true) task
4729 or descendant of final (true).
4730 * fortran.c (omp_in_final_): New function.
4731 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
4732 (GOMP_3.0): Export GOMP_taskyield.
4733 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
4735 (parse_unsigned_long_list): New function.
4736 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
4737 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
4738 even if parse_affinity returned false.
4739 * config/linux/affinity.c (gomp_init_affinity): Handle
4740 gomp_cpu_affinity_len == 0.
4741 * libgomp_g.h (GOMP_taskyield): New prototype.
4742 * libgomp.h (struct gomp_task): Add final_task field.
4743 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
4744 * team.c (gomp_team_start): Override new task's nthreads_var icv
4745 if list form OMP_NUM_THREADS has been used and it has value for
4746 the new nesting level.
4748 * testsuite/libgomp.c/atomic-11.c: New test.
4749 * testsuite/libgomp.c/atomic-12.c: New test.
4750 * testsuite/libgomp.c/atomic-13.c: New test.
4751 * testsuite/libgomp.c/atomic-14.c: New test.
4752 * testsuite/libgomp.c/reduction-6.c: New test.
4753 * testsuite/libgomp.c/task-5.c: New test.
4754 * testsuite/libgomp.c++/atomic-2.C: New test.
4755 * testsuite/libgomp.c++/atomic-3.C: New test.
4756 * testsuite/libgomp.c++/atomic-4.C: New test.
4757 * testsuite/libgomp.c++/atomic-5.C: New test.
4758 * testsuite/libgomp.c++/atomic-6.C: New test.
4759 * testsuite/libgomp.c++/atomic-7.C: New test.
4760 * testsuite/libgomp.c++/atomic-8.C: New test.
4761 * testsuite/libgomp.c++/atomic-9.C: New test.
4762 * testsuite/libgomp.c++/task-8.C: New test.
4763 * testsuite/libgomp.c++/reduction-4.C: New test.
4764 * testsuite/libgomp.fortran/allocatable7.f90: New test.
4765 * testsuite/libgomp.fortran/allocatable8.f90: New test.
4766 * testsuite/libgomp.fortran/crayptr3.f90: New test.
4767 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
4768 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
4769 * testsuite/libgomp.fortran/pointer1.f90: New test.
4770 * testsuite/libgomp.fortran/pointer2.f90: New test.
4771 * testsuite/libgomp.fortran/task4.f90: New test.
4773 2011-08-02 Tobias Burnus <burnus@net-b.de>
4775 * libgomp.texi: Update OpenMP spec references to 3.1.
4776 (omp_in_final,OMP_PROC_BIND): New sections.
4777 (OMP_NUM_THREADS): Document that the value can be now a list.
4778 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
4780 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4782 * config/linux/x86/futex.h: Check __x86_64__ instead of
4785 2011-07-29 Jakub Jelinek <jakub@redhat.com>
4789 * testsuite/libgomp.c/pr49897-1.c: New test.
4790 * testsuite/libgomp.c/pr49897-2.c: New test.
4791 * testsuite/libgomp.c/pr49898-1.c: New test.
4792 * testsuite/libgomp.c/pr49898-2.c: New test.
4794 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4796 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
4797 for ia32 instead of ilp32.
4799 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
4800 * testsuite/libgomp.c/atomic-6.c: Likewise.
4802 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
4804 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
4805 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
4807 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4810 * config/osf/sem.h: New file.
4811 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
4813 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4816 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
4819 2011-07-15 Jakub Jelinek <jakub@redhat.com>
4821 * config/linux/wait.h (do_spin): New inline, largely copied
4822 from do_wait, just don't do futex_wait here, instead return true if
4824 (do_wait): Implement using do_spin.
4825 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
4827 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4828 __sync_bool_compare_and_swap, pass the oldval to
4829 gomp_mutex_lock_slow.
4830 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
4831 If all mutex contenders are just spinning and not sleeping, don't
4832 change state to 2 unnecessarily. Optimize the loop when state has
4833 already become 2 to use just one atomic operation per loop instead
4835 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
4837 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4838 __sync_bool_compare_and_swap, pass the oldval to
4839 gomp_mutex_lock_slow.
4841 2011-06-22 Jakub Jelinek <jakub@redhat.com>
4844 * iter.c (gomp_iter_static_next): For chunk size 0
4845 only use n ceil/ nthreads size for the first
4846 n % nthreads threads in the team instead of
4847 all threads except for the last few ones which
4848 get less work or none at all.
4849 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
4850 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
4851 chunk argument, set run_sched_modifier to 0 for static
4852 resp. 1 for other kinds. If chunk argument is 0
4853 and not static, set value to 1.
4855 2011-05-19 Jakub Jelinek <jakub@redhat.com>
4858 * testsuite/libgomp.c++/pr49043.C: New test.
4861 * testsuite/libgomp.c++/pr48869.C: New test.
4863 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4866 * fortran.c: Include limits.h.
4868 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
4870 (omp_set_num_threads_8_, omp_set_schedule_8_,
4871 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
4872 omp_get_team_size_8_): Use TO_INT macro.
4873 * testsuite/libgomp.fortran/pr48894.f90: New test.
4875 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4878 * testsuite/libgomp.c/pr48591.c: New test.
4880 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4883 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
4884 * configure: Regenerate.
4886 2011-02-27 Jakub Jelinek <jakub@redhat.com>
4889 * testsuite/libgomp.fortran/task3.f90: New test.
4891 2011-02-24 Tobias Burnus <burnus@net-b.de>
4893 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
4895 2011-02-23 Jakub Jelinek <jakub@redhat.com>
4898 * libgomp.texi (omp_get_wtime): Don't say time in the past
4901 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4904 * testsuite/libgomp.fortran/fortran.exp: Check for both
4905 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
4906 but $blddir != "", still append ${blddir}/${lang_library_path}
4909 2011-02-16 Tobias Burnus <burnus@net-b.de>
4912 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
4913 of libquadmath.a before adding its libpath to ldflags.
4915 2011-02-14 Jakub Jelinek <jakub@redhat.com>
4918 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
4919 to FUTEX_WAIT futex syscall.
4920 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
4922 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4924 * configure: Regenerate.
4926 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
4929 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
4931 2011-01-16 Gerald Pfeifer
4933 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
4935 2010-12-14 Jakub Jelinek <jakub@redhat.com>
4938 * libgomp.fortran/allocatable6.f90: New test.
4940 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4942 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
4943 * configure: Regenerate.
4945 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
4949 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
4950 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
4951 * aclocal.m4: Regenerate.
4952 * configure: Regenerate.
4953 * Makefile.in: Regenerate.
4954 * testsuite/Makefile.in: Regenerate.
4956 2010-12-02 Jakub Jelinek <jakub@redhat.com>
4959 * libgomp.fortran/pr46753.f90: New test.
4962 * env.c (initialize_env): Default to spin count 300000
4963 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
4967 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
4968 at the end if sync builtins aren't supported.
4970 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4972 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
4974 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4976 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
4978 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
4980 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
4982 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4983 Tobias Burnus <burnus@net-b.de>
4987 * configure: Regenerate.
4989 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
4991 * config/linux/futex.h: New.
4992 * config/linux/arm/mutex.h: New.
4993 * configure.tgt (arm*-*-linux*): Add config path.
4995 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4997 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4999 2010-09-23 Tobias Burnus <burnus@net-b.de>
5001 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
5002 Change Fortran datatype to LOGICAL.
5003 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
5004 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
5006 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5008 * configure: Regenerate.
5010 2010-07-26 Jakub Jelinek <jakub@redhat.com>
5012 * libgomp.texi: Add function keyword to a couple of Fortran
5013 interfaces, use integer instead of int for Fortran.
5015 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
5017 * libgomp.texi: Fix spelling and pasto problems throughout.
5018 Adjust prototypes to match code.
5020 2010-07-24 Tobias Burnus <burnus@net-b.de>
5022 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
5023 silence -fwhole-file warning.
5025 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5027 * configure.tgt (*-*-solaris2.[56]*): Removed.
5029 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5031 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
5032 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
5033 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
5034 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
5035 targetting solaris2*.
5036 * configure: Regenerate.
5037 * config.h.in: Regenerate.
5039 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
5040 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
5041 Add libgomp_version_dep.
5042 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
5044 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
5045 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
5046 * Makefile.in: Regenerate.
5048 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
5049 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
5050 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
5051 to common block, protected by
5052 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
5054 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
5056 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
5058 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
5061 * configure: Regenerate.
5063 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5066 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
5067 * configure: Regenerate.
5068 * Makefile.in: Regenerate.
5069 * testsuite/Makefile.in: Regenerate.
5071 2010-04-26 Jakub Jelinek <jakub@redhat.com>
5074 * testsuite/libgomp.c/pr43893.c: New test.
5075 * testsuite/libgomp.c++/pr43893.C: New test.
5077 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5080 * testsuite/libgomp.fortran/vla8.f90: New test.
5082 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5085 * config/linux/affinity.c (gomp_init_affinity): Decrease
5086 gomp_available_cpus if affinity mask confines the process to fewer
5088 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
5089 non-NULL, just return gomp_available_cpus.
5092 * sections.c (gomp_sections_init): Initialize ws->mode.
5094 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5096 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
5097 not unused bar variable.
5098 * configure: Regenerate.
5100 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5102 * Makefile.in: Regenerate.
5103 * aclocal.m4: Regenerate.
5104 * testsuite/Makefile.in: Regenerate.
5106 2010-03-22 Jakub Jelinek <jakub@redhat.com>
5109 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
5110 (initialize_env): Adjust callers.
5111 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
5112 when the argument is 0.
5114 * testsuite/libgomp.c/pr42942.c: New test.
5116 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
5120 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
5121 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
5123 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5125 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
5126 * testsuite/libgomp.c++/task-6.C: Likewise.
5128 2010-01-28 Steve Ellcey <sje@cup.hp.com>
5130 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
5132 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
5134 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
5135 * configure: Regenerate.
5137 2010-01-26 Jakub Jelinek <jakub@redhat.com>
5140 * testsuite/libgomp.fortran/allocatable5.f90: New test.
5142 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
5144 * configure.ac: Test for executability of GFORTRAN.
5145 * configure: Regenerate.
5147 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5149 * configure: Regenerate.
5151 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
5154 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
5156 2010-01-03 Richard Guenther <rguenther@suse.de>
5158 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
5160 2009-12-23 Sebastian Pop <sebpop@gmail.com>
5162 * testsuite/libgomp.graphite/pr4118.c: New.
5164 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5166 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
5167 for darwin, protect the test with require-effective-target tls_runtime.
5168 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
5170 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5173 * testsuite/lib/libgomp.exp: Provide -B options to allow for
5174 link spec %s substitutions for static libraries.
5176 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
5179 * libgomp.graphite/force-parallel-2.c: Reduce array size.
5181 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5183 * Makefile.in: Regenerate.
5184 * configure: Regenerate.
5185 * testsuite/Makefile.in: Regenerate.
5187 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
5189 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
5190 settings for LC_ALL and LANG.
5192 2009-11-25 Jakub Jelinek <jakub@redhat.com>
5195 * testsuite/libgomp.fortran/pr42162.f90: New test.
5197 2009-11-13 Jakub Jelinek <jakub@redhat.com>
5200 * testsuite/libgomp.c/pr42029.c: New test.
5202 2009-10-26 Jakub Jelinek <jakub@redhat.com>
5204 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
5205 *s. Accept ld version without text in ()s.
5206 * configure: Regenerated.
5208 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
5210 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
5212 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5215 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
5216 or a hyphen (happens with fortran language disabled).
5217 * configure: Regenerate.
5219 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5221 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
5222 use sed script portable to Solaris /bin/sed for extracting ld
5224 * configure: Regenerate.
5226 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
5228 * testsuite/libgomp.graphite/bounds.c: New test.
5230 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5232 * Makefile.am (libgomp_la_LINK): New.
5233 * Makefile.in: Regenerate.
5235 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5237 * configure.ac (AC_PREREQ): Bump to 2.64.
5239 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5241 * Makefile.am (install-html, install-pdf): Remove.
5242 * Makefile.in: Regenerate.
5244 * Makefile.in: Regenerate.
5245 * aclocal.m4: Regenerate.
5246 * config.h.in: Regenerate.
5247 * configure: Regenerate.
5248 * testsuite/Makefile.in: Regenerate.
5250 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5252 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
5253 * Makefile.in: Regenerate.
5255 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
5257 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
5258 * Makefile.in: Regenerate.
5260 2009-08-19 Tobias Burnus <burnus@net-b.de>
5263 omp_lib.h.in: Fix -std=f95 errors.
5265 2009-08-14 David Edelsohn <edelsohn@gnu.org>
5267 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
5268 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
5269 * testsuite/libgomp.graphite/graphite.exp: New.
5271 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
5273 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
5276 2009-08-04 David Daney <ddaney@caviumnetworks.com>
5278 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
5279 needed memory barrier semantics.
5280 * config/linux/mips/mutex.h: New file.
5282 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5284 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
5286 2009-07-16 Joseph Myers <joseph@codesourcery.com>
5288 * configure: Regenerate.
5290 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
5295 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
5296 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
5297 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
5299 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
5301 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
5302 options when choosing a multilib.
5304 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
5306 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
5307 ld_library_path. Use add_path. Add just find_libgcc_s to
5308 ld_library_path, not every libgcc multilib directory.
5309 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
5310 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
5311 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
5313 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
5315 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
5317 * Makefile.am (LTLDFLAGS): Define.
5319 * Makefile.in: Regenerate.
5321 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
5324 * testsuite/libgomp.fortran/fortran.exp: Don't link with
5325 libgfortranbegin, check existence of libgfortran.a instead of
5328 2009-05-20 Jakub Jelinek <jakub@redhat.com>
5331 * team.c (gomp_thread_start): Destroy thr->release semaphore.
5332 (gomp_free_pool_helper): Likewise.
5334 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
5335 Jakub Jelinek <jakub@redhat.com>
5338 * testsuite/libgomp.fortran/workshare2.f90: New test.
5340 2009-04-09 Nick Clifton <nickc@redhat.com>
5342 * iter.c: Change copyright header to refer to version 3 of the
5343 GNU General Public License with version 3.1 of the GCC Runtime
5344 Library Exception and to point readers at the COPYING3 and
5345 COPYING3.RUNTIME files and the FSF's license web page.
5346 * alloc.c: Likewise.
5347 * barrier.c: Likewise.
5348 * config/bsd/proc.c: Likewise.
5349 * config/linux/affinity.c: Likewise.
5350 * config/linux/alpha/futex.h: Likewise.
5351 * config/linux/bar.c: Likewise.
5352 * config/linux/bar.h: Likewise.
5353 * config/linux/ia64/futex.h: Likewise.
5354 * config/linux/ia64/mutex.h: Likewise.
5355 * config/linux/lock.c: Likewise.
5356 * config/linux/mips/futex.h: Likewise.
5357 * config/linux/mutex.c: Likewise.
5358 * config/linux/mutex.h: Likewise.
5359 * config/linux/powerpc/futex.h: Likewise.
5360 * config/linux/proc.c: Likewise.
5361 * config/linux/ptrlock.c: Likewise.
5362 * config/linux/ptrlock.h: Likewise.
5363 * config/linux/s390/futex.h: Likewise.
5364 * config/linux/sem.c: Likewise.
5365 * config/linux/sem.h: Likewise.
5366 * config/linux/sparc/futex.h: Likewise.
5367 * config/linux/wait.h: Likewise.
5368 * config/linux/x86/futex.h: Likewise.
5369 * config/mingw32/proc.c: Likewise.
5370 * config/mingw32/time.c: Likewise.
5371 * config/posix/affinity.c: Likewise.
5372 * config/posix/bar.c: Likewise.
5373 * config/posix/bar.h: Likewise.
5374 * config/posix/lock.c: Likewise.
5375 * config/posix/mutex.h: Likewise.
5376 * config/posix/proc.c: Likewise.
5377 * config/posix/ptrlock.h: Likewise.
5378 * config/posix/sem.c: Likewise.
5379 * config/posix/sem.h: Likewise.
5380 * config/posix/time.c: Likewise.
5381 * config/posix95/lock.c: Likewise.
5382 * critical.c: Likewise.
5384 * error.c: Likewise.
5385 * fortran.c: Likewise.
5386 * iter_ull.c: Likewise.
5387 * libgomp.h: Likewise.
5388 * libgomp_f.h.in: Likewise.
5389 * libgomp_g.h: Likewise.
5391 * loop_ull.c: Likewise.
5392 * omp.h.in: Likewise.
5393 * omp_lib.f90.in: Likewise.
5394 * omp_lib.h.in: Likewise.
5395 * ordered.c: Likewise.
5396 * parallel.c: Likewise.
5397 * sections.c: Likewise.
5398 * single.c: Likewise.
5403 2009-04-09 Jakub Jelinek <jakub@redhat.com>
5405 * testsuite/config/default.exp: Change copyright header to refer to
5406 version 3 of the GNU General Public License and to point readers
5407 at the COPYING3 file and the FSF's license web page.
5409 2009-04-08 Jakub Jelinek <jakub@redhat.com>
5412 * libgomp.c++/pr39573.C: New test.
5414 2009-04-01 Jakub Jelinek <jakub@redhat.com>
5417 * testsuite/libgomp.c/pr39591-1.c: New test.
5418 * testsuite/libgomp.c/pr39591-2.c: New test.
5419 * testsuite/libgomp.c/pr39591-3.c: New test.
5421 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
5423 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
5424 * testsuite/libgomp.c/atomic-6.c: Ditto.
5426 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5429 * testsuite/libgomp.c/loop-12.c: New test.
5430 * testsuite/libgomp.c/loop-11.c: New test.
5431 * testsuite/libgomp.c++/loop-11.C: New test.
5432 * testsuite/libgomp.c++/loop-12.C: New test.
5433 * testsuite/libgomp.c++/for-8.C: New test.
5435 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5437 * configure: Regenerate.
5439 2009-02-11 Jakub Jelinek <jakub@redhat.com>
5442 * testsuite/libgomp.c/pr39154.c: New test.
5444 2009-01-30 Ian Lance Taylor <iant@google.com>
5446 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
5447 libgomp_ld_is_gold. Get gold version number.
5448 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
5449 * configure: Rebuild.
5451 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5453 * testsuite/lib/libgomp.exp: Add -B option for targets that
5454 use libgfortran.a%s in their specs.
5456 2009-01-07 Jakub Jelinek <jakub@redhat.com>
5459 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
5460 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
5461 HAVE_AS_SYMVER_DIRECTIVE is not defined.
5462 * configure: Regenerated.
5463 * config.h.in: Likewise.
5465 2008-12-28 Jakub Jelinek <jakub@redhat.com>
5468 * testsuite/libgomp.c/pr38650.c: New test.
5469 * testsuite/libgomp.c++/pr38650.C: New test.
5471 2008-12-27 Jakub Jelinek <jakub@redhat.com>
5473 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
5475 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
5477 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
5479 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5481 * configure: Regenerate.
5483 2008-12-08 Jakub Jelinek <jakub@redhat.com>
5486 * testsuite/libgomp.c/pr36802-1.c: New test.
5487 * testsuite/libgomp.c/pr36802-2.c: New test.
5488 * testsuite/libgomp.c/pr36802-3.c: New test.
5490 2008-12-01 Janis Johnson <janis187@us.ibm.com>
5493 * config/linux/powerpc/mutex.h: New.
5495 2008-12-01 Jakub Jelinek <jakub@redhat.com>
5498 * testsuite/libgomp.c++/for-7.C: New test.
5501 * testsuite/libgomp.c++/for-6.C: New test.
5503 2008-11-26 Janis Johnson <janis187@us.ibm.com>
5506 * testsuite/lib/libgomp.exp: Include new timeout library files.
5507 (libgomp_target_compile): Set timeout value from new proc.
5509 2008-11-13 Steve Ellcey <sje@cup.hp.com>
5512 * config/linux/ia64/mutex.h: New.
5514 2008-11-04 Tobias Burnus <burnus@net-b.de>
5517 * libgomp.texi (Runtime library routines, environment variables):
5518 Update for OpenMP version 3.0.
5520 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
5521 Steve Ellcey <sje@cup.hp.com>
5523 * configure: Regenerate for new libtool.
5524 * Makefile.in: Ditto.
5525 * testsuite/Makefile.in: Ditto.
5527 2008-09-19 Jakub Jelinek <jakub@redhat.com>
5528 Andreas Tobler <a.tobler@schweiz.org>
5530 * config/bsd/proc.c: New file.
5531 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
5532 * configure.ac: Check for header <sys/sysctl.h>
5533 * configure: Regenerate.
5534 * config.h.in: Likewise.
5536 2008-09-05 Janis Johnson <janis187@us.ibm.com>
5538 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
5540 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5542 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
5543 * Makefile.in: Regenerated.
5544 * testsuite/Makefile.in: Regenerated.
5546 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
5548 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
5549 depend on blddir if blddir exists.
5550 (libgomp_target_compile): Likewise.
5551 * testsuite/libgomp.c++/c++.exp: Likewise.
5552 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5554 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5556 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
5557 Do not list GPL as Invariant Section.
5559 2008-07-28 Ilie Garbacea <ilie@mips.com>
5560 Chao-ying Fu <fu@mips.com>
5562 * configure.tgt: Enable futex for MIPS.
5563 * config/linux/mips/futex.h: New file.
5565 2008-07-16 Jakub Jelinek <jakub@redhat.com>
5567 * team.c (gomp_team_end): Free team immediately if it has
5570 2008-07-08 David Edelsohn <edelsohn@gnu.org>
5572 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
5573 * testsuite/libgomp.fortran/fortran.exp: Same.
5574 * testsuite/libgomp.c/c.exp: Same.
5575 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
5576 directory to library path first.
5578 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
5580 * env.c (parse_stacksize): Add cast to avoid warning.
5581 (parse_spincount): Likewise.
5583 2008-06-27 Jakub Jelinek <jakub@redhat.com>
5585 * testsuite/libgomp.c/loop-10.c: New test.
5586 * libgomp.c/loop-3.c (main): Add lastprivate clause.
5587 * libgomp.c++/loop-6.C (main): Likewise.
5590 * testsuite/libgomp.c/debug-1.c: New test.
5592 2008-06-19 Jakub Jelinek <jakub@redhat.com>
5594 * testsuite/libgomp.c/nqueens-1.c: New test.
5597 * testsuite/libgomp.c++/task-7.C: New function.
5599 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5601 * configure: Regenerate.
5603 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5605 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
5606 mutex when HAVE_SYNC_BUILTINS isn't defined.
5608 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5610 * libgomp.texi (omp_test_lock): Fix typo.
5612 2008-06-12 Tobias Burnus <burnus@net-b.de>
5614 * omp_lib.f90.in: Add "implicit none".
5616 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5619 * testsuite/libgomp.c/reduction-5.c: New test.
5621 2008-06-11 Jakub Jelinek <jakub@redhat.com>
5623 * libgomp.h (struct gomp_task): Add in_tied_task field.
5624 * task.c (gomp_init_task): Initialize it.
5625 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
5626 unconditionally. Don't call gomp_team_barrier_wake if
5627 current task is implicit or if(0) from implicit and number of
5628 running tasks is equal to nthreads - 1.
5631 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
5632 omp_get_team_size_8): Fix pastos.
5635 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
5636 * configure: Regenerated.
5637 * config.h.in: Regenerated.
5638 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
5641 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
5644 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
5645 (GOMP_loop_ull_dynamic_start): Likewise.
5646 (GOMP_loop_ull_guided_start): Likewise.
5647 (GOMP_loop_ull_ordered_static_start): Likewise.
5648 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
5649 (GOMP_loop_ull_ordered_guided_start): Likewise.
5651 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5652 Richard Henderson <rth@redhat.com>
5653 Ulrich Drepper <drepper@redhat.com>
5654 Jakob Blomer <jakob.blomer@ira.uka.de>
5656 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
5657 Substitute also OMP_*LOCK_25*.
5658 * configure: Regenerated.
5659 * config.h.in: Regenerated.
5660 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
5661 ptrlock.c and task.c.
5662 * Makefile.in: Regenerated.
5663 * testsuite/Makefile.in: Regenerated.
5665 * loop_ull.c: New file.
5666 * iter_ull.c: New file.
5667 * libgomp.h: Include ptrlock.h.
5668 (enum gomp_task_kind): New type.
5669 (struct gomp_team): Add task_lock, task_queue, task_count,
5670 task_running_count, single_count fields. Add
5671 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
5672 Remove work_share_lock, generation_mask,
5673 oldest_live_gen, num_live_gen and init_work_shares fields, add
5674 work work_share_list_alloc, work_share_list_free and work_share_chunk
5675 fields. Change work_shares from pointer to pointers into an array.
5676 Change ordered_release field into gomp_sem_t ** from flexible array
5677 member. Add implicit_task and initial_work_shares fields.
5678 Move close to the end of the struct.
5679 (struct gomp_team_state): Add single_count, last_work_share,
5680 active_level and level fields, remove work_share_generation.
5681 (gomp_barrier_handle_tasks): New prototype.
5682 (gomp_finish_task): New inline function.
5683 (struct gomp_work_share): Move chunk_size, end, incr into
5684 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
5685 next_ll fields. Reshuffle fields. Add next_alloc,
5686 next_ws, next_free and inline_ordered_team_ids fields, change
5687 ordered_team_ids into pointer from flexible array member.
5688 Add mode field. Put lock and next into a different cache line
5689 from most of the write-once fields.
5690 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
5691 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
5692 gomp_iter_ull_guided_next): New prototypes.
5693 (gomp_new_icv): New prototype.
5694 (struct gomp_thread): Add thread_pool and task fields.
5695 (struct gomp_thread_pool): New type.
5696 (gomp_new_team): New prototype.
5697 (gomp_team_start): Change type of last argument.
5698 (gomp_new_work_share): Removed.
5699 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
5700 (gomp_work_share_init_done): New static inline.
5701 (gomp_throttled_spin_count_var, gomp_available_cpus,
5702 gomp_managed_threads): New extern decls.
5703 (gomp_init_task): New prototype.
5704 (gomp_spin_count_var): New extern var decl.
5705 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
5706 or no alias support, or if not PIC.
5707 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
5708 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
5709 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
5710 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
5711 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
5712 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
5713 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
5714 gomp_test_nest_lock_25): New prototypes.
5715 (omp_lock_symver, strong_alias): Define.
5716 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
5718 (gomp_end_task): New.
5719 (struct gomp_task_icv, gomp_global_icv): New.
5720 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
5721 (struct gomp_task): New.
5722 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5723 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5725 (gomp_schedule_type): Reorder enum to match
5727 * team.c (struct gomp_thread_start_data): Add thread_pool and task
5729 (gomp_thread_start): Add gomp_team_barrier_wait call.
5730 For non-nested case remove clearing of docked thread thr fields.
5731 Use pool fields instead of global gomp_* variables. Use
5732 gomp_barrier_wait_last when needed. Initialize ts.active_level.
5733 Create tasks for each member thread.
5734 (free_team): Only destroy team barrier, task_lock here and free it.
5735 (gomp_free_thread): Free last_team if non-NULL.
5736 (gomp_team_end): Call gomp_team_barrier_wait instead of
5737 gomp_barrier_wait. For nested case call one extra
5738 gomp_barrier_wait. Move here some destruction from free_team.
5739 Call free_team on pool->last_team if any, rather than freeing
5740 current team. Destroy work_share_list_free_lock ifndef
5742 (gomp_new_icv): New function.
5743 (gomp_threads, gomp_threads_size, gomp_threads_used,
5744 gomp_threads_dock): Removed.
5745 (gomp_thread_destructor): New variable.
5746 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
5748 (gomp_team_start): Create new pool if current thread doesn't have
5749 one. Use pool fields instead of global gomp_* variables.
5750 Initialize thread_pool field for new threads. Clear single_count.
5751 Change last argument from ws to team, don't create
5752 new team, set ts.work_share to &team->work_shares[0] and clear
5753 ts.last_work_share. Don't clear ts.work_share_generation.
5754 If number of threads changed, adjust atomically gomp_managed_threads.
5755 Use gomp_init_task instead of gomp_new_task,
5756 set thr->task to the corresponding implicit_task array entry.
5757 Create tasks for each member thread. Initialize ts.level.
5758 (initialize_team): Call pthread_key_create on
5759 gomp_thread_destructor.
5760 (team_destructor): New function.
5761 (new_team): Removed.
5762 (gomp_new_team): New function.
5763 (free_team): Free gomp_work_share blocks chained through next_alloc,
5764 instead of freeing work_shares and destroying work_share_lock.
5765 (gomp_team_end): Call gomp_fini_work_share. If number of threads
5766 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
5767 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
5768 of gomp_barrier_wait.
5769 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
5770 instead of gomp_barrier_wait. Call gomp_work_share_init_done
5771 if gomp_work_share_start returned true. Don't unlock ws->lock.
5772 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
5773 of gomp_barrier_wait.
5774 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
5775 gomp_work_share_init_done if gomp_work_share_start returned true.
5776 Don't unlock ws->lock.
5777 * work.c: Include stddef.h.
5778 (free_work_share): Use work_share_list_free_lock instead
5779 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
5780 Call gomp_fini_work_share and then either free ws if orphaned, or
5781 put it into work_share_list_free list of the current team.
5782 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
5784 (gomp_work_share_start, gomp_work_share_end,
5785 gomp_work_share_end_nowait): Rewritten.
5786 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
5787 (openmp_version): Set to 200805.
5788 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5789 omp_sched_guided, omp_sched_auto): New parameters.
5790 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5791 omp_set_max_active_levels, omp_get_max_active_levels,
5792 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5793 omp_get_active_level): New interfaces.
5794 * omp_lib.h.in (openmp_version): Set to 200805.
5795 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5796 omp_sched_guided, omp_sched_auto): New parameters.
5797 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5798 omp_set_max_active_levels, omp_get_max_active_levels,
5799 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5800 omp_get_active_level): New externals.
5801 * loop.c: Include limits.h.
5802 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
5804 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
5805 Likewise. Use gomp_icv.
5806 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
5807 ts.static_trip here.
5808 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
5809 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
5810 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
5811 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
5812 don't unlock ws->lock, otherwise lock it.
5813 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
5814 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
5815 (gomp_parallel_loop_start): Call gomp_new_team instead of
5816 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
5817 Adjust gomp_team_start caller. Pass 0 as second argument to
5818 gomp_resolve_num_threads.
5819 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
5820 If adding ws->chunk_size nthreads + 1 times after end won't
5821 overflow, set ws->mode to 1.
5822 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
5823 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
5824 GOMP_loop_ull_ordered_static_start,
5825 GOMP_loop_ull_ordered_dynamic_start,
5826 GOMP_loop_ull_ordered_guided_start,
5827 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
5828 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
5829 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
5830 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
5831 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
5833 * libgomp.map: Export lock routines also @@OMP_2.0.
5834 (GOMP_loop_ordered_dynamic_first,
5835 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
5836 GOMP_loop_ordered_static_first): Remove.
5837 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
5838 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
5839 GOMP_loop_ull_ordered_dynamic_next,
5840 GOMP_loop_ull_ordered_dynamic_start,
5841 GOMP_loop_ull_ordered_guided_next,
5842 GOMP_loop_ull_ordered_guided_start,
5843 GOMP_loop_ull_ordered_runtime_next,
5844 GOMP_loop_ull_ordered_runtime_start,
5845 GOMP_loop_ull_ordered_static_next,
5846 GOMP_loop_ull_ordered_static_start,
5847 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
5848 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
5849 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
5850 (omp_set_schedule, omp_get_schedule,
5851 omp_get_thread_limit, omp_set_max_active_levels,
5852 omp_get_max_active_levels, omp_get_level,
5853 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
5854 omp_set_schedule_, omp_set_schedule_8_,
5855 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5856 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5857 omp_get_max_active_levels_, omp_get_level_,
5858 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5859 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5860 New exports @@OMP_3.0.
5861 * omp.h.in (omp_sched_t): New type.
5862 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5863 omp_set_max_active_levels, omp_get_max_active_levels,
5864 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5865 omp_get_active_level): New prototypes.
5866 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
5867 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
5868 gomp_thread_limit_var, gomp_remaining_threads_count,
5869 gomp_remaining_threads_lock): New variables.
5870 (parse_spincount): New function.
5871 (initialize_env): Call gomp_init_num_threads unconditionally.
5872 Initialize gomp_available_cpus. Call parse_spincount,
5873 initialize gomp_{,throttled_}spin_count_var
5874 depending on presence and value of OMP_WAIT_POLICY and
5875 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
5876 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
5877 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
5878 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
5879 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
5880 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5881 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5882 (gomp_global_icv): New.
5883 (parse_schedule): Use it. Parse "auto".
5884 (omp_set_num_threads): Use gomp_icv.
5885 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
5887 (omp_get_max_threads): Move from parallel.c.
5888 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5889 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
5891 (parse_stacksize, parse_wait_policy): New functions.
5892 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
5893 both wrappers for compatibility and new locks.
5894 (omp_set_schedule, omp_get_schedule,
5895 omp_get_thread_limit, omp_set_max_active_levels,
5896 omp_get_max_active_levels, omp_get_level,
5897 omp_get_ancestor_thread_num, omp_get_team_size,
5898 omp_get_active_level): New ialias_redirect.
5899 (omp_set_schedule_, omp_set_schedule_8_,
5900 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5901 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5902 omp_get_max_active_levels_, omp_get_level_,
5903 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5904 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5906 * parallel.c: Include limits.h.
5907 (gomp_resolve_num_threads): Add count argument. Rewritten.
5908 (GOMP_parallel_start): Call gomp_new_team and pass that as last
5909 argument to gomp_team_start. Pass 0 as second argument to
5910 gomp_resolve_num_threads.
5911 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
5912 if gomp_thread_limit_var != ULONG_MAX.
5913 (omp_in_parallel): Implement using ts.active_level.
5914 (omp_get_max_threads): Move to env.c.
5915 (omp_get_level, omp_get_ancestor_thread_num,
5916 omp_get_team_size, omp_get_active_level): New functions,
5918 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
5919 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
5920 gomp_iter_dynamic_next instead of the _locked variant and don't take
5921 lock around it, otherwise acquire it before calling
5922 gomp_iter_dynamic_next_locked.
5923 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
5924 gomp_iter_dynamic_next instead of the _locked variant and don't take
5926 (GOMP_parallel_sections_start): Call gomp_new_team instead of
5927 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
5928 Adjust gomp_team_start caller. Pass count as second argument to
5929 gomp_resolve_num_threads, don't adjust num_threads after the call.
5931 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
5932 ws->chunk_size by incr.
5933 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
5935 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
5937 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
5938 (omp_check_defines): Check even the compat defines.
5939 * config/linux/ptrlock.c: New file.
5940 * config/linux/ptrlock.h: New file.
5941 * config/linux/wait.h: New file.
5942 * config/posix/ptrlock.c: New file.
5943 * config/posix/ptrlock.h: New file.
5944 * config/linux/bar.h (gomp_team_barrier_wait,
5945 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5946 (gomp_team_barrier_set_task_pending,
5947 gomp_team_barrier_clear_task_pending,
5948 gomp_team_barrier_set_waiting_for_tasks,
5949 gomp_team_barrier_waiting_for_tasks,
5950 gomp_team_barrier_done): New inlines.
5951 (gomp_barrier_t): Rewritten.
5952 (gomp_barrier_state_t): New typedef.
5953 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
5954 gomp_barrier_wait_start): Rewritten.
5955 (gomp_barrier_wait_end): Change second argument to
5956 gomp_barrier_state_t.
5957 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5959 * config/linux/bar.c: Include wait.h instead of libgomp.h and
5961 (gomp_barrier_wait_end): Rewritten.
5962 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5963 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
5964 * config/posix/bar.h (gomp_barrier_t): Add generation field.
5965 (gomp_barrier_state_t): New typedef.
5966 (gomp_team_barrier_wait,
5967 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5968 (gomp_barrier_wait_start): Or all but low 2 bits from generation
5969 into the return value. Return gomp_barrier_state_t.
5970 (gomp_team_barrier_set_task_pending,
5971 gomp_team_barrier_clear_task_pending,
5972 gomp_team_barrier_set_waiting_for_tasks,
5973 gomp_team_barrier_waiting_for_tasks,
5974 gomp_team_barrier_done): New inlines.
5975 (gomp_barrier_wait_end): Change second argument to
5976 gomp_barrier_state_t.
5977 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5979 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
5980 (gomp_barrier_wait_end): Change second argument to
5981 gomp_barrier_state_t.
5982 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5983 gomp_team_barrier_wake): New functions.
5984 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
5986 (gomp_futex_wake, gomp_futex_wait): New variables.
5987 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
5988 * config/linux/lock.c: Rewrite to make locks task owned,
5989 for backwards compatibility provide the old entrypoints
5990 if symbol versioning. Include wait.h instead of libgomp.h and
5992 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
5993 * config/posix95/lock.c: Rewrite to make locks task owned,
5994 for backwards compatibility provide the old entrypoints
5995 if symbol versioning.
5996 * config/posix/lock.c: Rewrite to make locks task owned,
5997 for backwards compatibility provide the old entrypoints
5998 if symbol versioning.
5999 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
6000 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
6001 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
6002 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6003 (sys_futex0): Return error code.
6004 (futex_wake, futex_wait): If ENOSYS was returned, clear
6005 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6006 (cpu_relax, atomic_write_barrier): New static inlines.
6007 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6008 (futex_wake, futex_wait): If ENOSYS was returned, clear
6009 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6010 (cpu_relax, atomic_write_barrier): New static inlines.
6011 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6012 (sys_futex0): Return error code.
6013 (futex_wake, futex_wait): If ENOSYS was returned, clear
6014 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6015 (cpu_relax, atomic_write_barrier): New static inlines.
6016 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6017 (sys_futex0): Return error code.
6018 (futex_wake, futex_wait): If ENOSYS was returned, clear
6019 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6020 (cpu_relax, atomic_write_barrier): New static inlines.
6021 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6022 (sys_futex0): Return error code.
6023 (futex_wake, futex_wait): If ENOSYS was returned, clear
6024 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6025 (cpu_relax, atomic_write_barrier): New static inlines.
6026 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6027 (sys_futex0): Return error code.
6028 (futex_wake, futex_wait): If ENOSYS was returned, clear
6029 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6030 (cpu_relax, atomic_write_barrier): New static inlines.
6031 * config/linux/sem.c: Include wait.h instead of libgomp.h and
6033 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
6034 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
6035 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
6037 (omp_nest_lock_t): Change owner into void *, add lock field.
6038 * config/posix95/omp-lock.h: Include semaphore.h.
6039 (omp_lock_25_t, omp_nest_lock_25_t): New types.
6040 (omp_lock_t): Use sem_t instead of mutex if semaphores
6042 (omp_nest_lock_t): Likewise. Change owner to void *.
6043 * config/posix/omp-lock.h: Include semaphore.h.
6044 (omp_lock_25_t, omp_nest_lock_25_t): New types.
6045 (omp_lock_t): Use sem_t instead of mutex if semaphores
6047 (omp_nest_lock_t): Likewise. Add owner field.
6049 2008-06-06 Jakub Jelinek <jakub@redhat.com>
6051 * testsuite/libgomp.c/collapse-1.c: New test.
6052 * testsuite/libgomp.c/collapse-2.c: New test.
6053 * testsuite/libgomp.c/collapse-3.c: New test.
6054 * testsuite/libgomp.c/icv-1.c: New test.
6055 * testsuite/libgomp.c/icv-2.c: New test.
6056 * testsuite/libgomp.c/lib-2.c: New test.
6057 * testsuite/libgomp.c/lock-1.c: New test.
6058 * testsuite/libgomp.c/lock-2.c: New test.
6059 * testsuite/libgomp.c/lock-3.c: New test.
6060 * testsuite/libgomp.c/loop-4.c: New test.
6061 * testsuite/libgomp.c/loop-5.c: New test.
6062 * testsuite/libgomp.c/loop-6.c: New test.
6063 * testsuite/libgomp.c/loop-7.c: New test.
6064 * testsuite/libgomp.c/loop-8.c: New test.
6065 * testsuite/libgomp.c/loop-9.c: New test.
6066 * testsuite/libgomp.c/nested-3.c: New test.
6067 * testsuite/libgomp.c/nestedfn-6.c: New test.
6068 * testsuite/libgomp.c/sort-1.c: New test.
6069 * testsuite/libgomp.c/task-1.c: New test.
6070 * testsuite/libgomp.c/task-2.c: New test.
6071 * testsuite/libgomp.c/task-3.c: New test.
6072 * testsuite/libgomp.c/task-4.c: New test.
6073 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
6074 to C++ testsuite default compiler options.
6075 * testsuite/libgomp.c++/collapse-1.C: New test.
6076 * testsuite/libgomp.c++/collapse-2.C: New test.
6077 * testsuite/libgomp.c++/ctor-10.C: New test.
6078 * testsuite/libgomp.c++/for-1.C: New test.
6079 * testsuite/libgomp.c++/for-2.C: New test.
6080 * testsuite/libgomp.c++/for-3.C: New test.
6081 * testsuite/libgomp.c++/for-4.C: New test.
6082 * testsuite/libgomp.c++/for-5.C: New test.
6083 * testsuite/libgomp.c++/loop-8.C: New test.
6084 * testsuite/libgomp.c++/loop-9.C: New test.
6085 * testsuite/libgomp.c++/loop-10.C: New test.
6086 * testsuite/libgomp.c++/task-1.C: New test.
6087 * testsuite/libgomp.c++/task-2.C: New test.
6088 * testsuite/libgomp.c++/task-3.C: New test.
6089 * testsuite/libgomp.c++/task-4.C: New test.
6090 * testsuite/libgomp.c++/task-5.C: New test.
6091 * testsuite/libgomp.c++/task-6.C: New test.
6092 * testsuite/libgomp.fortran/allocatable1.f90: New test.
6093 * testsuite/libgomp.fortran/allocatable2.f90: New test.
6094 * testsuite/libgomp.fortran/allocatable3.f90: New test.
6095 * testsuite/libgomp.fortran/allocatable4.f90: New test.
6096 * testsuite/libgomp.fortran/collapse1.f90: New test.
6097 * testsuite/libgomp.fortran/collapse2.f90: New test.
6098 * testsuite/libgomp.fortran/collapse3.f90: New test.
6099 * testsuite/libgomp.fortran/collapse4.f90: New test.
6100 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
6101 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
6102 * testsuite/libgomp.fortran/lib4.f90: New test.
6103 * testsuite/libgomp.fortran/lock-1.f90: New test.
6104 * testsuite/libgomp.fortran/lock-2.f90: New test.
6105 * testsuite/libgomp.fortran/nested1.f90: New test.
6106 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
6107 * testsuite/libgomp.fortran/strassen.f90: New test.
6108 * testsuite/libgomp.fortran/tabs1.f90: New test.
6109 * testsuite/libgomp.fortran/tabs2.f: New test.
6110 * testsuite/libgomp.fortran/task1.f90: New test.
6111 * testsuite/libgomp.fortran/task2.f90: New test.
6112 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
6113 * testsuite/libgomp.fortran/vla5.f90: Likewise.
6114 * testsuite/libgomp.c/pr26943-2.c: Likewise.
6115 * testsuite/libgomp.c/pr26943-3.c: Likewise.
6116 * testsuite/libgomp.c/pr26943-4.c: Likewise.
6118 2008-05-23 Jakub Jelinek <jakub@redhat.com>
6121 * testsuite/libgomp.c++/ctor-11.C: New test.
6122 * testsuite/libgomp.c++/ctor-12.C: New test.
6124 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6126 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
6128 2008-05-07 Jakub Jelinek <jakub@redhat.com>
6131 * testsuite/libgomp.c/atomic-5.c: New test.
6132 * testsuite/libgomp.c/atomic-6.c: New test.
6133 * testsuite/libgomp.c/autopar-1.c: New test.
6135 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6137 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
6138 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
6139 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
6140 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
6141 * configure: Regenerate.
6142 * Makefile.in, testsuite/Makefile.in: Likewise.
6144 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
6147 * aclocal.m4: Regenerate.
6148 * configure: Regenerate.
6150 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6153 * testsuite/libgomp.c/atomic-4.c: New test.
6156 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
6157 (gomp_iter_guided_next): Likewise.
6158 * testsuite/libgomp.c/pr35625.c: New test.
6160 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6162 * aclocal.m4: Regenerate.
6163 * configure: Likewise.
6164 * Makefile.in: Likewise.
6165 * testsuite/Makefile.in: Likewise.
6167 2008-03-13 Jakub Jelinek <jakub@redhat.com>
6170 * testsuite/libgomp.c++/pr35185.C: New test.
6172 2008-03-12 Jakub Jelinek <jakub@redhat.com>
6175 * testsuite/libgomp.c/pr35549.c: New test.
6177 2008-03-06 Jakub Jelinek <jakub@redhat.com>
6179 * testsuite/libgomp.c/atomic-3.c: New test.
6181 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6184 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
6187 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
6190 * configure.ac: Add ACX_HEADER_STRING.
6191 * env.c: Include strings.h.
6192 * aclocal.m4: Regenerate.
6193 * config.h.in: Regenerate.
6194 * configure: Regenerate.
6195 * Makefile.in: Regenerate.
6196 * testsuite/Makefile.in: Regenerate.
6198 2008-02-15 Jakub Jelinek <jakub@redhat.com>
6201 * testsuite/libgomp.c/pr35196.c: New test.
6204 * testsuite/libgomp.fortran/pr35130.f90: New test.
6205 * testsuite/libgomp.c/pr35130.c: New test.
6207 2008-01-25 Jakub Jelinek <jakub@redhat.com>
6210 * testsuite/libgomp.c/pr33880.c: New test.
6211 * testsuite/libgomp.fortran/pr33880.f90: New test.
6213 2008-01-24 David Edelsohn <edelsohn@gnu.org>
6215 * configure: Regenerate.
6217 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6219 * configure.ac: Move futex checking into ../config/futex.m4.
6220 * configure: Rebuilt.
6221 * aclocal.m4: Rebuilt.
6222 * Makefile.in: Rebuilt.
6224 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
6225 2007-10-15 ../config/tls.m4 change.
6227 2007-12-19 Jakub Jelinek <jakub@redhat.com>
6230 * testsuite/libgomp.c/pr34513.c: New test.
6231 * testsuite/libgomp.c++/pr34513.C: New test.
6233 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
6236 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
6238 2007-12-04 Jakub Jelinek <jakub@redhat.com>
6240 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
6242 2007-12-03 Jakub Jelinek <jakub@redhat.com>
6244 * testsuite/libgomp.c/private-1.c: New test.
6246 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
6247 Paolo Bonzini <bonzini@gnu.org>
6249 * Makefile.am: Use space as vpath separator. Use 'vpath %'
6250 instead of 'VPATH ='.
6251 * Makefile.in: Regenerate.
6253 2007-11-23 Matthias Klose <doko@ubuntu.com>
6255 * configure.ac: Adjust makeinfo version check.
6256 * configure: Regenerate.
6258 2007-11-10 Jakub Jelinek <jakub@redhat.com>
6261 * testsuite/libgomp.fortran/pr34020.f90: New test.
6263 2007-11-06 Jakub Jelinek <jakub@redhat.com>
6266 * testsuite/libgomp.c++/atomic-1.C: New test.
6268 2007-10-25 Jakub Jelinek <jakub@redhat.com>
6271 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
6272 Make x and y integers rather than (implicit) reals. Add private (j)
6273 clause to the last omp parallel.
6275 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
6277 * configure: Regenerate following changes to ../config/tls.m4.
6279 2007-09-28 Jakub Jelinek <jakub@redhat.com>
6281 * testsuite/libgomp.fortran/stack.f90: New test.
6283 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
6285 * config/mingw32/proc.c: New file.
6287 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
6289 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
6290 (main): Use __get_cpuid to get i386 target fetaures.
6291 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
6292 (main): Use __get_cpuid to get x86_64 target fetaures.
6294 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
6297 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
6298 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
6300 2007-07-12 Jakub Jelinek <jakub@redhat.com>
6303 * testsuite/libgomp.fortran/pr32550.f90: New test.
6304 * testsuite/libgomp.fortran/crayptr2.f90: New test.
6306 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
6308 * aclocal.m4: Regenerated.
6310 2007-07-05 Tobias Burnus <burnus@net-b.de>
6313 * testsuite/libgomp.fortran/pr32359.f90: New.
6315 2007-07-02 Jakub Jelinek <jakub@redhat.com>
6318 * sections.c (GOMP_parallel_sections_start): Only decrease
6319 number of threads to COUNT if dyn_var is true.
6320 * testsuite/libgomp.c/pr32468.c: New test.
6322 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6325 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
6327 2007-06-21 Jakub Jelinek <jakub@redhat.com>
6330 * testsuite/libgomp.c/pr32362-1.c: New test.
6331 * testsuite/libgomp.c/pr32362-2.c: New test.
6332 * testsuite/libgomp.c/pr32362-3.c: New test.
6334 2007-06-07 Jakub Jelinek <jakub@redhat.com>
6336 * team.c (gomp_team_start): Fix setting up thread_attr
6339 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
6341 * configure: Regenerate.
6343 2007-05-23 Steve Ellcey <sje@cup.hp.com>
6345 * Makefile.in: Regenerate.
6346 * configure: Regenerate.
6347 * aclocal.m4: Regenerate.
6348 * testsuite/Makefile.in: Regenerate.
6350 2007-05-04 Jakub Jelinek <jakub@redhat.com>
6352 * config/linux/proc.c: New file.
6355 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
6357 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
6359 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
6361 2007-04-16 Matthias Klose <doko@debian.org>
6363 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
6364 flags if not building with -m64.
6365 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
6366 flag for i?86-*-* targets, if current target matches -m64.
6368 2007-04-14 Steve Ellcey <sje@cup.hp.com>
6370 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
6371 * Makefile.in: Regenerate.
6373 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6376 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
6378 * testsuite/libgomp.fortran/fortran.exp: Likewise.
6380 2007-04-04 Jakub Jelinek <jakub@redhat.com>
6382 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
6384 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
6385 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
6386 (parse_affinity): New function.
6387 (initialize_env): Call it and gomp_init_affinity.
6388 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
6389 create new pthread_attr_t and call gomp_init_thread_affinity
6390 on it for each thread before passing the attribute to pthread_create.
6391 * config/linux/affinity.c: New file.
6392 * config/posix/affinity.c: New file.
6393 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
6394 * configure: Rebuilt.
6395 * config.h.in: Rebuilt.
6396 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
6397 * Makefile.in: Rebuilt.
6399 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
6401 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
6403 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
6404 and use it if found.
6406 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
6408 * testsuite/config/default.exp: New file.
6409 * testsuite/lib/libgomp.exp: New file.
6410 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
6411 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
6412 load_lib *, load_gcc_lib *): Move to libgomp.exp.
6413 (libgomp_load): Remove.
6414 * testsuite/lib/libgomp.exp (libgomp_init): Compute
6415 always_ld_library_path, not ld_library_path. Set additional_flags
6416 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
6417 (target_compile): Do not call libgomp_init. Append lang_library_path
6418 and lang_link_flags to options.
6419 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
6420 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
6422 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
6423 always_ld_library_path. Set LD_LIBRARY_PATH here.
6424 * testsuite/libgomp.fortran/fortran.exp: Ditto.
6425 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
6426 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
6428 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
6429 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
6430 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
6431 * testsuite/libgomp.c/pr29947-1.c: Ditto.
6432 * testsuite/libgomp.c/atomic-10.c: Ditto.
6434 2007-03-21 Jakub Jelinek <jakub@redhat.com>
6436 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
6437 dg-final cleanup-modules line.
6438 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
6439 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
6440 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
6441 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
6442 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
6443 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
6444 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
6446 2007-03-18 Andreas Schwab <schwab@suse.de>
6448 * acinclude.m4: Adjust regular expression for ld version
6450 * configure: Regenerate.
6452 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
6454 * Makefile.am: Add install-pdf target as copied from
6455 automake v1.10 rules.
6456 * Makefile.in: Regenerate
6458 2007-02-07 Jakub Jelinek <jakub@redhat.com>
6461 * configure: Regenerate.
6464 * testsuite/libgomp.c++/pr30703.C: New test.
6466 2007-02-02 Jakub Jelinek <jakub@redhat.com>
6469 2006-07-05 Eric Christopher <echristo@apple.com>
6470 * configure.ac: Depend addition of -pthread on host OS.
6471 * configure: Regenerate.
6473 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6475 * libgomp.texi: Fix spacing after abbreviations.
6477 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
6480 * configure.ac: Add check for makeinfo
6481 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
6482 if an appropiate version of makeinfo is found.
6483 * aclocal.m4: Regenerated.
6484 * configure: Regenerated.
6485 * Makefile.in: Regenerated.
6486 * testsuite/Makefile.in: Regenerated.
6488 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
6491 * libgomp.texi: More about implementation-dependent settings.
6493 2007-01-26 Tobias Burnus <burnus@net-b.de>
6495 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
6497 2007-01-24 Jakub Jelinek <jakub@redhat.com>
6500 * testsuite/libgomp.c/pr30494.c: New test.
6502 2007-01-15 Tom Tromey <tromey@redhat.com>
6504 * configure: Rebuilt.
6505 * configure.ac: Fixed comment.
6507 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
6509 * libgomp.texi: Document implementation specific default values of
6510 environment variables.
6512 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
6515 * libgomp.texi: New file.
6516 * configure.ac: Add --enable-generated-files-in-srcdir option.
6517 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
6519 * Makefile.in: Regenerated.
6520 * config.h.in: Regenerated.
6521 * testsuite/Makefile.in: Regenerated.
6524 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
6527 * env.c (omp_set_num_threads): Set illegal thread count to 1.
6529 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6531 * configure: Regenerate.
6533 2006-12-04 Jakub Jelinek <jakub@redhat.com>
6536 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
6537 start if there shouldn't be any loop iterations.
6538 (gomp_loop_ordered_static_start): Remove start == end test.
6539 * testsuite/libgomp.c/pr29947-1.c: New test.
6540 * testsuite/libgomp.c/pr29947-2.c: New test.
6542 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
6544 * configure.tgt: Force initial-exec TLS model on Linux only.
6546 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
6548 * configure: Regenerated.
6550 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
6552 * env.c (parse_schedule): Reject out of range values.
6553 (parse_unsigned_long): Reject out of range, negative or zero values.
6555 2006-10-29 Jakub Jelinek <jakub@redhat.com>
6558 * testsuite/libgomp.fortran/pr29629.f90: New test.
6560 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
6563 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
6564 * config/posix95: New directory.
6565 * config/posix95/omp-lock.h: New file.
6566 * config/posix95/lock.c: Likewise.
6568 2006-10-14 Geoffrey Keating <geoffk@apple.com>
6570 * aclocal.m4: Regenerate.
6571 * configure: Regenerate.
6573 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6575 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
6578 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6580 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
6582 * configure: Regenerate.
6583 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
6585 2006-09-26 Jakub Jelinek <jakub@redhat.com>
6589 * testsuite/libgomp.c/nestedfn-4.c: New test.
6590 * testsuite/libgomp.c/nestedfn-5.c: New test.
6591 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
6594 * testsuite/libgomp.fortran/condinc1.f: New test.
6595 * testsuite/libgomp.fortran/condinc2.f: New test.
6596 * testsuite/libgomp.fortran/condinc3.f90: New test.
6597 * testsuite/libgomp.fortran/condinc4.f90: New test.
6598 * testsuite/libgomp.fortran/condinc1.inc: New file.
6600 2006-09-18 Tom Tromey <tromey@redhat.com>
6602 * configure: Rebuilt.
6604 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
6607 PR preprocessor/14634
6608 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
6610 * configure: Regenerate.
6612 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
6614 * testsuite/libgomp.fortran/reduction3.f90: Change
6615 -2147483648 to -huge(i)-1 to avoid overflow.
6616 * testsuite/libgomp.fortran/reduction4.f90: Change
6617 Z'ffffffff' to not(0) to avoid overflow.
6619 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
6622 * Makefile.am (libsubincludedir): New.
6623 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
6624 * Makefile.in: Regenerate.
6626 2006-08-17 Jakub Jelinek <jakub@redhat.com>
6629 * env.c: Include ctype.h.
6630 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
6631 leading and/or trailing whitespace and compare strings case
6634 2006-07-16 Jakub Jelinek <jakub@redhat.com>
6637 * testsuite/libgomp.fortran/pr28390.f: New test.
6639 2006-07-05 Eric Christopher <echristo@apple.com>
6641 * configure.ac: Depend addition of -pthread on host OS.
6642 * configure: Regenerate.
6644 2006-06-21 Jakub Jelinek <jakub@redhat.com>
6646 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
6647 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
6650 2006-06-20 Jakub Jelinek <jakub@redhat.com>
6654 * configure.ac: If neither --enable-linux-futex nor
6655 --disable-linux-futex is passed, determine the default by checking
6656 for compiling and/or running against NPTL. With --enable-linux-futex,
6657 check if SYS_gettid and SYS_futex are defined.
6658 * configure: Rebuilt.
6660 2006-06-14 Richard Henderson <rth@redhat.com>
6663 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
6664 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
6666 2006-06-09 Richard Henderson <rth@redhat.com>
6668 * env.c (gomp_nthreads_var): Change to unsigned long.
6669 (gomp_run_sched_chunk): Likewise.
6670 (parse_unsigned_long): Rename from parse_num_threads and generalize.
6671 (initialize_env): Initialize gomp_thread_attr.
6672 * libgomp.h (gomp_nthreads_var): Update decl.
6673 (gomp_run_sched_chunk): Likewise.
6674 (gomp_thread_attr): Declare.
6675 * team.c (gomp_thread_attr): Export.
6676 (initialize_team): Don't initialize it.
6678 2006-06-09 Jakub Jelinek <jakub@redhat.com>
6681 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
6682 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
6684 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6686 * config/mingw32/time.c: New file.
6687 * configure.tgt: Use it.
6689 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
6691 * Makefile.am: Add install-html target. Add install-html to .PHONY
6692 * Makefile.in: Regenerate.
6694 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6697 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
6698 * testsuite/libgomp.c/critical-1.c: Likewise.
6699 * testsuite/libgomp.c/loop-1.c: Likewise.
6700 * testsuite/libgomp.c/loop-2.c: Likewise.
6701 * testsuite/libgomp.c/single-1.c: Likewise.
6702 * testsuite/libgomp.c/ordered-1.c: Likewise.
6703 * testsuite/libgomp.c/ordered-2.c: Likewise.
6705 2006-05-15 Jakub Jelinek <jakub@redhat.com>
6708 * libgomp.fortran/pr27416-1.f90: New test.
6710 2006-05-03 Jakub Jelinek <jakub@redhat.com>
6713 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
6714 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
6716 2006-05-02 Jakub Jelinek <jakub@redhat.com>
6719 * testsuite/libgomp.c/pr26943-1.c: New test.
6720 * testsuite/libgomp.c/pr26943-2.c: New test.
6721 * testsuite/libgomp.c/pr26943-3.c: New test.
6722 * testsuite/libgomp.c/pr26943-4.c: New test.
6723 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
6724 * testsuite/libgomp.c++/pr26943.C: New test.
6726 2006-05-02 Jakub Jelinek <jakub@redhat.com>
6729 * testsuite/libgomp.c++/pr27337.C: New test.
6731 2006-04-26 Jakub Jelinek <jakub@redhat.com>
6734 * testsuite/libgomp.c/pr26171.c: New test.
6736 2006-04-25 Richard Henderson <rth@redhat.com>
6739 * configure.ac: Use GCC_CHECK_TLS.
6740 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
6741 * Makefile.in, aclocal.m4, configure: Regenerate.
6743 2006-04-10 Matthias Klose <doko@debian.org>
6745 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
6746 directory names containing underscores.
6748 2006-03-21 Jakub Jelinek <jakub@redhat.com>
6751 * testsuite/libgomp.c++/pr26691.C: New test.
6753 2006-03-13 Jakub Jelinek <jakub@redhat.com>
6755 * testsuite/libgomp.fortran/retval2.f90: New test.
6757 2006-03-09 Diego Novillo <dnovillo@redhat.com>
6759 * testsuite/libgomp.c++: New directory.
6761 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
6763 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
6764 * config/posix/sem.c: Implement the above.
6766 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
6768 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
6769 define HAVE_BROKEN_POSIX_SEMAPHORES.
6770 * configure: Rebuilt.
6771 * config.h.in: Rebuilt.
6773 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6776 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
6777 for the other pthread check.
6778 * configure: Regenerate.
6779 * config.h.in: Regenerate.
6781 2006-02-15 Jakub Jelinek <jakub@redhat.com>
6785 * Makefile.am (fincludedir): New variable.
6786 (nodist_include_HEADERS): Remove Fortran files.
6787 (nodist_finclude_HEADERS): New variable.
6788 * Makefile.in: Regenerated.
6790 2006-02-13 Jakub Jelinek <jakub@redhat.com>
6792 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
6793 Remove tests for returning assumed character length arrays.
6795 2006-02-12 Roger Sayle <roger@eyesopen.com>
6796 John David Anglin <dave@hiauly1.hia.nrc.ca>
6799 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
6801 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6803 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
6805 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6807 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
6808 part of LD_LIBRARY_PATH manually.
6810 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
6813 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
6816 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
6819 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
6820 * configure.ac (PERL): Don't set.
6821 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
6822 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
6823 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
6824 * omp.h.in: Wrap the new configure substitutions with @ characters.
6825 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
6826 * aclocal.m4, configure, Makefile.in: Regenerate.
6827 * mkomp_h.pl: Delete.
6829 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
6832 * configure.ac: Use GCC_HEADER_STDINT.
6833 * libgomp.h: Include gstdint.h.
6834 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
6835 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
6837 2006-01-24 Richard Henderson <rth@redhat.com>
6840 * configure.ac: Add AM_MAINTAINER_MODE.
6841 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
6843 2006-01-24 Diego Novillo <dnovillo@redhat.com>
6845 * Makefile.in: Regenerate.
6846 * testsuite/Makefile.in: Regenerate.
6847 * aclocal.m4: Regenerate.
6849 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
6851 * config/posix/proc.c: Conditional include of sys/loadavg.h for
6853 * configure.ac: Add check for loadavg.h.
6854 (link_gomp): Adjust comment.
6855 * configure: Regenerate.
6856 * config.h.in: Regenerate.
6858 2006-01-21 Steve Ellcey <sje@cup.hp.com>
6861 * configure.ac: Remove check for alloca.h.
6862 * configure: Regenerate.
6863 * config.h.in: Regenerate.
6864 * libgomp.h: define gomp_alloca to be __builtin_alloca.
6865 * team.c: Remove use of alloca.h.
6866 Call gomp_alloca instead of alloca.
6868 2006-01-20 Steve Ellcey <sje@cup.hp.com>
6871 * team.c: Add include of alloca.h.
6872 * configure.ac: Add check for alloca.h.
6873 * configure: Regenerate.
6874 * config.h.in: Regenerate.
6876 2006-01-17 Jakub Jelinek <jakub@redhat.com>
6879 * testsuite/libgomp.fortran/pr25219.f90: New test.
6881 2005-12-05 Uros Bizjak <uros@kss-loka.si>
6883 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
6884 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
6885 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
6886 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
6887 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
6888 testsuite/libgomp.fortran/threadprivate1.f90,
6889 testsuite/libgomp.fortran/threadprivate2.f90,
6890 testsuite/libgomp.fortran/threadprivate3.f90,
6891 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6892 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6893 testsuite/libgomp.fortran/omp_parse3.f90: Change required
6894 effective-target to TLS runtime.
6896 * testsuite/libgomp.fortran/pr25162.f: Require
6897 effective-target TLS runtime.
6899 2005-12-01 Jakub Jelinek <jakub@redhat.com>
6901 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
6902 * testsuite/libgomp.c/nestedfn-3.c: New test.
6904 2005-11-30 Jakub Jelinek <jakub@redhat.com>
6907 * testsuite/libgomp.fortran/pr25162.f: New test.
6909 2005-11-28 Jakub Jelinek <jakub@redhat.com>
6911 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
6912 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
6914 2005-11-25 Jakub Jelinek <jakub@redhat.com>
6916 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
6917 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
6918 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
6919 single.c, team.c, work.c, config/linux/alpha/futex.h,
6920 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
6921 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
6922 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
6923 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
6924 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
6925 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
6926 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
6929 2005-11-18 Jakub Jelinek <jakub@redhat.com>
6931 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
6932 to nodist_noinst_HEADERS.
6933 * Makefile.in: Rebuilt.
6935 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
6936 add integer count field.
6937 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
6938 omp_nest_lock_t type change.
6939 (omp_init_nest_lock): Likewise. Initialize count to 0.
6940 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
6942 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
6944 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
6945 Increment count if successful and return the new nesting level.
6946 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
6947 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
6948 * testsuite/libgomp.c/lib-1.c: New test.
6949 * testsuite/libgomp.fortran/lib1.f90: New test.
6950 * testsuite/libgomp.fortran/lib2.f: New test.
6951 * testsuite/libgomp.fortran/lib3.f: New test.
6953 2005-11-17 Richard Henderson <rth@redhat.com>
6956 * Makefile.am (nodist_toolexeclib_HEADERS): New.
6957 * configure.ac (link_gomp): New. Substitute it.
6958 (AC_CONFIG_FILES): Add libgomp.spec.
6959 * libgomp.spec.in: New file.
6960 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
6961 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
6963 2005-11-18 Jakub Jelinek <jakub@redhat.com>
6965 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
6966 reduction(-:var) behaving the same as reduction(+:var).
6967 * testsuite/libgomp.c/reduction-4.c: New test.
6969 2005-11-15 Uros Bizjak <uros@kss-loka.si>
6971 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
6972 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
6973 testsuite/libgomp.c/copyin-3.c,
6974 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
6975 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
6976 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
6977 testsuite/libgomp.c++/pr24455.C,
6978 testsuite/libgomp.fortran/threadprivate1.f90,
6979 testsuite/libgomp.fortran/threadprivate2.f90,
6980 testsuite/libgomp.fortran/threadprivate3.f90,
6981 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6982 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6983 testsuite/libgomp.fortran/omp_parse3.f90: Require
6984 effective-target TLS.
6986 2005-11-14 Diego Novillo <dnovillo@redhat.com>
6990 2005-11-13 Jakub Jelinek <jakub@redhat.com>
6993 * team.c (initialize_team): Pass NULL rather than free as
6994 pthread_key_create destructor. Initialize thread specific data
6995 pointer in initial thread to a static local variable rather than
6998 2005-11-11 Uros Bizjak <uros@kss-loka.si>
7000 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
7001 its location to ld_library_path.
7003 2005-11-10 Diego Novillo <dnovillo@redhat.com>
7005 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
7007 2005-11-10 Diego Novillo <dnovillo@redhat.com>
7009 * testsuite/libgomp.c: Rename from libgomp.dg.
7011 2005-11-09 Diego Novillo <dnovillo@redhat.com>
7013 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
7014 threadprivate variable 'i'.
7016 2005-11-09 Jakub Jelinek <jakub@redhat.com>
7018 * config/linux/s390/futex.h: New file.
7019 * configure.tgt: Use it.
7021 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
7022 before the parallel.
7024 2005-11-08 Jakub Jelinek <jakub@redhat.com>
7027 * testsuite/libgomp.c++/master-1.C: New test.
7029 2005-11-07 Jakub Jelinek <jakub@redhat.com>
7031 * testsuite/libgomp.dg/copyin-3.c: New test.
7033 2005-11-07 Jakub Jelinek <jakub@redhat.com>
7035 * testsuite/libgomp.fortran/retval1.f90: New test.
7036 * testsuite/libgomp.fortran/vla7.f90: New test.
7038 2005-11-06 Jakub Jelinek <jakub@redhat.com>
7040 * testsuite/libgomp.fortran/vla2.f90: New test.
7041 * testsuite/libgomp.fortran/vla3.f90: New test.
7042 * testsuite/libgomp.fortran/vla4.f90: New test.
7043 * testsuite/libgomp.fortran/vla5.f90: New test.
7044 * testsuite/libgomp.fortran/vla6.f90: New test.
7046 2005-11-01 Jakub Jelinek <jakub@redhat.com>
7048 * config/linux/sparc/futex.h: New file.
7049 * configure.tgt: Use it.
7050 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
7052 * critical.c: Include stdlib.h.
7053 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
7054 ignoring return value.
7055 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
7056 LIBGOMP_CHECK_SYNC_BUILTINS check.
7057 * configure: Rebuilt.
7059 2005-10-31 Jakub Jelinek <jakub@redhat.com>
7061 * testsuite/libgomp.fortran/vla1.f90: New test.
7063 2005-10-31 Richard Henderson <rth@redhat.com>
7065 * testsuite/libgomp.fortran/character2.f90: Fix race condition
7066 setting 's' in different threads.
7068 2005-10-31 Jakub Jelinek <jakub@redhat.com>
7070 * libgomp.h (attribute_hidden, ialias): Define.
7071 * config/posix/proc.c (omp_get_num_procs): Add ialias.
7072 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
7073 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
7074 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
7075 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
7076 omp_test_lock, omp_test_nest_lock): Likewise.
7077 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
7078 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
7079 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
7080 omp_test_lock, omp_test_nest_lock): Likewise.
7081 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
7082 omp_get_dynamic, omp_get_nested): Likewise.
7083 * parallel.c (omp_get_num_threads, omp_get_max_threads,
7084 omp_get_thread_num, omp_in_parallel): Likewise.
7085 * fortran.c (ialias_redirect): Define.
7086 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
7087 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
7088 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
7089 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
7090 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
7091 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
7092 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
7093 omp_get_wtime): Add ialias_redirect.
7095 2005-10-30 Jakub Jelinek <jakub@redhat.com>
7097 * fortran.c: Include stdlib.h.
7099 2005-10-29 Jakub Jelinek <jakub@redhat.com>
7101 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
7102 * Makefile.in: Regenerated.
7104 2005-10-28 Jakub Jelinek <jakub@redhat.com>
7106 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
7107 * libgomp_f.h.in (omp_check_defines): New function.
7108 * env.c: Include libgomp_f.h.
7109 (initialize_env): Call omp_check_defines.
7111 * testsuite/libgomp.dg/copyin-2.c: New test.
7112 * testsuite/libgomp.c++/copyin-2.C: New test.
7113 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
7115 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
7116 * testsuite/libgomp.fortran/sharing2.f90: New test.
7118 * testsuite/libgomp.dg/copyin-1.c: New test.
7119 * testsuite/libgomp.c++/copyin-1.C: New test.
7121 2005-10-26 Jakub Jelinek <jakub@redhat.com>
7123 * testsuite/libgomp.fortran/crayptr1.f90: New test.
7125 * testsuite/libgomp.fortran/workshare1.f90: New test.
7127 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
7129 * libgomp.fortran/sharing1.f90: New test.
7131 2005-10-24 Jakub Jelinek <jakub@redhat.com>
7134 * testsuite/libgomp.c++/loop-7.C: New test.
7136 * testsuite/libgomp.dg/nestedfn-2.c: New test.
7138 * testsuite/libgomp.dg/nestedfn-1.c: New test.
7139 * testsuite/libgomp.fortran/reduction6.f90: New test.
7140 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
7142 2005-10-23 Richard Henderson <rth@redhat.com>
7144 * testsuite/libgomp.c++/ctor-1.C: New.
7145 * testsuite/libgomp.c++/ctor-2.C: New.
7146 * testsuite/libgomp.c++/ctor-3.C: New.
7147 * testsuite/libgomp.c++/ctor-4.C: New.
7148 * testsuite/libgomp.c++/ctor-5.C: New.
7149 * testsuite/libgomp.c++/ctor-6.C: New.
7150 * testsuite/libgomp.c++/ctor-7.C: New.
7151 * testsuite/libgomp.c++/ctor-8.C: New.
7152 * testsuite/libgomp.c++/ctor-9.C: New.
7154 2005-10-21 Diego Novillo <dnovillo@redhat.com>
7157 * testsuite/libgomp.c++/pr24455-1.C: New test.
7158 * testsuite/libgomp.c++/pr24455.C: New test.
7159 * testsuite/libgomp.dg/pr24455-1.c: New test.
7160 * testsuite/libgomp.dg/pr24455.c: New test.
7162 2005-10-20 Richard Henderson <rth@redhat.com>
7164 * testsuite/libgomp.c++/loop-6.C: New.
7165 * testsuite/libgomp.dg/loop-3.c: New.
7167 2005-10-20 Jakub Jelinek <jakub@redhat.com>
7169 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
7171 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
7174 2005-10-19 Diego Novillo <dnovillo@redhat.com>
7176 * testsuite/libgomp.fortran/jacobi.f: New test.
7178 2005-10-19 Richard Henderson <rth@redhat.com>
7180 * configure.tgt (i?86-linux): Default to with_arch instead of
7181 CFLAGS. Add -mtune to match target_cpu.
7182 (x86_64-linux): Tune to i686.
7184 * fortran.c (omp_test_nest_lock_): Fix typo.
7186 2005-10-19 Jakub Jelinek <jakub@redhat.com>
7188 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
7189 gomp_ordered_sync): Do nothing if team->nthreads == 1.
7190 * testsuite/libgomp.dg/ordered-3.c: New test.
7192 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
7193 Remove volatile keyword.
7195 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
7196 in COMMON block to avoid warnings on 64-bit targets.
7198 2005-10-18 Diego Novillo <dnovillo@redhat.com>
7200 * testsuite/libgomp.dg/shared-3.c: New test.
7202 2005-10-18 Jakub Jelinek <jakub@redhat.com>
7204 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
7205 * testsuite/libgomp.fortran/reduction5.f90: New test.
7207 2005-10-18 Jakub Jelinek <jakub@redhat.com>
7209 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
7211 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
7212 flush loop now that __sync_synchronize has proper memory barrier.
7213 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
7214 Add -ffixed-form to dg-options.
7216 2005-10-17 Diego Novillo <dnovillo@redhat.com>
7218 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
7219 from subdirectories.
7220 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
7221 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
7222 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
7223 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
7224 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
7225 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
7226 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
7227 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
7228 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
7229 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
7230 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
7231 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
7232 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
7233 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
7234 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
7235 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
7236 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
7237 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
7238 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
7239 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
7240 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
7241 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
7242 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
7243 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
7244 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
7246 2005-10-17 Jakub Jelinek <jakub@redhat.com>
7248 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
7249 lang_library_path exists. Use find instead of glob to gather tests.
7250 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
7252 2005-10-17 Diego Novillo <dnovillo@redhat.com>
7254 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
7255 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
7256 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
7257 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
7258 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
7259 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
7260 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
7261 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
7262 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
7263 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
7264 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
7265 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
7266 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
7268 2005-10-15 Jakub Jelinek <jakub@redhat.com>
7270 * testsuite/libgomp.dg/vla-1.c: New test.
7272 * testsuite/libgomp.fortran/reference2.f90: New test.
7274 * testsuite/libgomp.fortran/character2.f90: Remove explicit
7275 declaration of omp_get_thread_num.
7276 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
7279 * testsuite/libgomp.fortran/reduction1.f90: New test.
7280 * testsuite/libgomp.fortran/reduction2.f90: New test.
7281 * testsuite/libgomp.fortran/reduction3.f90: New test.
7282 * testsuite/libgomp.fortran/reduction4.f90: New test.
7284 2005-10-13 Richard Henderson <rth@redhat.com>
7286 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
7287 * Makefile.in: Regenerate.
7288 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
7289 * libgomp.h: Include bar.h.
7290 (struct gomp_barrier): Remove.
7291 (struct gomp_team): Add barrier. Replace master_barrier with
7292 master_release. Replace threads with ordered_release.
7293 (struct gomp_thread): Replace barrier with release.
7294 * ordered.c (gomp_ordered_first): Update for ordered_release change.
7295 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
7296 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
7297 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
7298 (GOMP_single_copy_end): Likewise.
7299 * team.c (gomp_threads_dock): New.
7300 (gomp_barrier_init, gomp_barrier_destroy): Remove.
7301 (gomp_thread_start): Use gomp_barrier_wait.
7302 (new_team, free_team): Update for gomp_team changes.
7303 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
7304 (gomp_team_end): Use gomp_barrier_wait.
7305 (initialize_team): Update for gomp_thread changes.
7306 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
7307 (gomp_work_share_end_nowait): Use atomic ops when available.
7308 * config/linux/bar.c, config/linux/bar.h: New files.
7309 * config/posix/bar.c, config/posix/bar.h: New files.
7311 2005-10-13 Jakub Jelinek <jakub@redhat.com>
7313 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
7314 * testsuite/libgomp.dg/single-2.c: New test.
7316 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
7317 lang_link_flags): Unset, so that they aren't inherited from previously
7320 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
7322 2005-10-12 Richard Henderson <rth@redhat.com>
7324 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
7325 (libgomp_init): Use lang_test_file, lang_library_path, and
7326 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
7328 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
7329 (lang_test_file, lang_link_flags): New.
7330 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
7332 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
7333 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
7334 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
7335 testsuite/libgomp.c++/parallel-1.C,
7336 testsuite/libgomp.c++/reduction-1.C,
7337 testsuite/libgomp.c++/reduction-2.C,
7338 testsuite/libgomp.c++/reduction-3.C,
7339 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
7340 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
7341 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
7342 New files, largely cribbed from the C testsuite.
7344 2005-10-12 Jakub Jelinek <jakub@redhat.com>
7346 * testsuite/libgomp.fortran/character1.f90: New test.
7347 * testsuite/libgomp.fortran/character2.f90: New test.
7349 * testsuite/libgomp.dg/nested-1.c: New test.
7350 * testsuite/libgomp.dg/nested-2.c: New test.
7351 * testsuite/libgomp.fortran/do1.f90: New test.
7352 * testsuite/libgomp.fortran/do2.f90: New test.
7354 * testsuite/libgomp.fortran/reference1.f90: New test.
7356 2005-10-11 Jakub Jelinek <jakub@redhat.com>
7358 * testsuite/libgomp.dg/reduction-1.c: New test.
7359 * testsuite/libgomp.dg/reduction-2.c: New test.
7360 * testsuite/libgomp.dg/reduction-3.c: New test.
7362 2005-10-10 Jakub Jelinek <jakub@redhat.com>
7364 * testsuite/libgomp.dg/atomic-1.c: New test.
7365 * testsuite/libgomp.dg/atomic-2.c: New test.
7367 2005-10-09 Richard Henderson <rth@redhat.com>
7369 * critical.c (atomic_lock): New.
7370 (initialize_critical): Initialize it.
7371 (GOMP_atomic_start, GOMP_atomic_end): New.
7372 * libgomp.map: Export them.
7373 * libgomp_g.h: Declare them.
7375 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
7377 2005-10-02 Richard Henderson <rth@redhat.com>
7379 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
7380 to XCFLAGS instead of CFLAGS.
7382 2005-09-30 Richard Henderson <rth@redhat.com>
7384 * configure.ac: Determine whether -pthread or -lpthread is needed.
7385 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
7386 * Makefine.in, configure: Rebuild.
7388 2005-09-28 Richard Henderson <rth@redhat.com>
7390 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
7391 * testsuite/libgomp.dg/omp-single-3.c: New test.
7393 2005-09-28 Diego Novillo <dnovillo@redhat.com>
7395 * testsuite/libgomp.dg/omp-single-2.c: New test.
7396 * testsuite/libgomp.dg/shared-2.c: Fix return code.
7398 2005-09-27 Richard Henderson <rth@redhat.com>
7400 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
7401 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
7403 2005-09-27 Jakub Jelinek <jakub@redhat.com>
7405 * testsuite/libgomp.dg/omp-loop03.c: New test.
7407 2005-09-27 Diego Novillo <dnovillo@redhat.com>
7409 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
7411 2005-09-27 Diego Novillo <dnovillo@redhat.com>
7413 * testsuite/libgomp.dg/omp-single-1.c: New test.
7414 * testsuite/libgomp.dg/shared-1.c: Return 0.
7415 Add prototype for abort.
7416 * testsuite/libgomp.dg/shared-2.c: Likewise.
7418 2005-09-26 Jakub Jelinek <jakub@redhat.com>
7420 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
7423 2005-09-26 Diego Novillo <dnovillo@redhat.com>
7425 * testsuite/libgomp.dg/shared-1.c: New test.
7426 * testsuite/libgomp.dg/shared-2.c: New test.
7428 2005-09-24 Richard Henderson <rth@redhat.com>
7430 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
7432 2005-09-24 Richard Henderson <rth@redhat.com>
7434 * iter.c (gomp_iter_static_next): Round up when computing number
7435 of iterations. Don't bother distributing a remainder equally.
7437 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
7438 Don't call srand. Zero b before testing.
7441 2005-09-24 Jakub Jelinek <jakub@redhat.com>
7443 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
7444 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
7446 2005-09-23 Jakub Jelinek <jakub@redhat.com>
7448 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
7449 without !$omp end do, followed immediately by subroutine end.
7451 2005-09-23 Diego Novillo <dnovillo@redhat.com>
7453 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
7455 2005-09-22 Richard Henderson <rth@redhat.com>
7457 * critical.c (GOMP_critical_name_start): Change argument to void**.
7458 Reuse the pointer space if the mutex fits.
7459 (GOMP_critical_name_end): Likewise.
7460 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
7461 * libgomp_g.h (GOMP_critical_name_start): Update decl.
7462 (GOMP_critical_name_end): Likewise.
7463 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
7464 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
7466 2005-09-20 Richard Henderson <rth@redhat.com>
7468 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
7469 (create_lock_lock): New.
7470 (initialize_critical): Initialize it.
7471 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
7472 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
7474 2005-09-20 Diego Novillo <dnovillo@redhat.com>
7476 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
7478 2005-09-20 Diego Novillo <dnovillo@redhat.com>
7480 * testsuite/libgomp.dg/omp-loop01.c: New test.
7481 * testsuite/libgomp.dg/omp-loop02.c: New test.
7483 2005-09-20 Jakub Jelinek <jakub@redhat.com>
7485 * configure.ac (AC_PROG_FC): Add.
7486 (USE_FORTRAN): New automake conditional.
7487 * configure: Rebuilt.
7488 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
7489 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
7490 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
7491 Add rules to build them.
7492 * Makefile.in: Rebuilt.
7493 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
7495 * libgomp.map: Add Fortran wrappers.
7496 * libgomp_f.h.in: New file.
7497 * omp_lib.h.in: New file.
7498 * omp_lib.f90.in: New file.
7499 * fortran.c: New file.
7500 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
7501 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
7502 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
7503 libgfortran has been built.
7504 * testsuite/libgomp.fortran/fortran.exp: New file.
7505 * testsuite/libgomp.fortran/omp_cond1.f: New test.
7506 * testsuite/libgomp.fortran/omp_cond2.f: New test.
7507 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
7508 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
7509 * testsuite/libgomp.fortran/omp_hello.f: New test.
7510 * testsuite/libgomp.fortran/omp_orphan.f: New test.
7511 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
7512 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
7513 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
7514 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
7515 * testsuite/libgomp.fortran/omp_reduction.f: New test.
7516 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
7517 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
7519 2005-08-30 Richard Henderson <rth@redhat.com>
7521 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
7522 function for when aliases are not usable.
7523 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
7524 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7525 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
7526 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
7527 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
7528 GOMP_loop_ordered_guided_next): Likewise.
7529 * ordered.c (GOMP_ordered_start): Likewise.
7531 2005-08-01 Diego Novillo <dnovillo@redhat.com>
7533 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
7534 * testsuite/libgomp.dg/omp_hello.c: Fix return code
7535 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
7536 * testsuite/libgomp.dg/omp_orphan.c: Likewise
7537 * testsuite/libgomp.dg/omp_reduction.c: Likewise
7538 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
7539 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
7540 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
7541 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
7543 2005-07-07 Eric Christopher <echristo@redhat.com>
7544 Diego Novillo <dnovillo@redhat.com>
7546 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
7547 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
7549 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
7550 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
7551 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
7552 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
7553 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
7554 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
7555 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
7557 2005-06-13 Diego Novillo <dnovillo@redhat.com>
7559 * TOPLEVEL.patch: Remove.
7561 2005-05-16 Richard Henderson <rth@redhat.com>
7563 * configure.ac: Test for clock_gettime.
7564 * config.h.in, configure: Rebuild.
7565 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
7566 (omp_get_wtime): Use clock_gettime if available.
7567 (omp_get_wtick): Use clock_getres if available.
7569 2005-05-11 Richard Henderson <rth@redhat.com>
7571 * config/linux/ia64/futex.h: New file.
7572 * configure.tgt: Use it.
7574 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
7576 2005-05-07 Richard Henderson <rth@redhat.com>
7578 * config/linux/powerpc/futex.h: New file.
7579 * configure.tgt: Use it.
7581 * config/linux/i486/futex.h: Merge ...
7582 * config/linux/x86_64/futex.h: ... into ...
7583 * config/linux/x86/futex.h: ... here.
7584 * configure.tgt: Update to match.
7586 2005-05-06 Richard Henderson <rth@redhat.com>
7588 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
7589 * config/linux/i486/futex.h: Likewise.
7590 * config/linux/x86_64/futex.h: Likewise.
7592 * config/linux/lock.c: New file.
7593 * config/linux/omp-lock.h: New file.
7595 * critical.c, env.h: Don't include omp.h
7596 * config/posix/lock.c: Include libgomp.h instead of omp.h.
7597 * config/posix/time.c: Likewise.
7598 * config/posix/omp-lock.h: New file.
7599 * libgomp.h: Include omp-lock.h and omp.h.
7600 * Makefile.am (nodist_include_HEADERS): New.
7602 * configure.ac (PERL): New.
7603 * mkomp_h.pl: New file.
7604 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
7606 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
7608 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
7609 build directory. Re-add -march=i486 hack.
7611 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
7612 (libgomp_link_flags): Remove.
7613 (libgomp_initialized): Remove.
7614 (libgomp_init): Don't protect from reinitialization. Copy code
7615 from libstdc++ for getting the multilib set correctly.
7617 2005-05-05 Richard Henderson <rth@redhat.com>
7619 * config/linux/alpha/futex.h: New file.
7620 * configure.tgt (alpha*-*-linux*): Use it.
7622 * config/posix/mutex.c: New file.
7623 * config/posix/sem.c: Use libgomp.h.
7625 * configure.tgt (x86_64-linux): Also test CC for -m32.
7626 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
7628 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
7631 * Makefile.am (SUBDIRS): New.
7632 (libgomp_la_LDFLAGS): Add -lpthread.
7633 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
7634 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
7636 * libgomp_g.h: New file.
7637 * libgomp.h: Split out all public declarations to libgomp_g.h.
7638 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
7639 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
7640 * config/linux/sem.h: Likewise.
7641 * config/posix/sem.h: Likewise.
7643 * Makefile.am (AM_LDFLAGS): New.
7644 (libgomp_version_script): Split out from ...
7645 (libgomp_la_LDFLAGS): ... here.
7646 (libgomp_version_info): New.
7647 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
7648 (LIBGOMP_ENABLE): New.
7649 (LIBGOMP_CHECK_LINKER_FEATURES): New.
7650 (LIBGOMP_ENABLE_SYMVERS): New.
7651 * configure.ac (AC_INIT): Version 1.0.
7652 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
7653 (enable-linux-futex): Likewise. Rename from enable-futex.
7654 (libtool_VERSION): New.
7655 (LIBGOMP_ENABLE_SYMVERS): Use it.
7656 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
7657 * Makefile.in, aclocal.m4, configure: Rebuild.
7659 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
7660 (gomp_mutex_unlock_slow): Fix typo.
7661 * config/linux/sem.c: Similarly.
7662 (gomp_sem_post_slow): Fix typo.
7663 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
7664 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
7665 [__PIC__] (sys_futex0): Don't use tmp output in asm.
7667 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
7668 (libgomp_la_LDFLAGS): Add top_srcdir to path.
7669 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
7670 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
7671 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
7672 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
7673 LDFLAGS. Pull enable_futex check to top-level.
7674 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
7675 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
7677 First attempt at real configury.
7678 * Makefile, config.h: Remove file.
7679 * Makefile.am, Makefile.in: New file.
7680 * acinclude.m4 aclocal.m4: New file.
7681 * configure.ac, configure.tgt, configure: New file.
7683 * config/posix/lock.c: Rename from sys-lock.c.
7684 * config/posix/mutex.h: Rename from sys-mutex.h.
7685 * config/posix/sem.c: Rename from sys-sem.c.
7686 * config/posix/sem.h: Rename from sys-sem.h.
7687 * config/posix/proc.c: Rename from sys-proc.c.
7688 * config/posix/time.c: Rename from sys-proc.c.
7690 * config/linux/mutex.c: New file.
7691 * config/linux/mutex.h: New file.
7692 * config/linux/sem.c: New file.
7693 * config/linux/sem.h: New file.
7694 * config/linux/i486/futex.h: New file.
7695 * config/linux/x86_64/futex.h: New file.
7697 2005-05-04 Richard Henderson <rth@redhat.com>
7699 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
7700 * libgomp.h: Declare them.
7701 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
7702 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
7704 2005-05-04 Richard Henderson <rth@redhat.com>
7706 * libgomp-1 code drop
7708 2005-05-04 Richard Henderson <rth@redhat.com>
7710 * iter.c (gomp_iter_static_next): Return tri-state on 0.
7711 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
7712 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
7713 (gomp_iter_static_next): Update.
7714 (gomp_ordered_static_next): Update.
7715 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
7716 (gomp_loop_ordered_static_start): Likewise. Exit early for a
7717 totally empty range.
7718 (gomp_loop_ordered_static_next): Refine test for calling
7719 gomp_ordered_static_next.
7720 * testsuite/ordered-1.c: Add case for more threads than iterations.
7722 * iter.c (gomp_iter_runtime_next_locked): Remove.
7723 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
7724 gomp_loop_guided_start, gomp_loop_ordered_static_start,
7725 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7726 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
7727 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
7728 gomp_loop_ordered_guided_next): Downcase name, make static, add
7729 an external alias with the old name.
7730 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7731 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
7732 switch and call one of the above static functions.
7733 * libgomp.h: Update.
7735 * work.c (gomp_work_share_start): Lock the mutex for !first too.
7736 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
7737 GOMP_loop_guided_start, GOMP_loop_runtime_start,
7738 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7739 GOMP_loop_ordered_guided_start): Update to match.
7740 * sections.c (GOMP_sections_start): Likewise.
7741 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
7743 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
7744 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
7745 Use bounds check instead of modulus.
7746 (gomp_ordered_sync): Split out of GOMP_ordered_start.
7747 (gomp_ordered_last): Don't sync with ordered_owner here.
7748 (gomp_ordered_next): Likewise.
7749 (gomp_ordered_static_loop_next): Likewise.
7750 * loop.c, libgomp.h: Update to match.
7752 * libgomp.h (GOMP_barrier): Declare.
7754 * testsuite/barrier-1.c: New file.
7755 * testsuite/critical-1.c: New file.
7756 * testsuite/ordered-2.c: New file.
7757 * testsuite/ordered-1.c: New file.
7758 * testsuite/sections-1.c: New file.
7759 * testsuite/single-1.c: New file.
7760 * testsuite/Makefile (TESTS): Add them.
7762 2005-05-04 Richard Henderson <rth@redhat.com>
7764 * libgomp.h (struct gomp_work_share): Add ordered_owner.
7765 * loop.c (GOMP_loop_static_start): If not the startup thread,
7766 acquire the mutex to wait for initialization complete.
7767 (GOMP_loop_ordered_static_start): Likewise.
7768 (GOMP_loop_ordered_runtime_start): Likewise.
7769 (GOMP_loop_ordered_static_first): Remove.
7770 (GOMP_loop_ordered_dynamic_first): Remove.
7771 (GOMP_loop_ordered_guided_first): Remove.
7772 (GOMP_loop_ordered_runtime_first): Remove.
7773 * ordered.c (gomp_ordered_loop_first): Post to own release when
7774 we're the first thread.
7775 (gomp_ordered_loop_last): Wait on release if not owner.
7776 (gomp_ordered_loop_next): Likewise.
7777 (gomp_ordered_static_loop_init): New.
7778 (gomp_ordered_static_loop_next): Use ordered_owner.
7779 (GOMP_ordered_start): Likewise.
7780 * work.c (gomp_new_work_share): Initialize ordered_owner.
7782 2005-05-03 Richard Henderson <rth@redhat.com>
7784 * Makefile (OPT): New.
7787 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
7788 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
7789 * libgomp.h, libgomp.map, NOTES: Update to match.
7791 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
7792 Add initialized and thr members.
7793 (gomp_thread_start): Pause when initially spawned to wait for
7794 the whole team to be created.
7795 (gomp_team_start): Release team members at the end.
7797 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
7798 (f_foo_1): Use GOMP_loop_end.
7799 (f_foo_2): Use GOMP_loop_end_nowait.
7801 * testsuite/loop-2.c: New file.
7802 * testsuite/Makefile (TESTS): Add it.
7804 2005-05-03 Richard Henderson <rth@redhat.com>
7806 * iter.c (gomp_iter_static_next): Fix overflow check typo.
7807 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
7808 * team.c (new_team): Initialize oldest_live_gen to 1 if no
7811 * testsuite/Makefile: New file.
7812 * testsuite/loop-1.c: New file.
7814 2005-05-03 Richard Henderson <rth@redhat.com>
7816 Initial implementation and checkin.
7818 Copyright (C) 2005-2016 Free Software Foundation, Inc.
7820 Copying and distribution of this file, with or without modification,
7821 are permitted in any medium without royalty provided the copyright
7822 notice and this notice are preserved.