1 2016-04-27 Release Manager
5 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
7 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
10 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13 pass parameter variables to subroutines.
15 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
18 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
20 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
23 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
24 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
26 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
28 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
29 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
30 GOACC_declare prototype.
32 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
33 Merge this file, and...
34 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
36 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
38 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
40 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
42 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
44 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
46 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
48 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
50 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
52 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
54 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
56 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
58 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
61 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
62 Make failure observable.
64 2016-04-12 Jakub Jelinek <jakub@redhat.com>
66 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
68 * target.c (gomp_target_fallback_firstprivate,
69 gomp_target_unshare_firstprivate): Removed.
70 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
71 before waiting for dependencies.
72 (gomp_target_task_fn): Don't copy firstprivate vars here.
73 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
74 firstprivate_copies here.
75 (gomp_create_target_task): Don't initialize firstprivate_copies field.
76 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
77 explicit/implicit firstprivate.
79 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
83 PR tree-optimization/70373
87 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
89 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
91 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
93 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
95 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
97 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
99 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
101 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
103 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
105 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
106 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
107 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
108 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
110 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
112 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
114 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
116 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
118 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
119 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
120 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
121 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
122 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
123 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
125 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
126 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
127 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
128 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
129 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
130 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
131 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
132 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
133 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
134 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
135 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
136 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
137 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
138 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
139 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
141 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
142 James Norris <jnorris@codesourcery.com>
143 Nathan Sidwell <nathan@codesourcery.com>
144 Julian Brown <julian@codesourcery.com>
145 Cesar Philippidis <cesar@codesourcery.com>
146 Chung-Lin Tang <cltang@codesourcery.com>
147 Tom de Vries <tom@codesourcery.com>
149 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
150 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
151 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
152 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
153 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
154 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
155 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
156 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
157 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
159 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
161 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
163 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
164 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
165 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
166 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
168 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
170 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
171 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
172 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
173 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
174 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
175 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
176 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
177 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
178 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
179 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
181 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
182 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
183 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
185 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
187 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
189 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
191 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
193 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
194 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
195 ... this new file. Update.
196 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
197 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
198 ... this new file. Update.
199 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
201 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
203 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
205 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
207 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
209 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
211 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
214 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
216 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
218 * testsuite/libgomp.oacc-c/c.exp: Likewise.
219 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
220 -fno-builtin-acc_on_device instead of -O0.
221 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
223 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
224 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
226 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
227 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
228 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
229 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
230 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
231 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
232 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
233 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
234 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
235 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
236 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
237 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
238 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
239 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
240 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
241 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
242 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
243 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
245 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
247 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
250 2016-03-24 Martin Liska <mliska@suse.cz>
252 * plugin/plugin-hsa.c (packet_store_release): New function
253 that is taken from the HSA runtime manual.
254 (GOMP_OFFLOAD_run): Use the function.
256 2016-03-23 Jakub Jelinek <jakub@redhat.com>
259 * testsuite/libgomp.c++/pr70376.C: New test.
261 2016-03-23 Tom de Vries <tom@codesourcery.com>
263 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
264 initialization of lresult and lvresult.
265 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
267 2016-03-23 James Norris <jnorris@codesourcery.com>
268 Daichi Fukuoka <dc-fukuoka@sgi.com>
271 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
272 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
273 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
274 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
276 2016-03-23 Martin Liska <mliska@suse.cz>
279 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
280 argument just in case a dispatched kernel uses that argument.
282 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
284 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
285 -ftree-parallelize-loops/-fopenacc changes.
286 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
288 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
290 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
292 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
294 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
295 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
297 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
299 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
300 always_ld_library_path the path to libgcc_s.
302 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
305 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
307 2016-03-09 Tom de Vries <tom@codesourcery.com>
309 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
310 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
311 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
313 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
314 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
315 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
316 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
318 2016-03-07 Martin Jambor <mjambor@suse.cz>
320 * testsuite/lib/libgomp.exp
321 (check_effective_target_hsa_offloading_selected_nocache): New.
322 (check_effective_target_hsa_offloading_selected): Likewise.
323 * testsuite/libgomp.hsa.c/c.exp: Likewise.
324 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
325 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
326 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
327 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
328 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
329 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
330 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
331 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
332 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
333 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
334 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
335 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
336 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
337 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
338 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
339 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
341 2016-03-07 Martin Jambor <mjambor@suse.cz>
343 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
344 non-shared memory accelerators.
345 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
346 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
347 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
348 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
349 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
350 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
351 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
352 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
353 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
355 2016-03-07 Martin Jambor <mjambor@suse.cz>
357 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
360 2016-03-02 Jakub Jelinek <jakub@redhat.com>
363 * testsuite/libgomp.c++/pr69555-1.C: New test.
364 * testsuite/libgomp.c++/pr69555-2.C: New test.
366 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
367 Martin Jambor <mjambor@suse.cz>
369 * testsuite/lib/libgomp.exp
370 (check_effective_target_offload_device_shared_as): New proc.
371 * testsuite/libgomp.c++/declare_target-1.C: New test.
373 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
376 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
378 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
380 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
381 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
383 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
384 -ftree-parallelize-loops/-fopenacc changes.
385 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
386 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
388 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
390 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
392 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
394 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
396 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
398 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
400 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
401 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
403 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
404 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
406 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
407 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
410 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
412 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
414 2016-02-19 Jakub Jelinek <jakub@redhat.com>
417 * testsuite/libgomp.c/pr69805.c: New test.
419 2016-02-16 Tom de Vries <tom@codesourcery.com>
422 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
424 2016-02-09 Tom de Vries <tom@codesourcery.com>
426 PR tree-optimization/69599
427 * testsuite/libgomp.c/omp-nested-3.c: New test.
428 * testsuite/libgomp.c/pr46032-2.c: New test.
429 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
430 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
432 2016-02-09 Tom de Vries <tom@codesourcery.com>
435 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
437 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
439 * testsuite/libgomp.c/target-31.c: Fix testcase.
441 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
443 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
445 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
446 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
447 reduction and map clauses.
448 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
450 2016-02-02 James Norris <jnorris@codesourcery.com>
452 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
454 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
456 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
457 * oacc-parallel.c (GOACC_host_data): Remove function definition.
459 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
462 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
464 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
465 (hsa_kmt_lib): Set variables.
466 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
467 always_ld_library_path.
468 * Makefile.in: Regenerate.
469 * configure: Likewise.
470 * testsuite/Makefile.in: Likewise.
472 * plugin/configfrag.ac (offload_additional_options)
473 (offload_additional_lib_paths): Don't amend for hsa offloading.
474 * configure: Regenerate.
476 * plugin/configfrag.ac: Don't configure for offloading target if
477 we don't build the corresponding plugin.
478 * configure: Regenerate.
480 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
482 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
483 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
485 2016-01-26 Tom de Vries <tom@codesourcery.com>
487 PR tree-optimization/69110
488 * testsuite/libgomp.c/pr69110.c: New test.
490 2016-01-25 Richard Biener <rguenther@suse.de>
493 * testsuite/libgomp.c++/pr69393.C: New testcase.
495 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
497 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
498 function wasn't mapped to the device with non-shared memory.
500 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
502 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
504 2016-01-19 Martin Jambor <mjambor@suse.cz>
505 Martin Liska <mliska@suse.cz>
507 * plugin/Makefrag.am: Add HSA plugin requirements.
508 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
509 (HSA_RUNTIME_LIB): Likewise.
510 (HSA_RUNTIME_CPPFLAGS): Likewise.
511 (HSA_RUNTIME_INCLUDE): New substitution.
512 (HSA_RUNTIME_LIB): Likewise.
513 (HSA_RUNTIME_LDFLAGS): Likewise.
514 (hsa-runtime): New configure option.
515 (hsa-runtime-include): Likewise.
516 (hsa-runtime-lib): Likewise.
517 (PLUGIN_HSA): New substitution variable.
518 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
520 (PLUGIN_HSA_CPPFLAGS): Likewise.
521 (PLUGIN_HSA_LDFLAGS): Likewise.
522 (PLUGIN_HSA_LIBS): Likewise.
523 Check that we have access to HSA run-time.
524 * libgomp-plugin.h (offload_target_type): New element
525 OFFLOAD_TARGET_TYPE_HSA.
526 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
528 (bool gomp_create_target_task): Updated.
529 (gomp_device_descr): Extra parameter of run_func and async_run_func,
530 new field can_run_func.
531 * libgomp_g.h (GOMP_target_ext): Update prototype.
532 * oacc-host.c (host_run): Added a new parameter args.
533 * target.c (calculate_firstprivate_requirements): New function.
534 (copy_firstprivate_data): Likewise.
535 (gomp_target_fallback_firstprivate): Use them.
536 (gomp_target_unshare_firstprivate): New function.
537 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
539 (GOMP_target): Do host fallback for all shared memory devices. Do not
540 pass any args to plugins.
541 (GOMP_target_ext): Introduce device-specific argument parameter args.
542 Allow host fallback if device shares memory. Do not remap data if
543 device has shared memory.
544 (gomp_target_task_fn): Likewise. Also treat shared memory devices
545 like host fallback for mappings.
546 (GOMP_target_data): Treat shared memory devices like host fallback.
547 (GOMP_target_data_ext): Likewise.
548 (GOMP_target_update): Likewise.
549 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
550 gomp_create_target_task.
551 (GOMP_target_enter_exit_data): Likewise.
552 (omp_target_alloc): Treat shared memory devices like host fallback.
553 (omp_target_free): Likewise.
554 (omp_target_is_present): Likewise.
555 (omp_target_memcpy): Likewise.
556 (omp_target_memcpy_rect): Likewise.
557 (omp_target_associate_ptr): Likewise.
558 (gomp_load_plugin_for_device): Also load can_run.
559 * task.c (GOMP_PLUGIN_target_task_completion): Free
561 (gomp_create_target_task): Accept new argument args and store it to
563 * plugin/plugin-hsa.c: New file.
565 2016-01-18 Tom de Vries <tom@codesourcery.com>
567 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
568 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
569 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
570 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
571 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
572 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
573 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
574 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
575 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
576 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
577 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
579 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
581 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
582 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
583 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
584 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
585 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
586 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
587 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
588 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
590 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
592 2016-01-15 Jakub Jelinek <jakub@redhat.com>
594 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
596 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
598 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
600 2016-01-12 James Norris <jnorris@codesourcery.com>
602 * libgomp.texi: Updates for OpenACC.
604 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
606 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
608 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
611 * testsuite/libgomp.fortran/pr66680.f90: New test.
613 2016-01-07 Jakub Jelinek <jakub@redhat.com>
616 * testsuite/libgomp.c/pr68960.c: New test.
618 2016-01-06 Nathan Sidwell <nathan@acm.org>
620 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
621 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
623 2016-01-04 Jakub Jelinek <jakub@redhat.com>
625 Update copyright years.
627 * libgomp.texi: Bump @copying's copyright year.
629 2015-12-31 Nathan Sidwell <nathan@acm.org>
631 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
632 dg-additional-options syntax.
633 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
634 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
635 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
636 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
637 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
638 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
639 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
640 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
641 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
642 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
643 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
644 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
645 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
646 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
647 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
648 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
649 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
650 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
652 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
654 * libgomp.h (REFCOUNT_LINK): Define.
655 (struct splay_tree_key_s): Add link_key.
656 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
657 Replace target address of the pointer with target address of newly
658 mapped object in the splay tree. Set link pointer on target to the
659 device address of the mapped object.
660 (gomp_unmap_vars): Restore target address of the pointer in the splay
661 tree for REFCOUNT_LINK objects after unmapping.
662 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
663 declare target link" objects.
664 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
665 "omp declare target link" objects, which were mapped for the image.
666 (gomp_exit_data): Restore target address of the pointer in the splay
667 tree for REFCOUNT_LINK objects after unmapping.
668 * testsuite/libgomp.c/target-link-1.c: New file.
670 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
672 * libgomp.h (gomp_device_state): New enum.
673 (struct gomp_device_descr): Replace is_initialized with state.
674 (gomp_fini_device): Remove declaration.
675 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
676 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
677 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
678 (acc_set_device_type): Use state instead of is_initialized.
679 (acc_set_device_num): Likewise.
680 * target.c (resolve_device): Use state instead of is_initialized.
681 Do not initialize finalized device.
682 (gomp_map_vars): Do nothing if device is finalized.
683 (gomp_unmap_vars): Likewise.
684 (gomp_update): Likewise.
685 (GOMP_offload_register_ver): Use state instead of is_initialized.
686 (GOMP_offload_unregister_ver): Likewise.
687 (gomp_init_device): Likewise.
688 (gomp_unload_device): Likewise.
689 (gomp_fini_device): Remove.
690 (gomp_get_target_fn_addr): Do nothing if device is finalized.
691 (GOMP_target): Go to host fallback if device is finalized.
692 (GOMP_target_ext): Likewise.
693 (gomp_exit_data): Do nothing if device is finalized.
694 (gomp_target_task_fn): Go to host fallback if device is finalized.
695 (gomp_target_fini): New static function.
696 (gomp_target_init): Use state instead of is_initialized.
697 Call gomp_target_fini at exit.
699 2015-12-09 Tom de Vries <tom@codesourcery.com>
701 PR tree-optimization/68716
702 * testsuite/libgomp.c/omp-nested-2.c: New test.
704 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
706 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
707 target openacc_nvidia_accel_selected.
708 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
709 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
710 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
711 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
713 2015-12-01 Julian Brown <julian@codesourcery.com>
714 James Norris <James_Norris@mentor.com>
716 * oacc-parallel.c (GOACC_host_data): New function.
717 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
718 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
719 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
720 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
721 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
722 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
723 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
725 2015-11-30 James Norris <jnorris@codesourcery.com>
726 Cesar Philippidis <cesar@codesourcery.com>
729 * libgomp.oacc-fortran/routine-5.f90: New test.
730 * libgomp.oacc-fortran/routine-7.f90: New test.
731 * libgomp.oacc-fortran/routine-9.f90: New test.
733 2015-11-30 Tom de Vries <tom@codesourcery.com>
735 PR tree-optimization/46032
736 * testsuite/libgomp.c/pr46032.c: New test.
738 2015-11-27 Jakub Jelinek <jakub@redhat.com>
741 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
742 (gomp_create_target_task): Call it before freeing
743 GOMP_TARGET_TASK_DATA tasks.
746 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
747 in between case label and OpenMP standalone directives.
748 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
750 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
752 * configure: Regenerate.
754 2015-11-26 Jakub Jelinek <jakub@redhat.com>
756 * testsuite/libgomp.c/target-35.c: New test.
758 2015-11-22 James Norris <jnorris@codesourcery.com>
759 Cesar Philippidis <cesar@codesourcery.com>
761 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
762 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
763 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
764 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
765 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
767 2015-11-20 Jakub Jelinek <jakub@redhat.com>
770 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
771 * testsuite/libgomp.c/reduction-12.c: Likewise.
772 * testsuite/libgomp.c++/reduction-11.C: Likewise.
773 * testsuite/libgomp.c++/reduction-12.C: Likewise.
775 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
777 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
778 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
779 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
780 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
781 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
783 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
784 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
786 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
788 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
790 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
792 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
794 * config/nvptx/priority_queue.c: New file.
796 2015-11-14 Jakub Jelinek <jakub@redhat.com>
798 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
801 2015-11-14 Jakub Jelinek <jakub@redhat.com>
802 Aldy Hernandez <aldyh@redhat.com>
803 Ilya Verbin <ilya.verbin@intel.com>
805 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
806 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
807 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
808 iterators or IV by chunk size.
809 * parallel.c (gomp_resolve_num_threads): Don't assume that
810 if thr->ts.team is non-NULL, then pool must be non-NULL.
811 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
812 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
813 GOMP_PLUGIN_target_task_completion.
814 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
815 * Makefile.in: Regenerate.
816 * libgomp.h: Shuffle prototypes and forward definitions around so
817 priority queues can be defined.
818 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
819 (enum gomp_target_task_state): New enum.
820 (struct gomp_target_task): Add state, tgt, task and team fields.
821 (gomp_create_target_task): Change return type to bool, add
823 (gomp_target_task_fn): Change return type to bool.
824 (struct gomp_device_descr): Add async_run_func.
825 (struct gomp_task): Remove children, next_child, prev_child,
826 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
828 (struct gomp_taskgroup): Remove children.
830 (struct gomp_team): Change task_queue type to a priority queue.
831 (splay_compare): Define inline.
832 (priority_queue_offset): New.
833 (priority_node_to_task): New.
834 (task_to_priority_node): New.
835 * oacc-mem.c: Do not include splay-tree.h.
836 * priority_queue.c: New file.
837 * priority_queue.h: New file.
838 * splay-tree.c: Do not include splay-tree.h.
839 (splay_tree_foreach_internal): New.
840 (splay_tree_foreach): New.
841 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
842 (splay_tree_callback): Define typedef.
843 * target.c (splay_compare): Move to libgomp.h.
844 (GOMP_target): Don't adjust *thr in any way around running offloaded
846 (GOMP_target_ext): Likewise. Handle target nowait.
847 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
848 return value from gomp_create_target_task, if false, fallthrough
849 as if no dependencies exist.
850 (gomp_target_task_fn): Change return type to bool, return true
851 if the task should have another part scheduled later. Handle
853 (gomp_load_plugin_for_device): Initialize async_run.
854 * task.c (gomp_init_task): Initialize children_queue.
855 (gomp_clear_parent_in_list): New.
856 (gomp_clear_parent_in_tree): New.
857 (gomp_clear_parent): Handle priorities.
858 (GOMP_task): Likewise.
859 (priority_queue_move_task_first,
860 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
862 (gomp_create_target_task): Use priority queues. Change return type
863 to bool, add state argument, return false if for async
864 {{enter,exit} data,update} constructs no dependencies need to be
865 waited for, handle target nowait. Set task->fn to NULL instead of
867 (verify_children_queue): Remove.
868 (priority_list_upgrade_task): New.
869 (priority_queue_upgrade_task): New.
870 (verify_task_queue): Remove.
871 (priority_list_downgrade_task): New.
872 (priority_queue_downgrade_task): New.
873 (gomp_task_run_pre): Use priority queues.
874 Abstract code out to priority_queue_downgrade_task.
875 (gomp_task_run_post_handle_dependers): Use priority queues.
876 (gomp_task_run_post_remove_parent): Likewise.
877 (gomp_task_run_post_remove_taskgroup): Likewise.
878 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
880 (GOMP_taskwait): Likewise.
881 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
882 priority-queue_upgrade_task.
883 (GOMP_taskgroup_start): Use priority queues.
884 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
885 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
887 * taskloop.c (GOMP_taskloop): Handle priorities.
888 * team.c (gomp_new_team): Call priority_queue_init.
889 (free_team): Call priority_queue_free.
890 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
891 team created for target nowait in implicit parallel region.
892 (gomp_team_start): For nested check, test thr->ts.level instead of
893 thr->ts.team != NULL.
894 * testsuite/libgomp.c/doacross-3.c: New test.
895 * testsuite/libgomp.c/ordered-5.c: New test.
896 * testsuite/libgomp.c/priority.c: New test.
897 * testsuite/libgomp.c/target-31.c: New test.
898 * testsuite/libgomp.c/target-32.c: New test.
899 * testsuite/libgomp.c/target-33.c: New test.
900 * testsuite/libgomp.c/target-34.c: New test.
902 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
904 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
906 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
909 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
911 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
912 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
914 2015-11-12 James Norris <jnorris@codesourcery.com>
915 Joseph Myers <joseph@codesourcery.com>
917 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
918 * oacc-parallel.c (GOACC_declare): New function.
919 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
920 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
921 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
922 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
923 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
925 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
927 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
929 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
931 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
932 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
934 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
936 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
939 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
941 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
942 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
943 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
944 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
945 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
947 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
949 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
950 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
952 2015-11-05 Jakub Jelinek <jakub@redhat.com>
953 Ilya Verbin <ilya.verbin@intel.com>
955 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
956 GOMP_loop_nonmonotonic_dynamic_start,
957 GOMP_loop_nonmonotonic_guided_next,
958 GOMP_loop_nonmonotonic_guided_start,
959 GOMP_loop_ull_nonmonotonic_dynamic_next,
960 GOMP_loop_ull_nonmonotonic_dynamic_start,
961 GOMP_loop_ull_nonmonotonic_guided_next,
962 GOMP_loop_ull_nonmonotonic_guided_start,
963 GOMP_parallel_loop_nonmonotonic_dynamic,
964 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
965 (GOMP_target_41): Renamed to ...
966 (GOMP_target_ext): ... this. Add num_teams and thread_limit
968 (GOMP_target_data_41): Renamed to ...
969 (GOMP_target_data_ext): ... this.
970 (GOMP_target_update_41): Renamed to ...
971 (GOMP_target_update_ext): ... this.
972 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
973 GOMP_target_data_ext and GOMP_target_update_ext instead of
974 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
975 Export GOMP_loop_nonmonotonic_dynamic_next,
976 GOMP_loop_nonmonotonic_dynamic_start,
977 GOMP_loop_nonmonotonic_guided_next,
978 GOMP_loop_nonmonotonic_guided_start,
979 GOMP_loop_ull_nonmonotonic_dynamic_next,
980 GOMP_loop_ull_nonmonotonic_dynamic_start,
981 GOMP_loop_ull_nonmonotonic_guided_next,
982 GOMP_loop_ull_nonmonotonic_guided_start,
983 GOMP_parallel_loop_nonmonotonic_dynamic and
984 GOMP_parallel_loop_nonmonotonic_guided.
985 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
986 GOMP_parallel_loop_nonmonotonic_guided,
987 GOMP_loop_nonmonotonic_dynamic_start,
988 GOMP_loop_nonmonotonic_guided_start,
989 GOMP_loop_nonmonotonic_dynamic_next,
990 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
991 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
992 GOMP_loop_ull_nonmonotonic_guided_start,
993 GOMP_loop_ull_nonmonotonic_dynamic_next,
994 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
995 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
997 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
998 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
999 Use gomp_map_val function.
1000 (gomp_target_fallback_firstprivate): New static function.
1001 (GOMP_target_41): Renamed to ...
1002 (GOMP_target_ext): ... this. Add num_teams and thread_limit
1003 arguments. Move firstprivate fallback handling into a new
1005 (GOMP_target_data_41): Renamed to ...
1006 (GOMP_target_data_ext): ... this.
1007 (GOMP_target_update_41): Renamed to ...
1008 (GOMP_target_update_ext): ... this.
1009 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
1010 gomp_map_0len_lookup instead of gomp_map_lookup.
1011 (omp_target_is_present): Use gomp_map_0len_lookup instead of
1013 * testsuite/libgomp.c/target-28.c: Likewise.
1014 * testsuite/libgomp.c/monotonic-1.c: New test.
1015 * testsuite/libgomp.c/monotonic-2.c: New test.
1016 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
1017 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
1018 * testsuite/libgomp.c/pr66199-5.c: New test.
1019 * testsuite/libgomp.c/pr66199-6.c: New test.
1020 * testsuite/libgomp.c/pr66199-7.c: New test.
1021 * testsuite/libgomp.c/pr66199-8.c: New test.
1022 * testsuite/libgomp.c/pr66199-9.c: New test.
1023 * testsuite/libgomp.c/reduction-11.c: New test.
1024 * testsuite/libgomp.c/reduction-12.c: New test.
1025 * testsuite/libgomp.c/reduction-13.c: New test.
1026 * testsuite/libgomp.c/reduction-14.c: New test.
1027 * testsuite/libgomp.c/reduction-15.c: New test.
1028 * testsuite/libgomp.c/target-12.c (main): Adjust for
1029 omp_target_is_present change for one-past-last element.
1030 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
1031 the same var is both mapped and privatized.
1032 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
1033 handling of zero-length array sections.
1034 * testsuite/libgomp.c/target-28.c: New test.
1035 * testsuite/libgomp.c/target-29.c: New test.
1036 * testsuite/libgomp.c/target-30.c: New test.
1037 * testsuite/libgomp.c/target-teams-1.c: New test.
1038 * testsuite/libgomp.c++/member-6.C: New test.
1039 * testsuite/libgomp.c++/member-7.C: New test.
1040 * testsuite/libgomp.c++/monotonic-1.C: New test.
1041 * testsuite/libgomp.c++/monotonic-2.C: New test.
1042 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
1043 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
1044 * testsuite/libgomp.c++/pr66199-3.C: New test.
1045 * testsuite/libgomp.c++/pr66199-4.C: New test.
1046 * testsuite/libgomp.c++/pr66199-5.C: New test.
1047 * testsuite/libgomp.c++/pr66199-6.C: New test.
1048 * testsuite/libgomp.c++/pr66199-7.C: New test.
1049 * testsuite/libgomp.c++/pr66199-8.C: New test.
1050 * testsuite/libgomp.c++/pr66199-9.C: New test.
1051 * testsuite/libgomp.c++/reduction-11.C: New test.
1052 * testsuite/libgomp.c++/reduction-12.C: New test.
1053 * testsuite/libgomp.c++/target-13.C: New test.
1054 * testsuite/libgomp.c++/target-14.C: New test.
1055 * testsuite/libgomp.c++/target-15.C: New test.
1056 * testsuite/libgomp.c++/target-16.C: New test.
1057 * testsuite/libgomp.c++/target-17.C: New test.
1058 * testsuite/libgomp.c++/target-18.C: New test.
1059 * testsuite/libgomp.c++/target-19.C: New test.
1061 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1063 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
1065 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1066 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1067 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1068 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1069 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1070 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1071 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1072 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1073 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1074 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
1075 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
1076 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1077 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1078 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
1080 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1082 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
1083 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
1084 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
1085 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
1086 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
1087 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
1088 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
1089 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
1091 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
1093 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
1094 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
1095 (GOMP_OFFLOAD_openacc_parallel): Likewise.
1096 * oacc-host.c (host_openacc_exec): Likewise.
1097 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
1099 2015-11-03 Julian Brown <julian@codesourcery.com>
1100 Thomas Schwinge <thomas@codesourcery.com>
1102 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
1103 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1104 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
1106 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
1107 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
1109 2015-11-03 James Norris <jnorris@codesourcery.com>
1111 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
1113 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
1115 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
1116 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
1117 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
1118 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
1119 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
1121 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
1123 * openacc.h (enum acc_device_t): Reformat. Ensure layout
1125 (enum acc_async_t): Reformat.
1126 (acc_on_device): Declare compatible with builtin and provide C++
1128 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
1130 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
1131 Cesar Philippidis <cesar@codesourcery.com>
1133 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
1134 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
1135 ... this. Add a description of the test at the top of the file.
1136 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
1137 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
1138 ... this. Add a description of the test at the top of the file.
1140 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1142 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
1143 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
1144 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
1145 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
1146 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
1147 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
1149 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1151 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
1154 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1157 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
1159 2015-10-27 James Norris <jnorris@codesourcery.com>
1161 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
1162 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
1164 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
1166 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
1167 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1169 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
1170 acc_device_nvidia usage.
1171 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1172 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1173 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
1175 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
1176 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
1179 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
1183 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
1184 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
1186 2015-10-23 Tom de Vries <tom@codesourcery.com>
1189 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
1191 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
1193 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
1195 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1197 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
1198 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
1200 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
1201 to 0 when mapnum is 0.
1203 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1205 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
1206 Cast to int from int32_t.
1208 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1209 Aldy Hernandez <aldyh@redhat.com>
1210 Ilya Verbin <ilya.verbin@intel.com>
1212 * config/linux/affinity.c (omp_get_place_num_procs,
1213 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
1214 * config/linux/doacross.h: New file.
1215 * config/posix/affinity.c (omp_get_place_num_procs,
1216 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
1217 * config/posix/doacross.h: New file.
1218 * env.c: Include gomp-constants.h.
1219 (struct gomp_task_icv): Rename run_sched_modifier to
1220 run_sched_chunk_size.
1221 (gomp_max_task_priority_var): New variable.
1222 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
1223 (handle_omp_display_env): Change _OPENMP value from 201307 to
1224 201511. Print OMP_MAX_TASK_PRIORITY.
1225 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
1226 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
1227 chunk_size and run_sched_modifier to run_sched_chunk_size.
1228 (omp_get_max_task_priority, omp_get_initial_device,
1229 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
1230 omp_get_partition_place_nums): New functions.
1231 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
1232 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
1234 (omp_get_num_places_, omp_get_place_num_procs_,
1235 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
1236 omp_get_place_proc_ids_8_, omp_get_place_num_,
1237 omp_get_partition_num_places_, omp_get_partition_place_nums_,
1238 omp_get_partition_place_nums_8_, omp_get_initial_device_,
1239 omp_get_max_task_priority_): New functions.
1240 * libgomp_g.h (GOMP_loop_doacross_static_start,
1241 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
1242 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
1243 GOMP_loop_ull_doacross_dynamic_start,
1244 GOMP_loop_ull_doacross_guided_start,
1245 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
1246 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
1247 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
1248 GOMP_target_data_41, GOMP_target_update_41,
1249 GOMP_target_enter_exit_data): New prototypes.
1250 (GOMP_task): Add prototype argument.
1251 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
1252 (struct gomp_doacross_work_share): New type.
1253 (struct gomp_work_share): Add doacross field.
1254 (struct gomp_task_icv): Rename run_sched_modifier to
1255 run_sched_chunk_size.
1256 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
1257 GOMP_TASK_UNDEFERRED. Add comments.
1258 (struct gomp_task_depend_entry): Add comments.
1259 (struct gomp_task): Likewise.
1260 (struct gomp_taskgroup): Likewise.
1261 (struct gomp_target_task): New type.
1262 (struct gomp_team): Add comment.
1263 (gomp_get_place_proc_ids_8, gomp_doacross_init,
1264 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
1265 gomp_create_target_task, gomp_target_task_fn): New prototypes.
1266 (struct target_var_desc): New type.
1267 (struct target_mem_desc): Adjust comment. Use struct
1268 target_var_desc instead of splay_tree_key for list.
1269 (REFCOUNT_INFINITY): Define.
1270 (struct splay_tree_key_s): Remove copy_from field.
1271 (struct gomp_device_descr): Add dev2dev_func field.
1272 (enum gomp_map_vars_kind): New enum.
1273 (gomp_map_vars): Add one argument.
1274 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
1275 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
1276 omp_get_place_num_procs, omp_get_place_num_procs_,
1277 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
1278 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
1279 omp_get_place_num_, omp_get_partition_num_places,
1280 omp_get_partition_num_places_, omp_get_partition_place_nums,
1281 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
1282 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
1283 omp_target_free, omp_target_is_present, omp_target_memcpy,
1284 omp_target_memcpy_rect, omp_target_associate_ptr and
1285 omp_target_disassociate_ptr.
1286 (GOMP_4.0.2): Renamed to ...
1287 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
1288 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
1289 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
1290 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
1291 GOMP_loop_doacross_static_start, GOMP_doacross_post,
1292 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
1293 GOMP_loop_ull_doacross_guided_start,
1294 GOMP_loop_ull_doacross_runtime_start,
1295 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
1296 GOMP_doacross_ull_wait.
1297 * libgomp.texi: Document omp_get_max_task_priority.
1298 Rename modifier argument to chunk_size for omp_set_schedule and
1299 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
1300 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
1301 to run_sched_chunk_size renaming.
1302 (GOMP_loop_ordered_runtime_start): Likewise.
1303 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1304 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
1305 GOMP_parallel_loop_runtime_start): New functions.
1306 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
1307 to run_sched_chunk_size renaming.
1308 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
1309 GOMP_loop_doacross_guided_start): New functions or aliases.
1310 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
1311 run_sched_modifier to run_sched_chunk_size renaming.
1312 (GOMP_loop_ull_ordered_runtime_start): Likewise.
1313 (gomp_loop_ull_doacross_static_start,
1314 gomp_loop_ull_doacross_dynamic_start,
1315 gomp_loop_ull_doacross_guided_start,
1316 GOMP_loop_ull_doacross_runtime_start): New functions.
1317 (GOMP_loop_ull_doacross_static_start,
1318 GOMP_loop_ull_doacross_dynamic_start,
1319 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
1320 * oacc-mem.c (acc_map_data, present_create_copy,
1321 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
1323 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
1324 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
1325 instead of false to gomp_map_vars.
1326 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
1327 * omp.h.in (omp_lock_hint_t): New type.
1328 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1329 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1330 omp_get_place_num, omp_get_partition_num_places,
1331 omp_get_partition_place_nums, omp_get_initial_device,
1332 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
1333 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
1334 omp_target_associate_ptr, omp_target_disassociate_ptr): New
1336 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
1337 (omp_lock_hint_none, omp_lock_hint_uncontended,
1338 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
1339 omp_lock_hint_speculative): New parameters.
1340 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1341 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1342 omp_get_place_num, omp_get_partition_num_places,
1343 omp_get_partition_place_nums, omp_get_initial_device,
1344 omp_get_max_task_priority): New interfaces.
1345 (omp_set_schedule, omp_get_schedule): Rename modifier argument
1347 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
1348 (omp_lock_hint_none, omp_lock_hint_uncontended,
1349 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
1350 omp_lock_hint_speculative): New parameters.
1351 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
1352 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
1353 omp_get_place_num, omp_get_partition_num_places,
1354 omp_get_partition_place_nums, omp_get_initial_device,
1355 omp_get_max_task_priority): New functions and subroutines.
1356 * ordered.c: Include stdarg.h and string.h.
1357 (MAX_COLLAPSED_BITS): Define.
1358 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
1359 gomp_doacross_ull_init, GOMP_doacross_ull_post,
1360 GOMP_doacross_ull_wait): New functions.
1361 * target.c: Include errno.h.
1362 (resolve_device): If device is not initialized, call
1363 gomp_init_device on it.
1364 (gomp_map_lookup): New function.
1365 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
1366 Don't bump refcount if REFCOUNT_INFINITY. Handle
1367 GOMP_MAP_ALWAYS_TO_P.
1368 (get_kind): Rename is_openacc argument to short_mapkind.
1369 (gomp_map_pointer): Use gomp_map_lookup.
1370 (gomp_map_fields_existing): New function.
1371 (gomp_map_vars): Rename is_openacc argument to short_mapkind
1372 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
1373 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
1374 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
1375 Adjust for tgt->list changed type and copy_from living in there.
1376 (gomp_copy_from_async): Adjust for tgt->list changed type and
1377 copy_from living in there.
1378 (gomp_unmap_vars): Likewise.
1379 (gomp_update): Likewise. Rename is_openacc argument to
1380 short_mapkind. Don't fail if object is not mapped.
1381 (gomp_load_image_to_device): Initialize refcount to
1383 (gomp_target_fallback): New function.
1384 (gomp_get_target_fn_addr): Likewise.
1385 (GOMP_target): Adjust gomp_map_vars caller, use
1386 gomp_get_target_fn_addr and gomp_target_fallback.
1387 (GOMP_target_41): New function.
1388 (gomp_target_data_fallback): New function.
1389 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
1390 (GOMP_target_data_41): New function.
1391 (GOMP_target_update): Adjust gomp_update caller.
1392 (GOMP_target_update_41): New function.
1393 (gomp_exit_data, GOMP_target_enter_exit_data,
1394 gomp_target_task_fn, omp_target_alloc, omp_target_free,
1395 omp_target_is_present, omp_target_memcpy,
1396 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
1397 omp_target_associate_ptr, omp_target_disassociate_ptr,
1398 gomp_load_plugin_for_device): New functions.
1399 * task.c: Include gomp-constants.h. Include taskloop.c
1400 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
1401 (gomp_task_handle_depend): New function.
1402 (GOMP_task): Use it. Add priority argument. Use
1403 gomp-constant.h constants instead of hardcoded numbers.
1404 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
1405 (gomp_create_target_task): New function.
1406 (verify_children_queue, verify_taskgroup_queue,
1407 verify_task_queue): New functions.
1408 (gomp_task_run_pre): Call verify_*_queue functions.
1409 If an upcoming tied task is about to leave the sibling or
1410 taskgroup queues in an invalid state, adjust appropriately.
1411 Remove taskgroup argument. Add comments.
1412 (gomp_task_run_post_handle_dependers): Add comments.
1413 (gomp_task_run_post_remove_parent): Likewise.
1414 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
1415 (GOMP_taskwait): Likewise. Add comments.
1416 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
1417 problem such that the first non parent_depends_on task does not
1418 end up at the end of the children queue.
1419 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
1420 GOMP_TASK_UNDEFERRED.
1421 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
1422 * taskloop.c: New file.
1423 * testsuite/lib/libgomp.exp
1424 (check_effective_target_offload_device_nonshared_as): New proc.
1425 * testsuite/libgomp.c/affinity-2.c: New test.
1426 * testsuite/libgomp.c/doacross-1.c: New test.
1427 * testsuite/libgomp.c/doacross-2.c: New test.
1428 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
1429 Add map clause to target.
1430 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
1431 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
1432 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
1433 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
1434 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
1436 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
1437 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
1438 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
1439 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
1440 not defined. Use those where needed.
1441 * testsuite/libgomp.c/for-4.c: New test.
1442 * testsuite/libgomp.c/for-5.c: New test.
1443 * testsuite/libgomp.c/for-6.c: New test.
1444 * testsuite/libgomp.c/linear-1.c: New test.
1445 * testsuite/libgomp.c/ordered-4.c: New test.
1446 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
1447 only allowed on the loop iterator.
1448 * testsuite/libgomp.c/pr66199-3.c: New test.
1449 * testsuite/libgomp.c/pr66199-4.c: New test.
1450 * testsuite/libgomp.c/reduction-7.c: New test.
1451 * testsuite/libgomp.c/reduction-8.c: New test.
1452 * testsuite/libgomp.c/reduction-9.c: New test.
1453 * testsuite/libgomp.c/reduction-10.c: New test.
1454 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
1456 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
1457 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
1458 * testsuite/libgomp.c/target-11.c: New test.
1459 * testsuite/libgomp.c/target-12.c: New test.
1460 * testsuite/libgomp.c/target-13.c: New test.
1461 * testsuite/libgomp.c/target-14.c: New test.
1462 * testsuite/libgomp.c/target-15.c: New test.
1463 * testsuite/libgomp.c/target-16.c: New test.
1464 * testsuite/libgomp.c/target-17.c: New test.
1465 * testsuite/libgomp.c/target-18.c: New test.
1466 * testsuite/libgomp.c/target-19.c: New test.
1467 * testsuite/libgomp.c/target-20.c: New test.
1468 * testsuite/libgomp.c/target-21.c: New test.
1469 * testsuite/libgomp.c/target-22.c: New test.
1470 * testsuite/libgomp.c/target-23.c: New test.
1471 * testsuite/libgomp.c/target-24.c: New test.
1472 * testsuite/libgomp.c/target-25.c: New test.
1473 * testsuite/libgomp.c/target-26.c: New test.
1474 * testsuite/libgomp.c/target-27.c: New test.
1475 * testsuite/libgomp.c/taskloop-1.c: New test.
1476 * testsuite/libgomp.c/taskloop-2.c: New test.
1477 * testsuite/libgomp.c/taskloop-3.c: New test.
1478 * testsuite/libgomp.c/taskloop-4.c: New test.
1479 * testsuite/libgomp.c++/ctor-13.C: New test.
1480 * testsuite/libgomp.c++/doacross-1.C: New test.
1481 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
1482 Replace offload_device with offload_device_nonshared_as.
1483 * testsuite/libgomp.c++/for-12.C: New test.
1484 * testsuite/libgomp.c++/for-13.C: New test.
1485 * testsuite/libgomp.c++/for-14.C: New test.
1486 * testsuite/libgomp.c++/linear-1.C: New test.
1487 * testsuite/libgomp.c++/member-1.C: New test.
1488 * testsuite/libgomp.c++/member-2.C: New test.
1489 * testsuite/libgomp.c++/member-3.C: New test.
1490 * testsuite/libgomp.c++/member-4.C: New test.
1491 * testsuite/libgomp.c++/member-5.C: New test.
1492 * testsuite/libgomp.c++/ordered-1.C: New test.
1493 * testsuite/libgomp.c++/reduction-5.C: New test.
1494 * testsuite/libgomp.c++/reduction-6.C: New test.
1495 * testsuite/libgomp.c++/reduction-7.C: New test.
1496 * testsuite/libgomp.c++/reduction-8.C: New test.
1497 * testsuite/libgomp.c++/reduction-9.C: New test.
1498 * testsuite/libgomp.c++/reduction-10.C: New test.
1499 * testsuite/libgomp.c++/reference-1.C: New test.
1500 * testsuite/libgomp.c++/simd14.C: New test.
1501 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
1502 * testsuite/libgomp.c++/target-5.C: New test.
1503 * testsuite/libgomp.c++/target-6.C: New test.
1504 * testsuite/libgomp.c++/target-7.C: New test.
1505 * testsuite/libgomp.c++/target-8.C: New test.
1506 * testsuite/libgomp.c++/target-9.C: New test.
1507 * testsuite/libgomp.c++/target-10.C: New test.
1508 * testsuite/libgomp.c++/target-11.C: New test.
1509 * testsuite/libgomp.c++/target-12.C: New test.
1510 * testsuite/libgomp.c++/taskloop-1.C: New test.
1511 * testsuite/libgomp.c++/taskloop-2.C: New test.
1512 * testsuite/libgomp.c++/taskloop-3.C: New test.
1513 * testsuite/libgomp.c++/taskloop-4.C: New test.
1514 * testsuite/libgomp.c++/taskloop-5.C: New test.
1515 * testsuite/libgomp.c++/taskloop-6.C: New test.
1516 * testsuite/libgomp.c++/taskloop-7.C: New test.
1517 * testsuite/libgomp.c++/taskloop-8.C: New test.
1518 * testsuite/libgomp.c++/taskloop-9.C: New test.
1519 * testsuite/libgomp.fortran/affinity1.f90: New test.
1520 * testsuite/libgomp.fortran/affinity2.f90: New test.
1522 2015-10-13 Tom de Vries <tom@codesourcery.com>
1524 PR tree-optimization/67476
1525 * testsuite/libgomp.c/autopar-3.c: New test.
1526 * testsuite/libgomp.c/autopar-4.c: New test.
1527 * testsuite/libgomp.c/autopar-5.c: New test.
1528 * testsuite/libgomp.c/autopar-6.c: New test.
1529 * testsuite/libgomp.c/autopar-7.c: New test.
1530 * testsuite/libgomp.c/autopar-8.c: New test.
1532 2015-10-12 James Norris <jnorris@codesourcery.com>
1534 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
1537 2015-10-09 David Malcolm <dmalcolm@redhat.com>
1539 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
1542 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
1544 * oacc-ptx.h: Remove file, moving its content into...
1545 * config/nvptx/fortran.c: ... here...
1546 * config/nvptx/oacc-init.c: ..., here...
1547 * config/nvptx/oacc-parallel.c: ..., and here.
1548 * config/nvptx/openacc.f90: New file.
1549 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
1550 (link_ptx): Don't link in predefined bits of PTX code.
1552 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
1553 Bernd Schmidt <bernds@codesourcery.com>
1555 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
1556 (struct targ_ptx_obj): New.
1557 (nvptx_tdata): Move earlier, change data format.
1558 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
1560 (GOMP_OFFLOAD_load_image): Adjust.
1562 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
1564 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
1565 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1566 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1567 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1568 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1569 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1570 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1571 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1572 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1573 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1574 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1575 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1576 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1577 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1578 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1579 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1580 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1581 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1582 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1583 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1584 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1585 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1586 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1587 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1588 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1589 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1590 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1591 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1592 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1593 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1594 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1595 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1596 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1597 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1598 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1599 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1600 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1601 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1602 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1603 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1604 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1605 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1606 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1607 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1608 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1609 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1610 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1611 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1612 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1613 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1614 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1615 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1616 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1617 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1618 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1619 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1620 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1621 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1622 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1623 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1624 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1625 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1626 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1628 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1630 * oacc-init.c (acc_on_device): Force optimization level.
1632 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1634 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
1635 (cuda_errlist): Delete.
1636 (cuda_error): Reimplement.
1638 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1640 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
1642 * libgomp.map (GOACC_parallel_keyed): New.
1643 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
1645 (GOACC_parallel_keyed): New interface. Lose geometry arguments
1646 and take keyed varargs list. Adjust call to exec_func.
1647 (GOACC_parallel): Force host fallback.
1648 * libgomp_g.h (GOACC_parallel): Remove.
1649 (GOACC_parallel_keyed): Declare.
1650 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
1651 (stuct targ_gn_descriptor): Replace name field with launch field.
1652 (nvptx_exec): Lose separate geometry args, take array. Process
1653 dynamic dimensions and adjust.
1654 (struct nvptx_tdata): Replace fn_names field with fn_descs.
1655 (GOMP_OFFLOAD_load_image): Adjust for change in function table
1657 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
1659 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
1662 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1665 * oacc-int.h (goacc_host_init): Add declaration.
1666 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
1667 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
1669 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1670 Sebastian Pop <s.pop@samsung.com>
1672 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
1674 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
1675 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
1676 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
1677 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
1678 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1680 2015-09-03 Jakub Jelinek <jakub@redhat.com>
1682 * configure.tgt: Add missing ;; in between nvptx and rtems
1685 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1687 * config/posix/pool.h (gomp_adjust_thread_attr): New.
1688 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
1689 (gomp_thread_pool_reservoir): Add priority member.
1690 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
1692 (parse_thread_pools): Likewise.
1693 * team.c (gomp_team_start): Call configuration provided
1694 gomp_adjust_thread_attr(). Destroy thread attributes if
1696 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
1698 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1700 * config/posix/pool.h: New.
1701 * config/rtems/pool.h: Likewise.
1702 * config/rtems/proc.c: Likewise.
1703 * libgomp.h (gomp_thread_destructor): Declare.
1704 * team.c: Include configuration provided "pool.h".
1705 (gomp_get_thread_pool): Define in configuration.
1706 (gomp_team_end): Call configuration defined
1707 gomp_release_thread_pool().
1709 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1711 * config/rtems/bar.c: New.
1712 * config/rtems/bar.h: Likewise.
1713 * config/rtems/mutex.c: Likewise.
1714 * config/rtems/mutex.h: Likewise.
1715 * config/rtems/sem.c: Likewise.
1716 * config/rtems/sem.h: Likewise.
1717 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
1718 <sys/lock.h> header file.
1719 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
1720 supported by Newlib.
1721 * configure: Regenerate.
1723 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1725 * team.c (gomp_new_thread_pool): Delete and move content to ...
1726 (gomp_get_thread_pool): ... new function. Allocate and
1727 initialize thread pool on demand.
1728 (get_last_team): Use gomp_get_thread_pool().
1729 (gomp_team_start): Delete thread pool initialization.
1731 2015-09-03 Tom de Vries <tom@codesourcery.com>
1733 PR tree-optimization/65637
1734 * testsuite/libgomp.c/autopar-2.c: New test.
1736 2015-08-29 Tom de Vries <tom@codesourcery.com>
1738 PR tree-optimization/46193
1739 * testsuite/libgomp.c/pr46193.c: New test.
1741 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
1744 * libgomp.map: Add 4.0.2 version.
1745 * target.c (offload_image_descr): Add version field.
1746 (gomp_load_image_to_device): Add version argument. Adjust plugin
1747 call. Improve load mismatch diagnostic.
1748 (gomp_unload_image_from_device): Add version argument. Adjust plugin
1750 (GOMP_offload_regster): Make stub function, move bulk to ...
1751 (GOMP_offload_register_ver): ... here. Process version argument.
1752 (GOMP_offload_unregister): Make stub function, move bulk to ...
1753 (GOMP_offload_unregister_ver): ... here. Process version argument.
1754 (gomp_init_device): Process version field.
1755 (gomp_unload_device): Process version field.
1756 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
1757 macros. Check plugin version.
1758 * libgomp.h (gomp_device_descr): Add version function field. Adjust
1759 loader and unloader types.
1760 * oacc-host.c: Include gomp-constants.h.
1761 (host_version): New.
1762 (host_load_image, host_unload_image): Adjust.
1763 (host_dispatch): Add host_version.
1764 * plugin/plugin-nvptx.c: Include gomp-constants.h.
1765 (GOMP_OFFLOAD_version): New.
1766 (GOMP_OFFLOAD_load_image): Add version arg and check it.
1767 (GOMP_OFFLOAD_unload_image): Likewise.
1768 * plugin/plugin-host.c: Include gomp-constants.h.
1769 (GOMP_OFFLOAD_version): New.
1770 (GOMP_OFFLOAD_load_image): Add version arg.
1771 (GOMP_OFFLOAD_unload_image): Likewise.
1773 2015-08-24 Tom de Vries <tom@codesourcery.com>
1775 PR tree-optimization/65468
1776 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
1778 2015-08-24 Tom de Vries <tom@codesourcery.com>
1780 PR tree-optimization/65468
1781 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
1783 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
1787 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
1788 (gomp_iter_guided_next): Idem.
1789 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
1790 (gomp_iter_ull_guided_next): Idem.
1791 * config/linux/wait.h (do_spin): Idem.
1793 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1795 * libgomp-plugin.h (enum offload_target_type): Remove
1796 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
1797 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
1798 * openacc.h (enum acc_device_t): Likewise.
1799 * openacc_lib.h: Likewise.
1800 * oacc-init.c (name_of_acc_device_t): Don't handle it.
1801 (acc_on_device): Just use __builtin_acc_on_device.
1802 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
1803 of acc_on_device builtin.
1804 * plugin/plugin-host.h: Remove file.
1805 * plugin/plugin-host.c: Likewise, but salvage some content into...
1806 * oacc-host.c: ... this file.
1807 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
1808 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
1809 * Makefile.in: Regenerate.
1810 * configure: Likewise.
1811 * testsuite/lib/libgomp.exp
1812 (check_effective_target_openacc_host_nonshm_selected): Remove.
1813 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
1814 ACC_DEVICE_TYPE=host_nonshm.
1815 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1816 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1817 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1818 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1819 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1820 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1822 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1823 Jakub Jelinek <jakub@redhat.com>
1825 * config/nvptx/affinity.c: New file.
1826 * config/nvptx/alloc.c: Likewise.
1827 * config/nvptx/bar.c: Likewise.
1828 * config/nvptx/barrier.c: Likewise.
1829 * config/nvptx/critical.c: Likewise.
1830 * config/nvptx/env.c: Likewise.
1831 * config/nvptx/error.c: Likewise.
1832 * config/nvptx/fortran.c: Likewise.
1833 * config/nvptx/iter.c: Likewise.
1834 * config/nvptx/iter_ull.c: Likewise.
1835 * config/nvptx/libgomp-plugin.c: Likewise.
1836 * config/nvptx/lock.c: Likewise.
1837 * config/nvptx/loop.c: Likewise.
1838 * config/nvptx/loop_ull.c: Likewise.
1839 * config/nvptx/mutex.c: Likewise.
1840 * config/nvptx/oacc-async.c: Likewise.
1841 * config/nvptx/oacc-cuda.c: Likewise.
1842 * config/nvptx/oacc-host.c: Likewise.
1843 * config/nvptx/oacc-init.c: Likewise.
1844 * config/nvptx/oacc-mem.c: Likewise.
1845 * config/nvptx/oacc-parallel.c: Likewise.
1846 * config/nvptx/oacc-plugin.c: Likewise.
1847 * config/nvptx/omp-lock.h: Likewise.
1848 * config/nvptx/ordered.c: Likewise.
1849 * config/nvptx/parallel.c: Likewise.
1850 * config/nvptx/proc.c: Likewise.
1851 * config/nvptx/ptrlock.c: Likewise.
1852 * config/nvptx/sections.c: Likewise.
1853 * config/nvptx/sem.c: Likewise.
1854 * config/nvptx/single.c: Likewise.
1855 * config/nvptx/splay-tree.c: Likewise.
1856 * config/nvptx/target.c: Likewise.
1857 * config/nvptx/task.c: Likewise.
1858 * config/nvptx/team.c: Likewise.
1859 * config/nvptx/time.c: Likewise.
1860 * config/nvptx/work.c: Likewise.
1861 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
1862 * configure: Regenerate.
1863 * configure.tgt (config_path): Set to "nvptx" for target
1866 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1868 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
1870 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
1872 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
1873 (cuda_errlist): Constify.
1874 (errmsg): Move into ...
1875 (cuda_error): ... here. Make smaller.
1876 (_XSTR, _STR): Delete.
1877 (cuda_synames): Delete.
1878 (verify_device_library): Delete.
1879 (nvptx_init): Don't call it.
1881 2015-07-28 Tom de Vries <tom@codesourcery.com>
1883 * testsuite/libgomp.c/uns-outer-4.c: New test.
1885 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
1887 * testsuite/libgomp.c/pr66714.c: New test.
1889 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
1892 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
1893 (fib_ref): New function.
1894 (fib): Correct corner cases in the recursion.
1895 (main): Replace the non-simd loop with fib_ref call.
1896 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
1898 (fibonacci): Lower the parameter N to 30. Correct accordingly check
1899 for the last array element value. Replace the non-simd loop with
1900 fib_ref call. Remove redundant b_ref array. Remove the comparison
1901 of the last array element with according Fibonacci sequence element.
1902 (fib): Correct corner cases in the recursion.
1904 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
1906 * target.c (gomp_offload_image_to_device): Rename to ...
1907 (gomp_load_image_to_device): ... here.
1908 (GOMP_offload_register): Adjust call.
1909 (gomp_init_device): Likewise.
1910 (gomp_unload_image_from_device): New. Broken out of ...
1911 (GOMP_offload_unregister): ... here. Call it.
1912 (gomp_unload_device): New.
1913 * libgomp.h (gomp_unload_device): Declare.
1914 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
1917 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
1919 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
1921 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
1923 (goacc_waits): Move !num_waits handling to ...
1924 (GOACC_wait): ... here, the only caller that might have zero waits.
1926 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
1927 (struct ptx_image_data): Move earlier, add fns field.
1928 (struct ptx_device): Add images and image_lock fields.
1929 (ptx_images, ptx_image_lock): Delete.
1930 (nvptx_open_device): Initialize images and image_lock fields.
1931 (nvptx_close_device): Destroy image_lock.
1932 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
1933 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
1936 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
1938 * target.c (GOMP_offload_register): Use int for device type arg.
1939 (GOMP_offload_unregister): Likewise.
1941 * target.c (struct_offload_image_descr): Constify host_table.
1942 (gomp_offload_image_to_device): Likewise.
1943 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
1945 * libgomp.h (gomp_device_descr): Constify target data arguments.
1946 * target.c (struct offload_image_descr): Constify target_data.
1947 (gomp_offload_image_to_device): Likewise.
1948 (GOMP_offload_register): Likewise.
1949 (GOMP_offload_unrefister): Likewise.
1950 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
1951 GOMP_OFFLOAD_unload_image): Constify target data.
1952 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
1953 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
1955 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
1957 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
1958 Workaround driver library const error.
1959 (struct nvptx_tdata, nvptx_tdata_t): New.
1960 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
1963 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
1965 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
1966 of EPS parameter from integer to real.
1967 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
1968 type of EPS parameter from integer to real.
1970 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
1972 * team.c (get_last_team): New.
1973 (gomp_new_team): Recycle last non-nested team if possible.
1974 (gomp_team_end): Move team work share list free lock destruction
1976 (free_team): ... here.
1978 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
1980 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
1981 and ref from int to double. Replaced their comparison with
1982 an inequality of their difference and EPS.
1983 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
1984 comparison of pri and a reference number with an inequality of their
1986 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
1987 the comparison of sum and sum_ref with an inequality of their
1989 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
1990 the comparison of pri and a reference number with an inequality of
1991 their difference and EPS.
1993 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
1995 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
1996 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
1997 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
1998 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
1999 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
2000 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
2001 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
2002 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
2003 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
2004 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
2005 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
2006 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
2007 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
2009 (vec_mult): Likewise. Add #pragma omp taskwait.
2010 (main): Adjust caller.
2011 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
2012 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
2013 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
2014 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
2015 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
2016 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
2017 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
2018 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
2019 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
2020 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
2021 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
2022 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
2023 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
2024 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
2025 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
2026 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
2027 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
2028 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
2029 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
2030 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
2031 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
2032 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
2033 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
2034 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
2035 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
2036 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
2037 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
2038 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
2039 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
2040 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
2041 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
2042 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
2043 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
2044 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
2045 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
2046 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
2047 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
2048 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
2049 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
2050 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
2051 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
2052 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
2053 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
2054 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
2055 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
2056 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
2057 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
2058 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
2059 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
2060 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
2061 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
2062 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
2063 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
2064 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
2065 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
2066 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
2067 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
2068 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
2069 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
2070 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
2071 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
2072 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
2073 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
2074 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
2075 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
2076 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
2077 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
2078 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
2079 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
2080 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
2081 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
2082 (vec_mult): Add !$omp taskwait.
2083 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
2084 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
2085 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
2086 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
2087 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
2088 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
2089 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
2090 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
2091 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
2092 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
2093 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
2094 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
2095 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
2096 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
2097 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
2098 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
2099 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
2100 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
2101 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
2102 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
2103 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
2104 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
2105 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
2106 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
2107 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
2108 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
2109 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
2110 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
2111 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
2112 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
2113 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
2114 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
2115 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
2116 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
2117 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
2118 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
2119 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
2120 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
2121 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
2122 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
2123 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
2124 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
2125 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
2126 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
2127 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
2128 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
2129 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
2130 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
2131 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
2132 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
2133 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
2134 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
2135 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
2136 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
2137 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
2138 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
2139 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
2140 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
2141 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
2142 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
2143 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
2144 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
2145 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
2146 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
2147 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
2148 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
2149 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
2151 2015-07-10 Tom de Vries <tom@codesourcery.com>
2153 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
2154 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
2156 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2159 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
2160 in a 64-bit configuration.
2161 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
2162 offloading testing if no such device is available.
2163 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2164 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2166 2015-07-08 Tom de Vries <tom@codesourcery.com>
2168 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
2170 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2172 2015-07-07 Tom de Vries <tom@codesourcery.com>
2174 PR tree-optimization/66642
2175 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
2176 iteration count case.
2177 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
2178 function, factor out of ...
2179 (main): ... here. Test low iteration count case.
2181 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
2183 * libgomp.h (gomp_thread_pool): Comment last_team field.
2185 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
2187 * testsuite/libgomp.c++/pr66702-1.C: Require
2188 vect_simd_clones effective target.
2189 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
2191 2015-06-30 Tom de Vries <tom@codesourcery.com>
2193 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
2194 already set. Use DEFAULT_CFLAGS in dg-runtest.
2195 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
2198 2015-06-30 Tom de Vries <tom@codesourcery.com>
2200 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
2201 already set. Use DEFAULT_CFLAGS in dg-runtest.
2202 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
2203 * testsuite/libgomp.c++/pr64824.C: Same.
2204 * testsuite/libgomp.c++/pr64868.C: Same.
2205 * testsuite/libgomp.c++/pr66199-1.C: Same.
2206 * testsuite/libgomp.c++/pr66199-2.C: Same.
2207 * testsuite/libgomp.c++/target-2.C: Same.
2208 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
2209 -std=<standard> option.
2210 * testsuite/libgomp.c++/udr-11.C: Same.
2211 * testsuite/libgomp.c++/udr-12.C: Same.
2212 * testsuite/libgomp.c++/udr-13.C: Same.
2213 * testsuite/libgomp.c++/udr-14.C: Same.
2214 * testsuite/libgomp.c++/udr-15.C: Same.
2215 * testsuite/libgomp.c++/udr-16.C: Same.
2216 * testsuite/libgomp.c++/udr-17.C: Same.
2217 * testsuite/libgomp.c++/udr-18.C: Same.
2218 * testsuite/libgomp.c++/udr-19.C: Same.
2219 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
2220 * testsuite/libgomp.c++/simd-1.C: Same.
2221 * testsuite/libgomp.c++/simd-2.C: Same.
2222 * testsuite/libgomp.c++/simd-3.C: Same.
2223 * testsuite/libgomp.c++/simd-4.C: Same.
2224 * testsuite/libgomp.c++/simd-5.C: Same.
2225 * testsuite/libgomp.c++/simd-6.C: Same.
2226 * testsuite/libgomp.c++/simd-7.C: Same.
2227 * testsuite/libgomp.c++/simd-8.C: Same.
2228 * testsuite/libgomp.c++/simd-9.C: Same.
2229 * testsuite/libgomp.c++/simd10.C: Same.
2230 * testsuite/libgomp.c++/simd11.C: Same.
2231 * testsuite/libgomp.c++/simd12.C: Same.
2232 * testsuite/libgomp.c++/simd13.C: Same.
2234 2015-06-30 Jakub Jelinek <jakub@redhat.com>
2237 * testsuite/libgomp.c++/pr66702-1.C: New test.
2238 * testsuite/libgomp.c++/pr66702-2.C: New test.
2240 2015-06-30 Tom de Vries <tom@codesourcery.com>
2242 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
2243 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
2244 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
2245 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
2247 2015-06-30 Tom de Vries <tom@codesourcery.com>
2249 PR tree-optimization/66652
2250 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
2251 using restrict pointers.
2252 (main): Add arguments to calls to f.
2253 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2255 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
2257 * configure.ac: Fix check for header <sys/sysctl.h>.
2258 * configure: Regenerate.
2259 * config.h.in: Likewise.
2261 2015-06-23 Tom de Vries <tom@codesourcery.com>
2263 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
2265 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
2267 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
2269 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
2273 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
2274 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2276 2015-06-15 Tom de Vries <tom@codesourcery.com>
2278 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
2279 dg-additional-options for any remaining options.
2280 * testsuite/libgomp.c/atomic-2.c: Same.
2281 * testsuite/libgomp.c/atomic-4.c: Same.
2282 * testsuite/libgomp.c/atomic-5.c: Same.
2283 * testsuite/libgomp.c/atomic-6.c: Same.
2284 * testsuite/libgomp.c/autopar-1.c: Same.
2285 * testsuite/libgomp.c/copyin-1.c: Same.
2286 * testsuite/libgomp.c/copyin-2.c: Same.
2287 * testsuite/libgomp.c/copyin-3.c: Same.
2288 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
2289 * testsuite/libgomp.c/nestedfn-5.c: Same.
2290 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
2291 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
2292 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
2293 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2294 * testsuite/libgomp.c/pr32362-1.c: Same.
2295 * testsuite/libgomp.c/pr32362-2.c: Same.
2296 * testsuite/libgomp.c/pr32362-3.c: Same.
2297 * testsuite/libgomp.c/pr39591-1.c: Same.
2298 * testsuite/libgomp.c/pr39591-2.c: Same.
2299 * testsuite/libgomp.c/pr39591-3.c: Same.
2300 * testsuite/libgomp.c/pr58392.c: Same.
2301 * testsuite/libgomp.c/pr58756.c: Same.
2302 * testsuite/libgomp.c/simd-1.c: Same.
2303 * testsuite/libgomp.c/simd-10.c: Same.
2304 * testsuite/libgomp.c/simd-11.c: Same.
2305 * testsuite/libgomp.c/simd-12.c: Same.
2306 * testsuite/libgomp.c/simd-13.c: Same.
2307 * testsuite/libgomp.c/simd-14.c: Same.
2308 * testsuite/libgomp.c/simd-15.c: Same.
2309 * testsuite/libgomp.c/simd-2.c: Same.
2310 * testsuite/libgomp.c/simd-3.c: Same.
2311 * testsuite/libgomp.c/simd-4.c: Same.
2312 * testsuite/libgomp.c/simd-5.c: Same.
2313 * testsuite/libgomp.c/simd-6.c: Same.
2314 * testsuite/libgomp.c/simd-7.c: Same.
2315 * testsuite/libgomp.c/simd-8.c: Same.
2316 * testsuite/libgomp.c/simd-9.c: Same.
2318 2015-06-15 Tom de Vries <tom@codesourcery.com>
2320 * testsuite/libgomp.c/pr35625.c: Fix typo.
2322 2015-06-15 Tom de Vries <tom@codesourcery.com>
2324 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
2326 * testsuite/libgomp.c/atomic-3.c: Same.
2327 * testsuite/libgomp.c/debug-1.c: Same.
2328 * testsuite/libgomp.c/nqueens-1.c: Same.
2329 * testsuite/libgomp.c/pr26171.c: Same.
2330 * testsuite/libgomp.c/pr48591.c: Same.
2331 * testsuite/libgomp.c/pr64824.c: Same.
2332 * testsuite/libgomp.c/pr64868.c: Same.
2333 * testsuite/libgomp.c/pr66133.c: Same.
2334 * testsuite/libgomp.c/pr66199-1.c: Same.
2335 * testsuite/libgomp.c/pr66199-2.c: Same.
2336 * testsuite/libgomp.c/target-8.c: Same.
2338 2015-06-15 Tom de Vries <tom@codesourcery.com>
2340 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
2342 * testsuite/libgomp.c/for-1.c: Same.
2343 * testsuite/libgomp.c/for-2.c: Same.
2344 * testsuite/libgomp.c/for-3.c: Same.
2345 * testsuite/libgomp.c/pr35625.c: Same.
2346 * testsuite/libgomp.c/pr39154.c: Same.
2347 * testsuite/libgomp.c/simd-16.c: Same.
2348 * testsuite/libgomp.c/simd-17.c: Same.
2350 2015-06-13 Tom de Vries <tom@codesourcery.com>
2352 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
2354 2015-06-13 Tom de Vries <tom@codesourcery.com>
2356 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
2357 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
2358 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
2360 (main): Use N instead of hardcoded constants.
2362 2015-06-05 Tom de Vries <tom@codesourcery.com>
2364 merge from gomp4 branch:
2365 2015-05-28 Tom de Vries <tom@codesourcery.com>
2367 PR tree-optimization/65443
2368 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
2369 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
2370 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
2372 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2374 * testsuite/libgomp.graphite/bounds.c: Adjust for
2375 cleanup-tree-dump removal.
2376 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
2377 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2378 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2379 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
2380 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2381 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2382 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2383 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2384 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2385 * testsuite/libgomp.graphite/pr41118.c: Likewise.
2387 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
2389 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
2390 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
2391 (futex_wake) [!__x86_64__]: Ditto.
2393 2015-05-28 Julian Brown <julian@codesourcery.com>
2395 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
2396 function comment. Only call gomp_fatal if new argument is true.
2397 (acc_dev_num_out_of_range): New function.
2398 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
2399 acc_dev_num_out_of_range as appropriate.
2400 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
2401 (acc_get_device_num, acc_set_device_num): Update calls to
2403 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
2406 2015-05-28 Julian Brown <julian@codesourcery.com>
2409 * oacc-init.c (plugin/plugin-host.h): Include.
2410 (acc_on_device): Check whether we're in an offloaded region for
2412 plugin. Don't use __builtin_acc_on_device.
2413 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
2414 nonshm_exec flag in thread-local data.
2415 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
2416 data for host_nonshm plugin.
2417 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
2418 for host_nonshm plugin.
2419 * plugin/plugin-host.h: New.
2421 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2423 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
2425 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2427 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
2429 (FUTEX_PRIVATE_FLAG): Remove L suffix.
2430 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
2433 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2435 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
2437 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
2439 * target.c (gomp_map_pointer): New function abstracting out
2440 GOMP_MAP_POINTER handling.
2441 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
2444 2015-05-19 Jakub Jelinek <jakub@redhat.com>
2447 * testsuite/libgomp.c/pr66199-1.c: New test.
2448 * testsuite/libgomp.c/pr66199-2.c: New test.
2449 * testsuite/libgomp.c++/pr66199-1.C: New test.
2450 * testsuite/libgomp.c++/pr66199-2.C: New test.
2451 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
2452 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
2454 2015-05-19 Julian Brown <julian@codesourcery.com>
2456 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
2459 2015-05-13 Jakub Jelinek <jakub@redhat.com>
2462 * testsuite/libgomp.c/pr66133.c: New test.
2464 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2466 * Makefile.in: Regenerated with automake-1.11.6.
2467 * aclocal.m4: Likewise.
2468 * config.h.in: Likewise.
2469 * configure: Likewise.
2470 * testsuite/Makefile.in: Likewise.
2472 2015-05-08 Jason Merrill <jason@redhat.com>
2474 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
2477 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
2479 2015-05-06 Julian Brown <julian@codesourcery.com>
2481 * oacc-init.c (acc_device_lock): Add explanatory comment.
2482 (resolve_device): Add comment about locking requirement.
2483 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
2484 gomp_init_device and gomp_fini_device calls.
2485 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
2486 (acc_get_device_num, acc_set_device_num): Add locking around
2487 resolve_device and gomp_init_device calls.
2489 2015-05-06 Julian Brown <julian@codesourcery.com>
2491 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
2492 goacc_thread_lock on error paths.
2493 * oacc-mem.c (lookup_host): Remove locking from function. Note
2494 locking requirement for caller in function comment.
2495 (lookup_dev): Likewise.
2496 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
2497 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
2498 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
2501 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
2505 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
2506 don't expect "0x" prefix for "%p" format specifier, don't expect
2507 "(nil)" for NULL pointer.
2508 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2509 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2510 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2511 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2512 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2513 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2514 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2515 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2516 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2517 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2518 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2519 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2520 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2521 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2522 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2523 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2524 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2525 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2526 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2527 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2528 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2529 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2530 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2531 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2532 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2533 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2534 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2535 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2536 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
2537 accurately specify what we're looking for.
2538 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2539 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2540 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2541 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2542 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2544 2015-04-30 James Norris <jnorris@codesourcery.com>
2547 * testsuite/lib/libgomp.exp
2548 (check_effective_target_openacc_host_selected)
2549 (check_effective_target_openacc_host_nonshm_selected): New
2551 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
2553 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
2554 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
2555 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2556 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2557 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2558 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2559 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2560 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2561 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2562 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2563 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2564 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2565 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2566 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2567 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2568 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2569 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2570 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2571 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2572 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2573 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2574 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2575 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2576 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2577 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2578 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2579 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2580 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2581 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2582 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2583 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2584 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2585 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2586 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2587 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2588 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2589 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2590 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2591 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2592 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2593 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2594 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2595 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2597 2015-04-08 Julian Brown <julian@codesourcery.com>
2599 * libgomp.h (target_mem_desc: Remove mem_map field.
2600 (acc_dispatch_t): Remove open_device_func, close_device_func,
2601 get_device_num_func, set_device_num_func, target_data members.
2602 Change create_thread_data_func argument to device number instead of
2604 * oacc-async.c (assert.h): Include.
2605 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
2606 (acc_wait_all, acc_wait_all_async): Use current host thread's
2607 active device, not base_dev.
2608 * oacc-cuda.c (acc_get_current_cuda_device)
2609 (acc_get_current_cuda_context, acc_get_cuda_stream)
2610 (acc_set_cuda_stream): Likewise.
2611 * oacc-host.c (host_dispatch): Don't set open_device_func,
2612 close_device_func, get_device_num_func or set_device_num_func.
2613 * oacc-init.c (base_dev, init_key): Remove.
2614 (cached_base_dev): New.
2615 (name_of_acc_device_t): New.
2616 (acc_init_1): Initialise default-numbered device, not zeroth.
2617 (acc_shutdown_1): Close all devices of a given type.
2618 (goacc_destroy_thread): Don't use base_dev.
2619 (lazy_open, lazy_init, lazy_init_and_open): Remove.
2620 (goacc_attach_host_thread_to_device): New.
2621 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
2622 (acc_get_num_devices): Don't use base_dev.
2623 (acc_set_device_type): Reimplement.
2624 (acc_get_device_type): Don't use base_dev.
2625 (acc_get_device_num): Tweak logic.
2626 (acc_set_device_num): Likewise.
2627 (acc_on_device): Use acc_get_device_type.
2628 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
2629 (goacc_lazy_initialize): Reimplement with acc_init and
2630 goacc_attach_host_thread_to_device.
2631 * oacc-int.h (goacc_thread): Add base_dev field.
2632 (base_dev): Remove extern declaration.
2633 (goacc_attach_host_thread_to_device): Add prototype.
2634 * oacc-mem.c (acc_malloc): Use current thread's device instead of
2636 (acc_free): Likewise.
2637 (acc_memcpy_to_device): Likewise.
2638 (acc_memcpy_from_device): Likewise.
2639 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
2640 goacc_lazy_initialize (throughout).
2641 (GOACC_parallel): Use tgt_offset to locate target functions.
2642 * target.c (gomp_map_vars): Don't set tgt->mem_map.
2643 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
2644 (gomp_load_plugin_for_device): Remove open_device, close_device,
2645 get_device_num, set_device_num openacc hook initialisation. Don't set
2646 openacc.target_data.
2647 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
2648 (GOMP_OFFLOAD_openacc_close_device)
2649 (GOMP_OFFLOAD_openacc_get_device_num)
2650 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
2651 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
2653 * plugin/plugin-nvptx.c (ptx_inited): Remove.
2654 (instantiated_devices, ptx_dev_lock): New.
2655 (struct ptx_image_data): New.
2656 (ptx_devices, ptx_images, ptx_image_lock): New.
2657 (fini_streams_for_device): Reorder cuStreamDestroy call.
2658 (nvptx_get_num_devices): Remove forward declaration.
2659 (nvptx_init): Change return type to bool.
2660 (nvptx_fini): Remove.
2661 (nvptx_attach_host_thread_to_device): New.
2662 (nvptx_open_device): Return struct ptx_device* instead of void*.
2663 (nvptx_close_device): Change argument type to struct ptx_device*,
2664 return type to void.
2665 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
2666 (kernel_target_data, kernel_host_table): Remove static globals.
2667 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
2668 (GOMP_OFFLOAD_init_device): Reimplement.
2669 (GOMP_OFFLOAD_fini_device): Likewise.
2670 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
2671 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
2672 (GOMP_OFFLOAD_host2dev): Use ORD argument.
2673 (GOMP_OFFLOAD_openacc_open_device)
2674 (GOMP_OFFLOAD_openacc_close_device)
2675 (GOMP_OFFLOAD_openacc_set_device_num)
2676 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
2677 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
2681 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
2683 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
2685 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
2686 * libgomp.h (struct gomp_memory_mapping): Remove.
2687 (struct target_mem_desc): Change type of mem_map from
2688 gomp_memory_mapping * to splay_tree_s *.
2689 (struct gomp_device_descr): Remove register_image_func, get_table_func.
2690 Add load_image_func, unload_image_func.
2691 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
2692 Remove offload_regions_registered.
2693 (gomp_init_tables): Remove.
2694 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2696 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
2697 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
2698 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
2699 offload_regions_registered.
2700 Initialize load_image_func, unload_image_func, mem_map.root.
2701 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
2702 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
2703 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
2704 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
2705 gomp_memory_mapping *. Use dev's lock and splay_tree.
2706 (lookup_dev): Use dev's lock.
2707 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
2708 (acc_is_present): Likewise.
2709 (acc_map_data): Likewise.
2710 (acc_unmap_data): Likewise. Use dev's lock.
2711 (present_create_copy): Likewise.
2712 (delete_copyout): Pass dev to lookup_host instead of mem_map.
2713 (update_dev_host): Likewise.
2714 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
2715 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
2716 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
2717 (GOMP_OFFLOAD_get_table): Remove
2718 (GOMP_OFFLOAD_load_image): New function.
2719 (GOMP_OFFLOAD_unload_image): New function.
2720 * target.c (register_lock): New mutex for offload image registration.
2721 (num_devices): Do not guard with PLUGIN_SUPPORT.
2722 (gomp_realloc_unlock): New static function.
2723 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
2725 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
2726 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
2727 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
2729 (gomp_unmap_vars): Likewise.
2730 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
2731 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
2732 (gomp_offload_image_to_device): New static function.
2733 (GOMP_offload_register): Add mutex lock.
2734 Call gomp_offload_image_to_device for all initialized devices.
2735 Replace gomp_realloc with gomp_realloc_unlock.
2736 (GOMP_offload_unregister): New function.
2737 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
2738 get_table_func from the plugin with calls to init_device_func and
2739 gomp_offload_image_to_device.
2740 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2742 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
2743 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
2744 (GOMP_target_data): Do not call gomp_init_tables.
2745 (GOMP_target_update): Likewise. Remove argument from gomp_update.
2746 (gomp_load_plugin_for_device): Replace register_image and get_table
2747 with load_image and unload_image in DLSYM ().
2748 (gomp_register_images_for_device): Remove function.
2749 (gomp_target_init): Do not initialize current_device.mem_map.*,
2750 current_device.offload_regions_registered.
2751 Remove call to gomp_register_images_for_device.
2752 Do not free offload_images and num_offload_images.
2754 2015-03-30 Jakub Jelinek <jakub@redhat.com>
2757 * testsuite/libgomp.fortran/pr65597.f90: New test.
2759 2015-03-27 Tom de Vries <tom@codesourcery.com>
2762 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
2763 (init, check): New function.
2764 (foo): Change return type to void.
2765 (main): Call init and check.
2767 2015-03-27 Tom de Vries <tom@codesourcery.com>
2770 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
2771 (foo): Use M for non-inner loops to scale down test-case.
2773 2015-03-25 Kai Tietz <ktietz@redhat.com>
2776 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
2777 (GOACC_data_start): Likewise.
2778 * target.c (gomp_map_vars): Likewise.
2780 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
2782 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
2785 2015-03-19 Jakub Jelinek <jakub@redhat.com>
2787 * testsuite/libgomp.c/target-10.c: New test.
2788 * testsuite/libgomp.c++/target-4.C: New test.
2790 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
2792 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
2793 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
2795 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
2797 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
2798 * configure.ac (*-*-rtems*): Assume Pthread is supported.
2799 (pthread.h): Check for this header file.
2800 * configure: Regenerate.
2802 2015-02-25 Tom de Vries <tom@codesourcery.com>
2804 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
2805 (check_reduction_op, check_reduction_macro, max, min):
2807 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
2809 (main): Use new functions.
2811 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
2813 * target.c (gomp_load_plugin_for_device): Use const char * instead of
2814 char * for variables holding dlerror return values.
2817 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
2819 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
2821 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
2822 Cesar Philippidis <cesar@codesourcery.com>
2824 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
2825 GOACC_ctaid, and GOACC_nctaid routines.
2827 2015-02-11 Jakub Jelinek <jakub@redhat.com>
2830 * testsuite/libgomp.c/atomic-18.c: New test.
2831 * testsuite/libgomp.c++/atomic-16.C: New test.
2833 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2837 * testsuite/libgomp.c/pr64824.c: New test.
2838 * testsuite/libgomp.c/pr64868.c: New test.
2839 * testsuite/libgomp.c++/pr64824.C: New test.
2840 * testsuite/libgomp.c++/pr64868.C: New test.
2842 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
2845 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
2846 Link with -lpthread.
2847 * config/aix/plugin-suffix.h: Delete.
2849 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
2852 * configure.tgt (*-*-aix*): Use config_path "aix posix".
2853 (*-*-darwin*): Use config_path "bsd darwin posix".
2854 (*-*-hpux*): Use config_path "hpux posix".
2855 * target.c: Add include of plugin-suffix.h and use
2856 SONAME_SUFFIX macro.
2857 * config/aix/plugin-suffix.h: New file.
2858 * config/darwin/plugin-suffix.h: New file.
2859 * config/hpux/plugin-suffix.h: New file.
2860 * config/posix/plugin-suffix.h: New file.
2862 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2865 * libgomp.c/pr64734.c: New test.
2867 2015-01-23 Tom de Vries <tom@codesourcery.com>
2870 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
2872 2015-01-23 Tom de Vries <tom@codesourcery.com>
2875 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
2878 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2881 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
2882 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
2883 formal parameter. Update all users.
2884 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
2885 Document unused formal parameter.
2887 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
2889 * oacc-parallel.c: Don't include <alloca.h>.
2890 (GOACC_parallel): Use gomp_alloca instead of alloca.
2892 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
2894 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
2896 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2897 James Norris <jnorris@codesourcery.com>
2898 Tom de Vries <tom@codesourcery.com>
2899 Julian Brown <julian@codesourcery.com>
2900 Cesar Philippidis <cesar@codesourcery.com>
2901 Nathan Sidwell <nathan@codesourcery.com>
2902 Tobias Burnus <burnus@net-b.de>
2904 * Makefile.am (search_path): Add $(top_srcdir)/../include.
2905 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
2906 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
2907 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
2908 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
2909 Include $(top_srcdir)/plugin/Makefrag.am.
2910 (nodist_libsubinclude_HEADERS): Add openacc.h.
2911 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
2912 openacc.f90, openacc.mod, openacc_kinds.mod.
2913 (omp_lib.mod): Generalize into...
2914 (%.mod): ... this new rule.
2915 (openacc_kinds.mod, openacc.mod): New rules.
2916 * plugin/configfrag.ac: New file.
2917 * configure.ac: Move plugin/offloading support into it. Include
2918 it. Instantiate testsuite/libgomp-test-support.pt.exp.
2919 * plugin/Makefrag.am: New file.
2920 * testsuite/Makefile.am (OFFLOAD_TARGETS)
2921 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
2923 (libgomp-test-support.exp): New rule.
2924 (all-local): Depend on it.
2925 * Makefile.in: Regenerate.
2926 * testsuite/Makefile.in: Regenerate.
2927 * config.h.in: Likewise.
2928 * configure: Likewise.
2929 * configure.tgt: Harden shell syntax.
2930 * env.c: Include "oacc-int.h".
2931 (parse_acc_device_type): New function.
2932 (gomp_debug_var, goacc_device_type, goacc_device_num): New
2934 (initialize_env): Initialize those. Call
2935 goacc_runtime_initialize.
2936 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
2937 (gomp_fatal): Call gomp_vfatal.
2938 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
2939 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
2940 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
2941 (splay_tree_node, splay_tree, splay_tree_key)
2942 (struct target_mem_desc, struct splay_tree_key_s)
2943 (struct gomp_memory_mapping, struct acc_dispatch_t)
2944 (struct gomp_device_descr, gomp_acc_insert_pointer)
2945 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
2946 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
2947 (gomp_free_memmap, gomp_fini_device): New declarations.
2948 (gomp_vdebug, gomp_debug): New macros.
2949 Include "splay-tree.h".
2950 * libgomp.map (OACC_2.0): New symbol version. Use for
2951 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
2952 acc_set_device_type_h_, acc_get_device_type,
2953 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
2954 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
2955 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
2956 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
2957 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
2958 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
2959 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
2960 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
2961 acc_copyin_array_h_, acc_present_or_copyin,
2962 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
2963 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
2964 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
2965 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
2966 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
2967 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
2968 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
2969 acc_update_device, acc_update_device_32_h_,
2970 acc_update_device_64_h_, acc_update_device_array_h_,
2971 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
2972 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
2973 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
2974 acc_is_present_64_h_, acc_is_present_array_h_,
2975 acc_memcpy_to_device, acc_memcpy_from_device,
2976 acc_get_current_cuda_device, acc_get_current_cuda_context,
2977 acc_get_cuda_stream, acc_set_cuda_stream.
2978 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
2979 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
2980 GOACC_update, GOACC_wait, GOACC_get_thread_num,
2981 GOACC_get_num_threads.
2982 (GOMP_PLUGIN_1.0): New symbol version. Use for
2983 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
2984 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
2985 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
2986 GOMP_PLUGIN_acc_thread.
2987 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
2988 environment variable.
2989 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
2990 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
2991 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
2992 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
2993 (splay_tree_remove): New declarations.
2994 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
2995 (splay_tree_remove, splay_tree_lookup): Move into...
2996 * splay-tree.c: ... this new file.
2997 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
2998 (splay_tree_node, splay_tree, splay_tree_key)
2999 (struct target_mem_desc, struct splay_tree_key_s)
3000 (struct gomp_device_descr): Don't declare.
3001 (num_devices_openmp): New variable.
3002 (gomp_get_num_devices ): Use it.
3003 (gomp_init_targets_once): New function.
3004 (gomp_get_num_devices ): Use it.
3005 (get_kind, gomp_copy_from_async, gomp_free_memmap)
3006 (gomp_fini_device, gomp_register_image_for_device): New functions.
3007 (gomp_map_vars): Add devaddrs parameter.
3008 (gomp_update): Add mm parameter.
3009 (gomp_init_device): Move most of it into...
3010 (gomp_init_tables): ... this new function.
3011 (gomp_register_images_for_device): Remove function.
3012 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
3013 Make them hidden instead of static.
3014 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
3015 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
3016 (GOMP_target_end_data, GOMP_target_update)
3017 (gomp_load_plugin_for_device, gomp_target_init): Update for
3019 * oacc-async.c: New file.
3020 * oacc-cuda.c: Likewise.
3021 * oacc-host.c: Likewise.
3022 * oacc-init.c: Likewise.
3023 * oacc-int.h: Likewise.
3024 * oacc-mem.c: Likewise.
3025 * oacc-parallel.c: Likewise.
3026 * oacc-plugin.c: Likewise.
3027 * oacc-plugin.h: Likewise.
3028 * oacc-ptx.h: Likewise.
3029 * openacc.f90: Likewise.
3030 * openacc.h: Likewise.
3031 * openacc_lib.h: Likewise.
3032 * plugin/plugin-host.c: Likewise.
3033 * plugin/plugin-nvptx.c: Likewise.
3034 * libgomp-plugin.c: Likewise.
3035 * libgomp-plugin.h: Likewise.
3036 * libgomp_target.h: Remove file after merging content into the
3037 former file. Update all users.
3038 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
3039 (offload_targets_s, offload_targets_s_openacc): New variables.
3040 (check_effective_target_openacc_nvidia_accel_present)
3041 (check_effective_target_openacc_nvidia_accel_selected): New
3043 (libgomp_init): Update for OpenACC changes.
3044 * testsuite/libgomp-test-support.exp.in: New file.
3045 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
3046 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3047 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3048 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
3049 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
3050 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
3051 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
3052 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
3053 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3054 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
3055 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
3056 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
3057 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
3058 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3059 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3060 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3061 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3062 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3063 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3064 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3065 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
3066 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
3067 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3068 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
3069 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3070 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3071 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3072 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3073 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3074 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3075 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3076 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3077 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3078 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
3079 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
3080 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
3081 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
3082 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
3083 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
3084 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3085 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3086 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3087 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3088 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3089 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3090 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
3091 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
3092 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3093 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3094 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3095 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3096 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3097 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3098 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
3099 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
3100 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3101 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3102 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
3103 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3104 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
3105 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3106 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
3107 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3108 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
3109 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
3110 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
3111 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
3112 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
3113 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
3114 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
3115 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
3116 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3117 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3118 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3119 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
3120 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
3121 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3122 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3123 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
3124 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
3125 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
3126 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
3127 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3128 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3129 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3130 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
3131 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
3132 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
3133 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3134 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
3135 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
3136 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
3137 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
3138 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
3139 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
3140 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
3141 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
3142 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
3143 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
3144 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
3145 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
3146 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
3147 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
3148 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
3149 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
3150 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
3151 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
3152 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
3153 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
3154 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
3155 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
3156 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3157 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
3158 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
3159 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3160 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3161 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
3162 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3163 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
3164 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
3165 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
3166 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
3167 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
3168 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
3169 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3170 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
3171 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3172 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
3173 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
3174 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
3175 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
3176 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
3177 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
3178 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
3179 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
3180 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3181 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3182 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3183 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3184 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
3186 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
3187 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
3188 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
3189 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3190 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
3191 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3192 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3193 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3194 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3195 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3196 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3197 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3198 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3199 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3200 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3201 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3202 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3203 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3204 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3205 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3206 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3207 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3208 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3209 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3210 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3211 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3212 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3213 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3214 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3215 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3216 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3217 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3218 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3219 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3220 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3221 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3222 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3223 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3224 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3225 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3226 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3227 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3228 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3229 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3230 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3231 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3232 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3233 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3234 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3235 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3236 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3237 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3238 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3239 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3240 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3241 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3242 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3243 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3244 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3245 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3247 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3248 Julian Brown <julian@codesourcery.com>
3249 David Malcolm <dmalcolm@redhat.com>
3251 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
3252 to "GNU Offloading and Multi Processing Runtime Library". Change
3254 * configure: Regenerate.
3255 * libgomp.texi: Update.
3257 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3259 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
3261 * configure: Regenerate.
3263 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
3264 "intelmic" in $offload_targets.
3266 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3268 Update copyright years.
3270 * libgomp.texi: Bump @copying's copyright year.
3272 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3274 * testsuite/lib/libgomp.exp: Load target-utils.exp.
3275 Move load of target-supportes.exp earlier.
3277 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
3279 * testsuite/libgomp.c/target-9.c: New test.
3281 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
3283 * config.h.in: Regenerate.
3284 * configure: Regenerate.
3285 * configure.ac: Add GCC_CHECK_EMUTLS.
3286 * libgomp.h: Add check for USE_EMUTLS: this case
3287 is equal to HAVE_TLS.
3290 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
3292 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
3294 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
3295 Ilya Verbin <ilya.verbin@intel.com>
3297 * testsuite/libgomp.c/target-critical-1.c: New test.
3299 2014-11-26 Jakub Jelinek <jakub@redhat.com>
3301 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
3302 to dg-options unless expensive testing is on.
3303 (TESTITERS): Define to N if not defined.
3304 (main): Use TESTITERS instead of N.
3305 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
3306 dg-additional-options depending on whether expensive testing is on.
3307 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
3308 Decrease N to 100000 and CHUNKSZ to 10000.
3310 2014-11-24 Jakub Jelinek <jakub@redhat.com>
3313 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
3314 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3316 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
3318 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
3320 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3323 * configure: Regenerated.
3325 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
3327 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
3328 vect_simd_clones effective target.
3329 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
3331 2014-11-14 Jakub Jelinek <jakub@redhat.com>
3333 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
3334 of 32 as block_size.
3335 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
3336 instead of 32 as block_size.
3338 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
3339 Ilya Verbin <ilya.verbin@intel.com>
3341 * Makefile.in: Regenerate.
3342 * configure: Regenerate.
3343 * configure.ac: Set up offload_additional_options,
3344 offload_additional_lib_paths and offload_targets.
3345 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
3346 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
3347 * testsuite/Makefile.in: Regenerate.
3348 * testsuite/lib/libgomp.exp (libgomp_init): Append
3349 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
3350 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
3351 build directory to LD_LIBRARY_PATH for intelmic offload targets.
3353 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
3354 Ilya Verbin <ilya.verbin@intel.com>
3355 Kirill Yukhin <kirill.yukhin@intel.com>
3356 Ilya Tocar <ilya.tocar@intel.com>
3358 * testsuite/lib/libgomp.exp
3359 (check_effective_target_offload_device): New.
3360 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
3361 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
3362 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
3363 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
3364 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
3365 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
3366 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
3367 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
3368 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
3369 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
3370 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
3371 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
3372 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
3373 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
3374 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
3375 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
3376 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
3377 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
3378 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
3379 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
3380 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
3381 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
3382 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
3383 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
3384 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
3385 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
3386 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
3387 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
3388 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
3389 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
3390 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
3391 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
3392 * testsuite/libgomp.c/target-7.c: Fix test.
3393 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
3394 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
3395 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
3396 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
3397 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
3398 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
3399 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
3400 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
3401 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
3402 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
3403 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
3404 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
3405 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
3406 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
3407 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
3408 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
3409 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
3410 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
3411 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
3412 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
3413 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
3414 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
3415 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
3416 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
3417 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
3418 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
3419 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
3420 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
3421 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
3422 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
3423 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
3425 2014-11-13 Jakub Jelinek <jakub@redhat.com>
3426 Ilya Verbin <ilya.verbin@intel.com>
3427 Thomas Schwinge <thomas@codesourcery.com>
3428 Andrey Turetskiy <andrey.turetskiy@intel.com>
3430 * libgomp.map (GOMP_4.0.1): New symbol version.
3431 Add GOMP_offload_register.
3432 * libgomp_target.h: New file.
3433 * splay-tree.h: New file.
3434 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
3435 (gomp_target_init): New forward declaration.
3436 (gomp_is_initialized): New static variable.
3437 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
3438 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
3440 (offload_images, num_offload_images, devices, num_devices): New static
3442 (splay_compare): New static function.
3443 (struct gomp_device_descr): New structure.
3444 (gomp_get_num_devices): Call gomp_target_init.
3445 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
3446 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
3447 (GOMP_offload_register): New function.
3448 (GOMP_target): Arrange for host callback to be performed in a separate
3449 initial thread and contention group, inheriting ICVs from
3450 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
3451 Add device initialization and lookup for target function in splay tree.
3452 (GOMP_target_data): Add device initialization and call gomp_map_vars.
3453 (GOMP_target_end_data): Call gomp_unmap_vars.
3454 (GOMP_target_update): Add device initialization and call gomp_update.
3455 (gomp_load_plugin_for_device, gomp_register_images_for_device)
3456 (gomp_target_init): New static functions.
3458 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
3459 Thomas Schwinge <thomas@codesourcery.com>
3460 Ilya Verbin <ilya.verbin@intel.com>
3461 Andrey Turetskiy <andrey.turetskiy@intel.com>
3463 * config.h.in: Regenerate.
3464 * configure: Regenerate.
3465 * configure.ac: Check for libdl, required for plugin support.
3466 (PLUGIN_SUPPORT): Define if plugins are supported.
3467 (enable_offload_targets): Support Intel MIC targets.
3468 (OFFLOAD_TARGETS): List of target names suitable for offloading.
3470 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3473 * configure: Regenerate.
3475 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3477 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
3479 2014-10-06 Marek Polacek <polacek@redhat.com>
3481 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
3482 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
3483 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
3484 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3486 2014-10-06 Marek Polacek <polacek@redhat.com>
3488 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
3489 * testsuite/libgomp.c/nqueens-1.c: Likewise.
3490 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3491 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3492 * testsuite/libgomp.c/pr36802-2.c: Likewise.
3493 * testsuite/libgomp.c/pr36802-3.c: Likewise.
3494 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3495 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3496 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
3497 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
3498 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
3499 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
3500 * testsuite/libgomp.c/omp-single-1.c: Likewise.
3501 * testsuite/libgomp.c/omp-single-2.c: Likewise.
3502 * testsuite/libgomp.c/omp_matvec.c: Likewise.
3503 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
3504 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
3505 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
3508 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3511 * testsuite/libgomp.c/pr61200.c: New test.
3513 2014-09-18 Jakub Jelinek <jakub@redhat.com>
3516 * testsuite/libgomp.c++/pr63248.C: New test.
3518 2014-08-04 Jakub Jelinek <jakub@redhat.com>
3520 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
3521 is not zero, but taskgroup->children is NULL and there are
3522 any task->children, schedule those instead of waiting.
3523 * testsuite/libgomp.c/depend-6.c: New test.
3524 * testsuite/libgomp.c/depend-7.c: New test.
3525 * testsuite/libgomp.c/depend-8.c: New test.
3526 * testsuite/libgomp.c/depend-9.c: New test.
3527 * testsuite/libgomp.c/depend-10.c: New test.
3529 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3531 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
3532 (struct gomp_taskwait): New type.
3533 (struct gomp_task): Add taskwait and parent_depends_on, remove
3534 in_taskwait and taskwait_sem fields.
3535 (gomp_finish_task): Don't destroy taskwait_sem.
3536 * task.c (gomp_init_task): Don't init in_taskwait, instead init
3537 taskwait and parent_depends_on.
3538 (GOMP_task): For if (0) tasks with depend clause that depend on
3539 earlier tasks don't defer them, instead call
3540 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
3541 Initialize redundant_out field, for redundant out entries just
3542 move them at the end of linked list instead of removing them
3543 completely, and set redundant_out flag instead of redundant.
3544 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
3546 (gomp_task_run_post_handle_dependers): If parent is in
3547 gomp_task_maybe_wait_for_dependencies and newly runnable task
3548 is not parent_depends_on, queue it in parent->children linked
3549 list after all runnable tasks with parent_depends_on set.
3550 Adjust for addition of taskwait indirection.
3551 (gomp_task_run_post_remove_parent): If parent is in
3552 gomp_task_maybe_wait_for_dependencies and task to be removed
3553 is parent_depends_on, decrement n_depend and if needed awake
3554 parent. Adjust for addition of taskwait indirection.
3555 (GOMP_taskwait): Adjust for addition of taskwait indirection.
3556 (gomp_task_maybe_wait_for_dependencies): New function.
3557 * testsuite/libgomp.c/depend-5.c: New test.
3559 2014-07-13 Tobias Burnus <burnus@net-b.de>
3561 * testsuite/libgomp.fortran/pr34020.f90: Make compile
3562 with TS 18508/Fortran 2015.
3564 2014-07-06 Marek Polacek <polacek@redhat.com>
3567 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
3569 2014-07-03 Jakub Jelinek <jakub@redhat.com>
3571 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
3572 matches regex $lang_source_re, add $lang_include_flags to options.
3573 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
3574 * testsuite/libgomp.c++/c++.exp: Likewise.
3575 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
3576 and lang_include_flags instead of adding -fintrinsic-modules-path= to
3578 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
3580 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
3582 * testsuite/libgomp.fortran/fortran.exp: Explain
3583 gfortran-dg-runtest usage.
3585 2014-06-25 Jakub Jelinek <jakub@redhat.com>
3587 * testsuite/libgomp.fortran/simd5.f90: New test.
3588 * testsuite/libgomp.fortran/simd6.f90: New test.
3589 * testsuite/libgomp.fortran/simd7.f90: New test.
3591 2014-06-24 Jakub Jelinek <jakub@redhat.com>
3593 * testsuite/libgomp.c/for-2.c: Define SC to static for
3594 #pragma omp for simd testing.
3595 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
3596 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
3598 * testsuite/libgomp.c/simd-14.c: New test.
3599 * testsuite/libgomp.c/simd-15.c: New test.
3600 * testsuite/libgomp.c/simd-16.c: New test.
3601 * testsuite/libgomp.c/simd-17.c: New test.
3602 * testsuite/libgomp.c++/for-10.C: Define SC to static for
3603 #pragma omp for simd testing.
3604 * testsuite/libgomp.c++/simd10.C: New test.
3605 * testsuite/libgomp.c++/simd11.C: New test.
3606 * testsuite/libgomp.c++/simd12.C: New test.
3607 * testsuite/libgomp.c++/simd13.C: New test.
3609 * testsuite/libgomp.fortran/aligned1.f03: New test.
3610 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
3611 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
3612 tasks with !$omp parallel !$omp single.
3613 * testsuite/libgomp.fortran/target8.f90: New test.
3614 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
3615 not to use trim in the combiner, instead call elemental function.
3616 (fn): New elemental function.
3617 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
3619 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
3621 * testsuite/libgomp.fortran/udr12.f90: New test.
3622 * testsuite/libgomp.fortran/udr13.f90: New test.
3623 * testsuite/libgomp.fortran/udr14.f90: New test.
3624 * testsuite/libgomp.fortran/udr15.f90: New test.
3626 2014-06-18 Jakub Jelinek <jakub@redhat.com>
3628 * omp_lib.f90.in (openmp_version): Set to 201307.
3629 * omp_lib.h.in (openmp_version): Likewise.
3630 * testsuite/libgomp.c/target-8.c: New test.
3631 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
3632 and inbranch clauses.
3633 * testsuite/libgomp.fortran/depend-3.f90: New test.
3634 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
3636 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3637 * testsuite/libgomp.fortran/target1.f90: New test.
3638 * testsuite/libgomp.fortran/target2.f90: New test.
3639 * testsuite/libgomp.fortran/target3.f90: New test.
3640 * testsuite/libgomp.fortran/target4.f90: New test.
3641 * testsuite/libgomp.fortran/target5.f90: New test.
3642 * testsuite/libgomp.fortran/target6.f90: New test.
3643 * testsuite/libgomp.fortran/target7.f90: New test.
3645 2014-06-10 Jakub Jelinek <jakub@redhat.com>
3648 * testsuite/libgomp.fortran/allocatable9.f90: New test.
3649 * testsuite/libgomp.fortran/allocatable10.f90: New test.
3650 * testsuite/libgomp.fortran/allocatable11.f90: New test.
3651 * testsuite/libgomp.fortran/allocatable12.f90: New test.
3652 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
3653 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
3654 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
3655 * testsuite/libgomp.fortran/associate1.f90: New test.
3656 * testsuite/libgomp.fortran/associate2.f90: New test.
3657 * testsuite/libgomp.fortran/procptr1.f90: New test.
3659 2014-06-06 Jakub Jelinek <jakub@redhat.com>
3661 * testsuite/libgomp.fortran/simd1.f90: New test.
3662 * testsuite/libgomp.fortran/udr1.f90: New test.
3663 * testsuite/libgomp.fortran/udr2.f90: New test.
3664 * testsuite/libgomp.fortran/udr3.f90: New test.
3665 * testsuite/libgomp.fortran/udr4.f90: New test.
3666 * testsuite/libgomp.fortran/udr5.f90: New test.
3667 * testsuite/libgomp.fortran/udr6.f90: New test.
3668 * testsuite/libgomp.fortran/udr7.f90: New test.
3669 * testsuite/libgomp.fortran/udr8.f90: New test.
3670 * testsuite/libgomp.fortran/udr9.f90: New test.
3671 * testsuite/libgomp.fortran/udr10.f90: New test.
3672 * testsuite/libgomp.fortran/udr11.f90: New test.
3674 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
3676 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
3677 vect_simd_clones effective target.
3678 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
3680 2014-05-21 Jakub Jelinek <jakub@redhat.com>
3683 * testsuite/libgomp.c++/simd-9.C: New test.
3685 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
3687 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
3688 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
3689 texts according to their @menu entry positions.
3691 2014-05-11 Jakub Jelinek <jakub@redhat.com>
3693 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
3694 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
3695 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
3696 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
3697 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
3698 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
3699 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
3700 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
3701 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
3702 * testsuite/libgomp.fortran/depend-1.f90: New test.
3703 * testsuite/libgomp.fortran/depend-2.f90: New test.
3704 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
3705 * testsuite/libgomp.fortran/simd1.f90: New test.
3706 * testsuite/libgomp.fortran/simd2.f90: New test.
3707 * testsuite/libgomp.fortran/simd3.f90: New test.
3708 * testsuite/libgomp.fortran/simd4.f90: New test.
3709 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
3711 2014-05-02 Jakub Jelinek <jakub@redhat.com>
3713 * testsuite/libgomp.c/simd-10.c: New test.
3714 * testsuite/libgomp.c/simd-11.c: New test.
3715 * testsuite/libgomp.c/simd-12.c: New test.
3716 * testsuite/libgomp.c/simd-13.c: New test.
3718 2014-04-24 Jakub Jelinek <jakub@redhat.com>
3720 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
3721 atomic type clauses in any order and optional comma in between.
3722 * testsuite/libgomp.c++/atomic-15.C: Likewise.
3723 * testsuite/libgomp.c/atomic-17.c: Likewise.
3725 * testsuite/libgomp.c/simd-7.c: New test.
3726 * testsuite/libgomp.c/simd-8.c: New test.
3727 * testsuite/libgomp.c/simd-9.c: New test.
3728 * testsuite/libgomp.c/loop-16.c: New test.
3730 2014-04-02 Richard Henderson <rth@redhat.com>
3732 * config/linux/futex.h (futex_wait): Get error value from errno.
3733 (futex_wake): Likewise.
3735 2014-03-25 Jakub Jelinek <jakub@redhat.com>
3738 * testsuite/libgomp.c++/udr-11.C: New test.
3739 * testsuite/libgomp.c++/udr-12.C: New test.
3740 * testsuite/libgomp.c++/udr-13.C: New test.
3741 * testsuite/libgomp.c++/udr-14.C: New test.
3742 * testsuite/libgomp.c++/udr-15.C: New test.
3743 * testsuite/libgomp.c++/udr-16.C: New test.
3744 * testsuite/libgomp.c++/udr-17.C: New test.
3745 * testsuite/libgomp.c++/udr-18.C: New test.
3746 * testsuite/libgomp.c++/udr-19.C: New test.
3748 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3750 Update copyright years
3752 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3754 * hashtab.h: Use the standard form for the copyright notice.
3756 2014-01-02 Tobias Burnus <burnus@net-b.de>
3758 * libgomp.texi: Bump @copying's copyright year.
3760 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
3762 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
3763 alloca () with __builtin_alloca ().
3764 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
3765 * testsuite/libgomp.c/lock-3.c: Likewise.
3766 * testsuite/libgomp.c/pr48591.c: Likewise.
3768 2013-12-17 Jakub Jelinek <jakub@redhat.com>
3771 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
3774 2013-12-16 Jakub Jelinek <jakub@redhat.com>
3777 * testsuite/libgomp.c/pr58756.c: New test.
3779 2013-12-12 Jakub Jelinek <jakub@redhat.com>
3782 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
3785 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
3787 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
3789 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
3790 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
3791 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3792 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
3795 * libgomp_g.h: Include <stddef.h> for size_t.
3797 * libgomp.spec.in: Update comment about libgomp's dependencies.
3798 * configure.ac: Likewise.
3799 * configure: Regenerate.
3801 2013-10-16 Tobias Burnus <burnus@net-b.de>
3803 * libgomp.texi: (Runtime Library Routines): Update references for
3804 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
3805 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
3806 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
3807 (Environment Variables): Update references for OpenMP 4.0. Add
3808 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
3809 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
3812 2013-10-14 Jakub Jelinek <jakub@redhat.com>
3814 * env.c (parse_bind_var): Initialize value to avoid
3815 (false positive) warning.
3817 2013-10-12 Jakub Jelinek <jakub@redhat.com>
3820 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
3822 (gomp_init_num_threads): Move i variable declaration into
3823 #ifdef CPU_ALLOC_SIZE block.
3824 * config/linux/affinity.c (gomp_affinity_init_level): Test
3825 gomp_places_list_len == 0 rather than gomp_places_list == 0
3826 when checking for topology reading error.
3827 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
3828 * env.c (parse_affinity): Add ignore argument, if true, don't populate
3829 gomp_places_list, only parse env var and always return false.
3830 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
3831 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
3832 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
3833 and either of these variables were parsed correctly into a places
3836 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
3837 Jakub Jelinek <jakub@redhat.com>
3839 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
3840 of 5 loopfn matches.
3841 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3842 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3843 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
3844 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3845 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3846 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3847 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3848 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3850 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
3852 * Makefile.am (omp_lib.mod): Streamline rule.
3853 * Makefile.in: Regenerate.
3855 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
3858 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
3859 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3860 * testsuite/libgomp.fortran/lib2.f: Likewise.
3861 * testsuite/libgomp.fortran/lib3.f: Likewise.
3863 * configure.ac: Typo fix.
3864 * configure: Regenerate.
3866 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
3867 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3869 * omp.h.in: Don't touch the user's namespace.
3871 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3872 Tobias Burnus <burnus@net-b.de>
3873 Richard Henderson <rth@redhat.com>
3875 * target.c: New file.
3876 * Makefile.am (libgomp_la_SOURCES): Add target.c.
3877 * Makefile.in: Regenerated.
3878 * libgomp_g.h (GOMP_task): Add depend argument.
3879 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3880 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3881 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
3882 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
3883 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
3884 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
3885 GOMP_taskgroup_start, GOMP_taskgroup_end,
3886 GOMP_parallel_sections): New prototypes.
3887 * fortran.c (omp_is_initial_device): Add ialias_redirect.
3888 (omp_is_initial_device_): New function.
3889 (ULP, STR1, STR2, ialias_redirect): Removed.
3890 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
3891 omp_set_default_device_8_, omp_get_default_device_,
3892 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
3894 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3895 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3896 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
3898 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
3899 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
3900 omp_set_default_device, omp_set_default_device_,
3901 omp_set_default_device_8_, omp_get_default_device,
3902 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
3903 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
3904 omp_get_team_num_): Export @@OMP_4.0.
3905 * team.c (struct gomp_thread_start_data): Add place field.
3906 (gomp_thread_start): Clear thr->thread_pool and
3907 thr->task before returning. Use gomp_team_barrier_wait_final
3908 instead of gomp_team_barrier_wait. Initialize thr->place.
3909 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
3910 team_cancelled and task_queued_count fields.
3911 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
3912 before calling pthread_exit.
3913 (gomp_free_thread): No longer static. Use
3914 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
3915 (gomp_team_start): Add flags argument. Set
3916 thr->thread_pool->threads_busy to nthreads immediately after creating
3917 new pool. Use gomp_managed_threads_lock instead of
3918 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
3919 (gomp_team_end): Use gomp_managed_threads_lock instead of
3920 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
3921 of gomp_team_barrier_wait. If team->team_cancelled, call
3922 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
3923 rather than thr->ts.work_share.
3924 (initialize_team): Don't call gomp_sem_init here.
3925 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
3927 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
3928 * env.c (gomp_global_icv): Add default_device_var, target_data and
3929 bind_var initializers.
3930 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
3931 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
3932 gomp_places_list_len): New variables.
3933 (parse_bind_var, parse_one_place, parse_places_var): New functions.
3934 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
3936 (gomp_cancel_var): New global variable.
3937 (parse_int): New function.
3938 (handle_omp_display_env): New function.
3939 (initialize_env): Use it. Initialize default_device_var.
3940 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
3941 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
3942 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
3943 been successfully parsed (and call gomp_init_affinity in that case).
3944 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3945 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3946 omp_get_team_num, omp_is_initial_device): New functions.
3947 * libgomp.h: Include stdlib.h.
3948 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
3950 (struct target_mem_desc): Forward declare.
3951 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
3952 and thread_limit_var fields.
3953 (gomp_get_num_devices): New prototype.
3954 (gomp_cancel_var): New extern decl.
3955 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
3956 team_cancelled and task_queued_count fields. Add comments about
3957 task_{,queued_,running_}count.
3958 (gomp_cancel_kind): New enum.
3959 (gomp_work_share_end_cancel): New prototype.
3960 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
3961 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
3963 (struct gomp_taskgroup): New type.
3964 (struct gomp_task_depend_entry,
3965 struct gomp_dependers_vec): New types.
3966 (gomp_finish_task): Free depend_hash if non-NULL.
3967 (struct gomp_team_state): Add place_partition_off
3968 and place_partition_len fields.
3969 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
3970 gomp_places_list_len): New extern decls.
3971 (struct gomp_thread): Add place field.
3972 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
3973 (gomp_init_thread_affinity): Add place argument.
3974 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
3975 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
3976 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
3977 gomp_affinity_init_level, gomp_affinity_print_place): New
3979 (gomp_team_start): Add flags argument.
3980 (gomp_thread_limit_var, gomp_remaining_threads_count,
3981 gomp_remaining_threads_lock): Remove.
3982 (gomp_managed_threads_lock): New variable.
3983 (struct gomp_thread_pool): Add threads_busy field.
3984 (gomp_free_thread): New prototype.
3985 * task.c: Include hashtab.h.
3986 (hash_entry_type): New typedef.
3987 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
3988 (gomp_init_task): Clear dependers, depend_hash, depend_count,
3989 copy_ctors_done and taskgroup fields.
3990 (GOMP_task): Add depend argument, handle depend clauses. If
3991 gomp_team_barrier_cancelled or if it's taskgroup has been
3992 cancelled, don't queue or start new tasks. Set copy_ctors_done
3993 field if needed. Initialize taskgroup field. If copy_ctors_done
3994 and already cancelled, don't discard the task. If taskgroup is
3995 non-NULL, enqueue the task into taskgroup queue. Increment
3996 num_children field in taskgroup. Increment task_queued_count.
3997 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
3998 gomp_task_run_post_remove_taskgroup): New inline functions.
3999 (gomp_task_run_post_handle_depend_hash,
4000 gomp_task_run_post_handle_dependers,
4001 gomp_task_run_post_handle_depend): New functions.
4002 (GOMP_taskwait): Use them. If more than one new tasks
4003 have been queued, wake other threads if needed.
4004 (gomp_barrier_handle_tasks): Likewise. If
4005 gomp_team_barrier_cancelled, don't start any new tasks, just free
4007 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
4009 (omp_proc_bind_kind, omp_proc_bind_false,
4010 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
4011 omp_proc_bind_spread): New params.
4012 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4013 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4014 omp_get_team_num, omp_is_initial_device): New interfaces.
4015 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
4016 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
4017 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
4018 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
4019 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
4020 useless use omp_lib_kinds.
4021 * omp.h.in (omp_proc_bind_t): New typedef.
4022 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4023 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4024 omp_get_team_num, omp_is_initial_device): New prototypes.
4025 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
4026 through to gomp_team_start.
4027 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
4028 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
4029 Adjust gomp_parallel_loop_start callers.
4030 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
4031 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
4032 GOMP_loop_end_cancel): New functions.
4033 (GOMP_parallel_end): Add ialias_redirect.
4034 * hashtab.h: New file.
4035 * libgomp.texi (Environment Variables): Minor cleanup,
4036 update section refs to OpenMP 4.0rc2.
4037 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
4038 environment variables.
4039 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
4040 team->work_shares_to_free to thr->ts.work_share before calling
4042 (gomp_work_share_end_cancel): New function.
4043 * config/linux/proc.c: Include errno.h.
4044 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
4045 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
4046 sizeof (cpu_set_t) to determine number of iterations. Fix up check
4047 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
4048 gomp_cpuset_size is sizeof (cpu_set_t).
4049 (gomp_init_num_threads): Initialize gomp_cpuset_size,
4050 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
4051 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
4052 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
4053 contain any logical CPUs.
4054 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
4055 is NULL. Use gomp_cpusetp instead of &cpuset and pass
4056 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
4057 pthread_getaffinity_np. Check gomp_places_list instead of
4058 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
4059 * config/linux/bar.c (gomp_barrier_wait_end,
4060 gomp_barrier_wait_last): Use BAR_* defines.
4061 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
4062 from state where needed. Set work_share_cancelled to 0 on last
4064 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
4065 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
4067 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
4068 Add cpusetsize argument.
4069 (gomp_cpuset_size, gomp_cpusetp): Declare.
4070 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
4071 (affinity_counter): Remove.
4072 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
4073 if CPU_ALLOC_SIZE isn't defined.
4074 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
4075 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
4076 bind current thread to the first place.
4077 (gomp_init_thread_affinity): Rewritten. Add place argument, just
4078 pthread_setaffinity_np to gomp_places_list[place].
4079 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4080 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4081 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4082 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
4083 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
4084 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
4085 (gomp_barrier_t): Add awaited_final field.
4086 (gomp_barrier_init): Initialize awaited_final field.
4087 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
4088 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
4090 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
4092 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
4093 gomp_team_barrier_cancelled): New inline functions.
4094 (gomp_barrier_last_thread,
4095 gomp_team_barrier_set_task_pending,
4096 gomp_team_barrier_clear_task_pending,
4097 gomp_team_barrier_set_waiting_for_tasks,
4098 gomp_team_barrier_waiting_for_tasks,
4099 gomp_team_barrier_done): Use BAR_* defines.
4100 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
4101 (gomp_barrier_wait_end): Use BAR_* defines.
4102 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
4103 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
4105 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
4106 gomp_team_barrier_cancel): New functions.
4107 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
4109 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4110 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4111 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4112 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
4113 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
4114 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
4115 (gomp_barrier_t): Add cancellable field.
4116 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
4117 gomp_team_barrier_cancel): New prototypes.
4118 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
4119 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
4120 gomp_team_barrier_cancelled): New inline functions.
4121 (gomp_barrier_wait_start, gomp_barrier_last_thread,
4122 gomp_team_barrier_set_task_pending,
4123 gomp_team_barrier_clear_task_pending,
4124 gomp_team_barrier_set_waiting_for_tasks,
4125 gomp_team_barrier_waiting_for_tasks,
4126 gomp_team_barrier_done): Use BAR_* defines.
4127 * barrier.c (GOMP_barrier_cancel): New function.
4128 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
4129 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
4130 omp_proc_bind_spread): New params.
4131 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4132 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4133 omp_get_team_num, omp_is_initial_device): New externals.
4134 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
4136 (gomp_resolve_num_threads): Adjust for thread_limit now being in
4137 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
4138 infinity. If not nested, just return minimum of max_num_threads
4139 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
4140 to the returned value. Otherwise, don't update atomically
4141 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
4142 (GOMP_parallel_end): Adjust for thread_limit now being in
4143 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
4144 infinity. Adjust threads_busy in the pool rather than
4145 gomp_remaining_threads_count. Remember team->nthreads and call
4146 gomp_team_end before adjusting threads_busy, if not nested
4147 afterwards, just set it to 1 non-atomically. Add ialias.
4148 (GOMP_parallel_start): Adjust gomp_team_start caller.
4149 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
4150 * testsuite/libgomp.c/affinity-1.c: New test.
4151 * testsuite/libgomp.c/atomic-15.c: New test.
4152 * testsuite/libgomp.c/atomic-16.c: New test.
4153 * testsuite/libgomp.c/atomic-17.c: New test.
4154 * testsuite/libgomp.c/cancel-for-1.c: New test.
4155 * testsuite/libgomp.c/cancel-for-2.c: New test.
4156 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
4157 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
4158 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
4159 * testsuite/libgomp.c/cancel-sections-1.c: New test.
4160 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
4161 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
4162 * testsuite/libgomp.c/depend-1.c: New test.
4163 * testsuite/libgomp.c/depend-2.c: New test.
4164 * testsuite/libgomp.c/depend-3.c: New test.
4165 * testsuite/libgomp.c/depend-4.c: New test.
4166 * testsuite/libgomp.c/for-1.c: New test.
4167 * testsuite/libgomp.c/for-1.h: New file.
4168 * testsuite/libgomp.c/for-2.c: New test.
4169 * testsuite/libgomp.c/for-2.h: New file.
4170 * testsuite/libgomp.c/for-3.c: New test.
4171 * testsuite/libgomp.c/pr58392.c: New test.
4172 * testsuite/libgomp.c/simd-1.c: New test.
4173 * testsuite/libgomp.c/simd-2.c: New test.
4174 * testsuite/libgomp.c/simd-3.c: New test.
4175 * testsuite/libgomp.c/simd-4.c: New test.
4176 * testsuite/libgomp.c/simd-5.c: New test.
4177 * testsuite/libgomp.c/simd-6.c: New test.
4178 * testsuite/libgomp.c/target-1.c: New test.
4179 * testsuite/libgomp.c/target-2.c: New test.
4180 * testsuite/libgomp.c/target-3.c: New test.
4181 * testsuite/libgomp.c/target-4.c: New test.
4182 * testsuite/libgomp.c/target-5.c: New test.
4183 * testsuite/libgomp.c/target-6.c: New test.
4184 * testsuite/libgomp.c/target-7.c: New test.
4185 * testsuite/libgomp.c/taskgroup-1.c: New test.
4186 * testsuite/libgomp.c/thread-limit-1.c: New test.
4187 * testsuite/libgomp.c/thread-limit-2.c: New test.
4188 * testsuite/libgomp.c/thread-limit-3.c: New test.
4189 * testsuite/libgomp.c/udr-1.c: New test.
4190 * testsuite/libgomp.c/udr-2.c: New test.
4191 * testsuite/libgomp.c/udr-3.c: New test.
4192 * testsuite/libgomp.c++/affinity-1.C: New test.
4193 * testsuite/libgomp.c++/atomic-10.C: New test.
4194 * testsuite/libgomp.c++/atomic-11.C: New test.
4195 * testsuite/libgomp.c++/atomic-12.C: New test.
4196 * testsuite/libgomp.c++/atomic-13.C: New test.
4197 * testsuite/libgomp.c++/atomic-14.C: New test.
4198 * testsuite/libgomp.c++/atomic-15.C: New test.
4199 * testsuite/libgomp.c++/cancel-for-1.C: New test.
4200 * testsuite/libgomp.c++/cancel-for-2.C: New test.
4201 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
4202 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
4203 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
4204 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
4205 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
4206 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
4207 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
4208 * testsuite/libgomp.c++/cancel-test.h: New file.
4209 * testsuite/libgomp.c++/for-9.C: New test.
4210 * testsuite/libgomp.c++/for-10.C: New test.
4211 * testsuite/libgomp.c++/for-11.C: New test.
4212 * testsuite/libgomp.c++/simd-1.C: New test.
4213 * testsuite/libgomp.c++/simd-2.C: New test.
4214 * testsuite/libgomp.c++/simd-3.C: New test.
4215 * testsuite/libgomp.c++/simd-4.C: New test.
4216 * testsuite/libgomp.c++/simd-5.C: New test.
4217 * testsuite/libgomp.c++/simd-6.C: New test.
4218 * testsuite/libgomp.c++/simd-7.C: New test.
4219 * testsuite/libgomp.c++/simd-8.C: New test.
4220 * testsuite/libgomp.c++/target-1.C: New test.
4221 * testsuite/libgomp.c++/target-2.C: New test.
4222 * testsuite/libgomp.c++/target-2-aux.cc: New file.
4223 * testsuite/libgomp.c++/target-3.C: New test.
4224 * testsuite/libgomp.c++/taskgroup-1.C: New test.
4225 * testsuite/libgomp.c++/udr-1.C: New test.
4226 * testsuite/libgomp.c++/udr-2.C: New test.
4227 * testsuite/libgomp.c++/udr-3.C: New test.
4228 * testsuite/libgomp.c++/udr-4.C: New test.
4229 * testsuite/libgomp.c++/udr-5.C: New test.
4230 * testsuite/libgomp.c++/udr-6.C: New test.
4231 * testsuite/libgomp.c++/udr-7.C: New test.
4232 * testsuite/libgomp.c++/udr-8.C: New test.
4233 * testsuite/libgomp.c++/udr-9.C: New test.
4235 2013-09-20 Jakub Jelinek <jakub@redhat.com>
4238 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
4241 2013-09-20 Alan Modra <amodra@gmail.com>
4243 * configure: Regenerate.
4245 2013-09-19 Jakub Jelinek <jakub@redhat.com>
4247 * testsuite/libgomp.c/sections-2.c: New test.
4249 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
4251 * testsuite/libgomp.fortran/strassen.f90:
4252 Add dg-skip-if aarch64_tiny.
4254 2013-06-20 Iain Sandoe <iain@codesourcery.com>
4255 Cesar Philippidis <cesar@codesourcery.com>
4257 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
4258 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
4259 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
4260 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4261 * testsuite/libgomp.graphite/graphite.exp: Likewise.
4262 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
4263 Use dg-runtest rather than gfortran-dg-runtest.
4265 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
4267 * testsuite/libgomp.c/icv-2.c: Extend current handling of
4268 Linux-based x86 systems to cover all GNU systems.
4269 * testsuite/libgomp.c/lock-3.c: Likewise.
4270 * testsuite/libgomp.c/pr48591.c: Likewise.
4272 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
4274 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
4275 GNU/Hurd, as done for Linux-based systems.
4277 * config/posix/ptrlock.h: Fix comment.
4279 2013-05-27 Tobias Burnus <burnus@net-b.de>
4282 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
4283 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
4284 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
4285 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
4286 omp_destroy_nest_lock): Correct arguments to match the one in
4288 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
4289 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
4290 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
4291 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
4293 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4295 * testsuite/libgomp.c/loop-13.c: New test.
4296 * testsuite/libgomp.c/loop-14.c: New test.
4297 * testsuite/libgomp.c/loop-15.c: New test.
4298 * testsuite/libgomp.c++/loop-13.C: New test.
4299 * testsuite/libgomp.c++/loop-14.C: New test.
4300 * testsuite/libgomp.c++/loop-15.C: New test.
4302 2013-02-06 Jakub Jelinek <jakub@redhat.com>
4305 * testsuite/libgomp.c++/pr56217.C: New test.
4307 2013-02-01 Alan Modra <amodra@gmail.com>
4309 * task.c (GOMP_task, GOMP_taskwait): Comment.
4311 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
4312 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
4315 * config/linux/wait.h (do_spin): Use atomic load for addr.
4316 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
4317 for intptr and ptrlock.
4318 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
4321 2013-01-22 Alan Modra <amodra@gmail.com>
4325 * task.c (GOMP_task): Revert 2011-12-09 change.
4326 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
4327 barrier to read task->children..
4328 (gomp_barrier_handle_tasks): ..and matching atomic store with
4329 release barrier here when setting parent->children to NULL.
4331 2013-01-16 Jakub Jelinek <jakub@redhat.com>
4332 Tobias Burnus <burnus@net-b.de>
4335 * testsuite/libgomp.fortran/fortran.exp: Use
4336 -fintrinsic-modules-path= instead of
4337 -fintrinsic-modules-path.
4339 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
4341 Update copyright years.
4343 2012-12-19 Tobias Burnus <burnus@net-b.de>
4345 * testsuite/libgomp.fortran/fortran.exp: Set
4346 -fintrinsic-modules-path.
4348 2012-12-19 Tobias Burnus <burnus@net-b.de>
4350 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
4351 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
4353 2012-11-21 Jakub Jelinek <jakub@redhat.com>
4356 * team.c (gomp_free_thread): Decrease gomp_managed_threads
4357 if pool had any threads_used.
4359 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
4361 * testsuite/libgomp.c++/pr24455.C: Use
4362 -Wl,-undefined,dynamic_lookup on darwin.
4364 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
4366 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
4368 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
4370 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
4372 2012-10-23 Ian Bolton <ian.bolton@arm.com>
4373 Jim MacArthur <jim.macarthur@arm.com>
4374 Marcus Shawcroft <marcus.shawcroft@arm.com>
4375 Nigel Stephens <nigel.stephens@arm.com>
4376 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4377 Richard Earnshaw <rearnsha@arm.com>
4378 Sofiane Naci <sofiane.naci@arm.com>
4379 Stephen Thomas <stephen.thomas@arm.com>
4380 Tejas Belagod <tejas.belagod@arm.com>
4381 Yufeng Zhang <yufeng.zhang@arm.com>
4383 * configure.tgt: Add AArch64.
4385 2012-10-04 Jason Merrill <jason@redhat.com>
4387 * testsuite/libgomp.c++/tls-init1.C: New.
4389 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
4391 * configure: Regenerated.
4393 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
4395 * config/linux/mips/futex.h (sys_futex0): Change to static
4396 function with noinline, nomips16 attributes under MIPS16. Adjust
4397 asm statement to place 'li v0,SYS_futex' immediately before
4400 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
4402 * libgomp.texi (Library Index): Renamed from "Index" to prevent
4403 conflict with index.html on case-insensitive file systems.
4405 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
4407 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
4408 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
4410 2012-07-02 Richard Guenther <rguenther@suse.de>
4411 Michael Matz <matz@suse.de>
4412 Tobias Grosser <tobias@grosser.es>
4413 Sebastian Pop <sebpop@gmail.com>
4415 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4416 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
4417 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4418 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4420 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
4422 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
4424 2012-06-22 Richard Guenther <rguenther@suse.de>
4426 Merge from graphite branch
4427 2012-01-13 Tobias Grosser <tobias@grosser.es>
4429 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4430 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
4432 2012-06-07 Jakub Jelinek <jakub@redhat.com>
4435 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
4436 use GOMP_barrier () call instead.
4437 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4438 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4439 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
4440 call GOMP_barrier instead.
4441 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4443 2012-06-06 Jakub Jelinek <jakub@redhat.com>
4446 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
4447 argument to memset call.
4449 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4451 * configure: Regenerated.
4453 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4455 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
4457 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
4460 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
4462 2012-03-22 Jakub Jelinek <jakub@redhat.com>
4465 * testsuite/libgomp.c/pr52547.c: New test.
4467 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4469 * testsuite/lib/libgomp.exp: load fortran-modules.exp
4471 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4473 * configure.tgt (mips-sgi-irix6*): Remove.
4475 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4477 * configure.tgt (alpha*-dec-osf*): Remove.
4479 * config/osf/sem.h: Remove.
4480 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
4482 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
4484 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
4486 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4489 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
4490 Remove ENABLE_SYMVERS_SOL2.
4491 * configure: Regenerate.
4492 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
4493 (PREPROCESS): New variable.
4494 (libgomp.ver): New target.
4495 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
4496 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
4497 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
4499 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
4500 * Makefile.in: Regenerate.
4502 2012-02-14 Walter Lee <walt@tilera.com>
4504 * configure.tgt: Handle tilegx and tilepro.
4505 * config/linux/tile/futex.h: New file.
4507 2012-02-08 Richard Guenther <rguenther@suse.de>
4509 PR tree-optimization/46886
4510 * testsuite/libgomp.c/pr46886.c: New testcase.
4512 2012-01-25 Matthias Klose <doko@ubuntu.com>
4514 * config/linux/arm: Remove empty directory.
4515 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
4517 2011-12-09 Alan Modra <amodra@gmail.com>
4520 * task.c (GOMP_taskwait): Don't access task->children outside of
4521 task_lock mutex region.
4522 (GOMP_task): Likewise.
4524 2011-12-06 Jakub Jelinek <jakub@redhat.com>
4527 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
4529 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
4530 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
4531 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4532 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4533 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
4535 2011-12-02 Alan Modra <amodra@gmail.com>
4537 * config/linux/affinity.c: Use atomic rather than sync builtin.
4538 * config/linux/lock.c: Likewise.
4539 * config/linux/ptrlock.h: Likewise.
4540 * config/linux/ptrlock.c: Likewise.
4541 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
4542 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
4543 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
4544 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
4545 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
4546 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
4547 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
4548 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
4549 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
4550 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
4552 2011-11-30 Alan Modra <amodra@gmail.com>
4555 * config/linux/bar.h: Use atomic rather than sync builtins.
4556 * config/linux/bar.c: Likewise. Add missing acquire
4557 synchronisation on generation field.
4558 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
4561 2011-11-30 Alan Modra <amodra@gmail.com>
4563 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
4564 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
4565 * config/linux/mutex.h: Use atomic rather than sync builtins.
4566 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
4567 * config/linux/omp-lock.h: Comment fix.
4568 * config/linux/arm/mutex.h: Delete.
4569 * config/linux/powerpc/mutex.h: Delete.
4570 * config/linux/ia64/mutex.h: Delete.
4571 * config/linux/mips/mutex.h: Delete.
4573 2011-11-30 Alan Modra <amodra@gmail.com>
4576 * config/linux/sem.h: Rewrite.
4577 * config/linux/sem.c: Rewrite.
4579 2011-11-28 Richard Henderson <rth@redhat.com>
4581 * libgomp.h (enum memmodel): New.
4583 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
4585 * configure: Regenerate.
4587 2011-10-10 Matthias Klose <doko@ubuntu.com>
4589 * config/posix95: Remove empty directory.
4591 2011-08-26 Jakub Jelinek <jakub@redhat.com>
4593 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
4595 2011-08-19 Jakub Jelinek <jakub@redhat.com>
4598 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
4599 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
4601 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4603 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
4605 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4608 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
4610 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
4612 * config/linux/proc.h: New.
4613 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
4614 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
4615 (gomp_init_num_threads): Update call to cpuset_popcount.
4616 (get_num_procs): Ditto.
4617 * config/linux/affinity.c (gomp_init_affinity): Call
4618 gomp_cpuset_popcount.
4620 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4624 * omp.h.in (omp_in_final): New prototype.
4625 * omp_lib.f90.in (omp_in_final): New interface.
4626 (omp_integer_kind, omp_logical_kind): Remove
4627 and replace all its uses in the module with 4.
4628 (openmp_version): Change to 201107.
4629 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
4630 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
4631 kind for the parameters.
4632 (omp_in_final): New external.
4633 (openmp_version): Change to 201107.
4634 * task.c (omp_in_final): New function.
4635 (gomp_init_task): Initialize final_task.
4636 (GOMP_task): Remove unused attribute from flags. Handle final
4638 (GOMP_taskyield): New function.
4639 (omp_in_final): Return true if if (false) or final (true) task
4640 or descendant of final (true).
4641 * fortran.c (omp_in_final_): New function.
4642 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
4643 (GOMP_3.0): Export GOMP_taskyield.
4644 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
4646 (parse_unsigned_long_list): New function.
4647 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
4648 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
4649 even if parse_affinity returned false.
4650 * config/linux/affinity.c (gomp_init_affinity): Handle
4651 gomp_cpu_affinity_len == 0.
4652 * libgomp_g.h (GOMP_taskyield): New prototype.
4653 * libgomp.h (struct gomp_task): Add final_task field.
4654 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
4655 * team.c (gomp_team_start): Override new task's nthreads_var icv
4656 if list form OMP_NUM_THREADS has been used and it has value for
4657 the new nesting level.
4659 * testsuite/libgomp.c/atomic-11.c: New test.
4660 * testsuite/libgomp.c/atomic-12.c: New test.
4661 * testsuite/libgomp.c/atomic-13.c: New test.
4662 * testsuite/libgomp.c/atomic-14.c: New test.
4663 * testsuite/libgomp.c/reduction-6.c: New test.
4664 * testsuite/libgomp.c/task-5.c: New test.
4665 * testsuite/libgomp.c++/atomic-2.C: New test.
4666 * testsuite/libgomp.c++/atomic-3.C: New test.
4667 * testsuite/libgomp.c++/atomic-4.C: New test.
4668 * testsuite/libgomp.c++/atomic-5.C: New test.
4669 * testsuite/libgomp.c++/atomic-6.C: New test.
4670 * testsuite/libgomp.c++/atomic-7.C: New test.
4671 * testsuite/libgomp.c++/atomic-8.C: New test.
4672 * testsuite/libgomp.c++/atomic-9.C: New test.
4673 * testsuite/libgomp.c++/task-8.C: New test.
4674 * testsuite/libgomp.c++/reduction-4.C: New test.
4675 * testsuite/libgomp.fortran/allocatable7.f90: New test.
4676 * testsuite/libgomp.fortran/allocatable8.f90: New test.
4677 * testsuite/libgomp.fortran/crayptr3.f90: New test.
4678 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
4679 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
4680 * testsuite/libgomp.fortran/pointer1.f90: New test.
4681 * testsuite/libgomp.fortran/pointer2.f90: New test.
4682 * testsuite/libgomp.fortran/task4.f90: New test.
4684 2011-08-02 Tobias Burnus <burnus@net-b.de>
4686 * libgomp.texi: Update OpenMP spec references to 3.1.
4687 (omp_in_final,OMP_PROC_BIND): New sections.
4688 (OMP_NUM_THREADS): Document that the value can be now a list.
4689 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
4691 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4693 * config/linux/x86/futex.h: Check __x86_64__ instead of
4696 2011-07-29 Jakub Jelinek <jakub@redhat.com>
4700 * testsuite/libgomp.c/pr49897-1.c: New test.
4701 * testsuite/libgomp.c/pr49897-2.c: New test.
4702 * testsuite/libgomp.c/pr49898-1.c: New test.
4703 * testsuite/libgomp.c/pr49898-2.c: New test.
4705 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4707 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
4708 for ia32 instead of ilp32.
4710 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
4711 * testsuite/libgomp.c/atomic-6.c: Likewise.
4713 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
4715 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
4716 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
4718 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4721 * config/osf/sem.h: New file.
4722 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
4724 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4727 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
4730 2011-07-15 Jakub Jelinek <jakub@redhat.com>
4732 * config/linux/wait.h (do_spin): New inline, largely copied
4733 from do_wait, just don't do futex_wait here, instead return true if
4735 (do_wait): Implement using do_spin.
4736 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
4738 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4739 __sync_bool_compare_and_swap, pass the oldval to
4740 gomp_mutex_lock_slow.
4741 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
4742 If all mutex contenders are just spinning and not sleeping, don't
4743 change state to 2 unnecessarily. Optimize the loop when state has
4744 already become 2 to use just one atomic operation per loop instead
4746 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
4748 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4749 __sync_bool_compare_and_swap, pass the oldval to
4750 gomp_mutex_lock_slow.
4752 2011-06-22 Jakub Jelinek <jakub@redhat.com>
4755 * iter.c (gomp_iter_static_next): For chunk size 0
4756 only use n ceil/ nthreads size for the first
4757 n % nthreads threads in the team instead of
4758 all threads except for the last few ones which
4759 get less work or none at all.
4760 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
4761 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
4762 chunk argument, set run_sched_modifier to 0 for static
4763 resp. 1 for other kinds. If chunk argument is 0
4764 and not static, set value to 1.
4766 2011-05-19 Jakub Jelinek <jakub@redhat.com>
4769 * testsuite/libgomp.c++/pr49043.C: New test.
4772 * testsuite/libgomp.c++/pr48869.C: New test.
4774 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4777 * fortran.c: Include limits.h.
4779 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
4781 (omp_set_num_threads_8_, omp_set_schedule_8_,
4782 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
4783 omp_get_team_size_8_): Use TO_INT macro.
4784 * testsuite/libgomp.fortran/pr48894.f90: New test.
4786 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4789 * testsuite/libgomp.c/pr48591.c: New test.
4791 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4794 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
4795 * configure: Regenerate.
4797 2011-02-27 Jakub Jelinek <jakub@redhat.com>
4800 * testsuite/libgomp.fortran/task3.f90: New test.
4802 2011-02-24 Tobias Burnus <burnus@net-b.de>
4804 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
4806 2011-02-23 Jakub Jelinek <jakub@redhat.com>
4809 * libgomp.texi (omp_get_wtime): Don't say time in the past
4812 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4815 * testsuite/libgomp.fortran/fortran.exp: Check for both
4816 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
4817 but $blddir != "", still append ${blddir}/${lang_library_path}
4820 2011-02-16 Tobias Burnus <burnus@net-b.de>
4823 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
4824 of libquadmath.a before adding its libpath to ldflags.
4826 2011-02-14 Jakub Jelinek <jakub@redhat.com>
4829 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
4830 to FUTEX_WAIT futex syscall.
4831 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
4833 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4835 * configure: Regenerate.
4837 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
4840 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
4842 2011-01-16 Gerald Pfeifer
4844 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
4846 2010-12-14 Jakub Jelinek <jakub@redhat.com>
4849 * libgomp.fortran/allocatable6.f90: New test.
4851 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4853 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
4854 * configure: Regenerate.
4856 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
4860 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
4861 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
4862 * aclocal.m4: Regenerate.
4863 * configure: Regenerate.
4864 * Makefile.in: Regenerate.
4865 * testsuite/Makefile.in: Regenerate.
4867 2010-12-02 Jakub Jelinek <jakub@redhat.com>
4870 * libgomp.fortran/pr46753.f90: New test.
4873 * env.c (initialize_env): Default to spin count 300000
4874 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
4878 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
4879 at the end if sync builtins aren't supported.
4881 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4883 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
4885 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4887 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
4889 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
4891 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
4893 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4894 Tobias Burnus <burnus@net-b.de>
4898 * configure: Regenerate.
4900 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
4902 * config/linux/futex.h: New.
4903 * config/linux/arm/mutex.h: New.
4904 * configure.tgt (arm*-*-linux*): Add config path.
4906 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4908 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4910 2010-09-23 Tobias Burnus <burnus@net-b.de>
4912 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
4913 Change Fortran datatype to LOGICAL.
4914 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
4915 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
4917 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4919 * configure: Regenerate.
4921 2010-07-26 Jakub Jelinek <jakub@redhat.com>
4923 * libgomp.texi: Add function keyword to a couple of Fortran
4924 interfaces, use integer instead of int for Fortran.
4926 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
4928 * libgomp.texi: Fix spelling and pasto problems throughout.
4929 Adjust prototypes to match code.
4931 2010-07-24 Tobias Burnus <burnus@net-b.de>
4933 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
4934 silence -fwhole-file warning.
4936 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4938 * configure.tgt (*-*-solaris2.[56]*): Removed.
4940 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4942 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
4943 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
4944 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
4945 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
4946 targetting solaris2*.
4947 * configure: Regenerate.
4948 * config.h.in: Regenerate.
4950 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
4951 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
4952 Add libgomp_version_dep.
4953 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
4955 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
4956 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
4957 * Makefile.in: Regenerate.
4959 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
4960 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
4961 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
4962 to common block, protected by
4963 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
4965 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
4967 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
4969 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
4972 * configure: Regenerate.
4974 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4977 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
4978 * configure: Regenerate.
4979 * Makefile.in: Regenerate.
4980 * testsuite/Makefile.in: Regenerate.
4982 2010-04-26 Jakub Jelinek <jakub@redhat.com>
4985 * testsuite/libgomp.c/pr43893.c: New test.
4986 * testsuite/libgomp.c++/pr43893.C: New test.
4988 2010-04-21 Jakub Jelinek <jakub@redhat.com>
4991 * testsuite/libgomp.fortran/vla8.f90: New test.
4993 2010-04-20 Jakub Jelinek <jakub@redhat.com>
4996 * config/linux/affinity.c (gomp_init_affinity): Decrease
4997 gomp_available_cpus if affinity mask confines the process to fewer
4999 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
5000 non-NULL, just return gomp_available_cpus.
5003 * sections.c (gomp_sections_init): Initialize ws->mode.
5005 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5007 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
5008 not unused bar variable.
5009 * configure: Regenerate.
5011 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5013 * Makefile.in: Regenerate.
5014 * aclocal.m4: Regenerate.
5015 * testsuite/Makefile.in: Regenerate.
5017 2010-03-22 Jakub Jelinek <jakub@redhat.com>
5020 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
5021 (initialize_env): Adjust callers.
5022 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
5023 when the argument is 0.
5025 * testsuite/libgomp.c/pr42942.c: New test.
5027 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
5031 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
5032 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
5034 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5036 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
5037 * testsuite/libgomp.c++/task-6.C: Likewise.
5039 2010-01-28 Steve Ellcey <sje@cup.hp.com>
5041 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
5043 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
5045 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
5046 * configure: Regenerate.
5048 2010-01-26 Jakub Jelinek <jakub@redhat.com>
5051 * testsuite/libgomp.fortran/allocatable5.f90: New test.
5053 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
5055 * configure.ac: Test for executability of GFORTRAN.
5056 * configure: Regenerate.
5058 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5060 * configure: Regenerate.
5062 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
5065 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
5067 2010-01-03 Richard Guenther <rguenther@suse.de>
5069 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
5071 2009-12-23 Sebastian Pop <sebpop@gmail.com>
5073 * testsuite/libgomp.graphite/pr4118.c: New.
5075 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5077 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
5078 for darwin, protect the test with require-effective-target tls_runtime.
5079 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
5081 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5084 * testsuite/lib/libgomp.exp: Provide -B options to allow for
5085 link spec %s substitutions for static libraries.
5087 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
5090 * libgomp.graphite/force-parallel-2.c: Reduce array size.
5092 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5094 * Makefile.in: Regenerate.
5095 * configure: Regenerate.
5096 * testsuite/Makefile.in: Regenerate.
5098 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
5100 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
5101 settings for LC_ALL and LANG.
5103 2009-11-25 Jakub Jelinek <jakub@redhat.com>
5106 * testsuite/libgomp.fortran/pr42162.f90: New test.
5108 2009-11-13 Jakub Jelinek <jakub@redhat.com>
5111 * testsuite/libgomp.c/pr42029.c: New test.
5113 2009-10-26 Jakub Jelinek <jakub@redhat.com>
5115 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
5116 *s. Accept ld version without text in ()s.
5117 * configure: Regenerated.
5119 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
5121 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
5123 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5126 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
5127 or a hyphen (happens with fortran language disabled).
5128 * configure: Regenerate.
5130 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5132 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
5133 use sed script portable to Solaris /bin/sed for extracting ld
5135 * configure: Regenerate.
5137 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
5139 * testsuite/libgomp.graphite/bounds.c: New test.
5141 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5143 * Makefile.am (libgomp_la_LINK): New.
5144 * Makefile.in: Regenerate.
5146 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5148 * configure.ac (AC_PREREQ): Bump to 2.64.
5150 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5152 * Makefile.am (install-html, install-pdf): Remove.
5153 * Makefile.in: Regenerate.
5155 * Makefile.in: Regenerate.
5156 * aclocal.m4: Regenerate.
5157 * config.h.in: Regenerate.
5158 * configure: Regenerate.
5159 * testsuite/Makefile.in: Regenerate.
5161 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5163 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
5164 * Makefile.in: Regenerate.
5166 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
5168 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
5169 * Makefile.in: Regenerate.
5171 2009-08-19 Tobias Burnus <burnus@net-b.de>
5174 omp_lib.h.in: Fix -std=f95 errors.
5176 2009-08-14 David Edelsohn <edelsohn@gnu.org>
5178 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
5179 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
5180 * testsuite/libgomp.graphite/graphite.exp: New.
5182 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
5184 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
5187 2009-08-04 David Daney <ddaney@caviumnetworks.com>
5189 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
5190 needed memory barrier semantics.
5191 * config/linux/mips/mutex.h: New file.
5193 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5195 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
5197 2009-07-16 Joseph Myers <joseph@codesourcery.com>
5199 * configure: Regenerate.
5201 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
5206 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
5207 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
5208 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
5210 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
5212 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
5213 options when choosing a multilib.
5215 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
5217 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
5218 ld_library_path. Use add_path. Add just find_libgcc_s to
5219 ld_library_path, not every libgcc multilib directory.
5220 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
5221 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
5222 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
5224 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
5226 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
5228 * Makefile.am (LTLDFLAGS): Define.
5230 * Makefile.in: Regenerate.
5232 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
5235 * testsuite/libgomp.fortran/fortran.exp: Don't link with
5236 libgfortranbegin, check existence of libgfortran.a instead of
5239 2009-05-20 Jakub Jelinek <jakub@redhat.com>
5242 * team.c (gomp_thread_start): Destroy thr->release semaphore.
5243 (gomp_free_pool_helper): Likewise.
5245 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
5246 Jakub Jelinek <jakub@redhat.com>
5249 * testsuite/libgomp.fortran/workshare2.f90: New test.
5251 2009-04-09 Nick Clifton <nickc@redhat.com>
5253 * iter.c: Change copyright header to refer to version 3 of the
5254 GNU General Public License with version 3.1 of the GCC Runtime
5255 Library Exception and to point readers at the COPYING3 and
5256 COPYING3.RUNTIME files and the FSF's license web page.
5257 * alloc.c: Likewise.
5258 * barrier.c: Likewise.
5259 * config/bsd/proc.c: Likewise.
5260 * config/linux/affinity.c: Likewise.
5261 * config/linux/alpha/futex.h: Likewise.
5262 * config/linux/bar.c: Likewise.
5263 * config/linux/bar.h: Likewise.
5264 * config/linux/ia64/futex.h: Likewise.
5265 * config/linux/ia64/mutex.h: Likewise.
5266 * config/linux/lock.c: Likewise.
5267 * config/linux/mips/futex.h: Likewise.
5268 * config/linux/mutex.c: Likewise.
5269 * config/linux/mutex.h: Likewise.
5270 * config/linux/powerpc/futex.h: Likewise.
5271 * config/linux/proc.c: Likewise.
5272 * config/linux/ptrlock.c: Likewise.
5273 * config/linux/ptrlock.h: Likewise.
5274 * config/linux/s390/futex.h: Likewise.
5275 * config/linux/sem.c: Likewise.
5276 * config/linux/sem.h: Likewise.
5277 * config/linux/sparc/futex.h: Likewise.
5278 * config/linux/wait.h: Likewise.
5279 * config/linux/x86/futex.h: Likewise.
5280 * config/mingw32/proc.c: Likewise.
5281 * config/mingw32/time.c: Likewise.
5282 * config/posix/affinity.c: Likewise.
5283 * config/posix/bar.c: Likewise.
5284 * config/posix/bar.h: Likewise.
5285 * config/posix/lock.c: Likewise.
5286 * config/posix/mutex.h: Likewise.
5287 * config/posix/proc.c: Likewise.
5288 * config/posix/ptrlock.h: Likewise.
5289 * config/posix/sem.c: Likewise.
5290 * config/posix/sem.h: Likewise.
5291 * config/posix/time.c: Likewise.
5292 * config/posix95/lock.c: Likewise.
5293 * critical.c: Likewise.
5295 * error.c: Likewise.
5296 * fortran.c: Likewise.
5297 * iter_ull.c: Likewise.
5298 * libgomp.h: Likewise.
5299 * libgomp_f.h.in: Likewise.
5300 * libgomp_g.h: Likewise.
5302 * loop_ull.c: Likewise.
5303 * omp.h.in: Likewise.
5304 * omp_lib.f90.in: Likewise.
5305 * omp_lib.h.in: Likewise.
5306 * ordered.c: Likewise.
5307 * parallel.c: Likewise.
5308 * sections.c: Likewise.
5309 * single.c: Likewise.
5314 2009-04-09 Jakub Jelinek <jakub@redhat.com>
5316 * testsuite/config/default.exp: Change copyright header to refer to
5317 version 3 of the GNU General Public License and to point readers
5318 at the COPYING3 file and the FSF's license web page.
5320 2009-04-08 Jakub Jelinek <jakub@redhat.com>
5323 * libgomp.c++/pr39573.C: New test.
5325 2009-04-01 Jakub Jelinek <jakub@redhat.com>
5328 * testsuite/libgomp.c/pr39591-1.c: New test.
5329 * testsuite/libgomp.c/pr39591-2.c: New test.
5330 * testsuite/libgomp.c/pr39591-3.c: New test.
5332 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
5334 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
5335 * testsuite/libgomp.c/atomic-6.c: Ditto.
5337 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5340 * testsuite/libgomp.c/loop-12.c: New test.
5341 * testsuite/libgomp.c/loop-11.c: New test.
5342 * testsuite/libgomp.c++/loop-11.C: New test.
5343 * testsuite/libgomp.c++/loop-12.C: New test.
5344 * testsuite/libgomp.c++/for-8.C: New test.
5346 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5348 * configure: Regenerate.
5350 2009-02-11 Jakub Jelinek <jakub@redhat.com>
5353 * testsuite/libgomp.c/pr39154.c: New test.
5355 2009-01-30 Ian Lance Taylor <iant@google.com>
5357 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
5358 libgomp_ld_is_gold. Get gold version number.
5359 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
5360 * configure: Rebuild.
5362 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5364 * testsuite/lib/libgomp.exp: Add -B option for targets that
5365 use libgfortran.a%s in their specs.
5367 2009-01-07 Jakub Jelinek <jakub@redhat.com>
5370 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
5371 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
5372 HAVE_AS_SYMVER_DIRECTIVE is not defined.
5373 * configure: Regenerated.
5374 * config.h.in: Likewise.
5376 2008-12-28 Jakub Jelinek <jakub@redhat.com>
5379 * testsuite/libgomp.c/pr38650.c: New test.
5380 * testsuite/libgomp.c++/pr38650.C: New test.
5382 2008-12-27 Jakub Jelinek <jakub@redhat.com>
5384 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
5386 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
5388 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
5390 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5392 * configure: Regenerate.
5394 2008-12-08 Jakub Jelinek <jakub@redhat.com>
5397 * testsuite/libgomp.c/pr36802-1.c: New test.
5398 * testsuite/libgomp.c/pr36802-2.c: New test.
5399 * testsuite/libgomp.c/pr36802-3.c: New test.
5401 2008-12-01 Janis Johnson <janis187@us.ibm.com>
5404 * config/linux/powerpc/mutex.h: New.
5406 2008-12-01 Jakub Jelinek <jakub@redhat.com>
5409 * testsuite/libgomp.c++/for-7.C: New test.
5412 * testsuite/libgomp.c++/for-6.C: New test.
5414 2008-11-26 Janis Johnson <janis187@us.ibm.com>
5417 * testsuite/lib/libgomp.exp: Include new timeout library files.
5418 (libgomp_target_compile): Set timeout value from new proc.
5420 2008-11-13 Steve Ellcey <sje@cup.hp.com>
5423 * config/linux/ia64/mutex.h: New.
5425 2008-11-04 Tobias Burnus <burnus@net-b.de>
5428 * libgomp.texi (Runtime library routines, environment variables):
5429 Update for OpenMP version 3.0.
5431 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
5432 Steve Ellcey <sje@cup.hp.com>
5434 * configure: Regenerate for new libtool.
5435 * Makefile.in: Ditto.
5436 * testsuite/Makefile.in: Ditto.
5438 2008-09-19 Jakub Jelinek <jakub@redhat.com>
5439 Andreas Tobler <a.tobler@schweiz.org>
5441 * config/bsd/proc.c: New file.
5442 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
5443 * configure.ac: Check for header <sys/sysctl.h>
5444 * configure: Regenerate.
5445 * config.h.in: Likewise.
5447 2008-09-05 Janis Johnson <janis187@us.ibm.com>
5449 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
5451 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5453 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
5454 * Makefile.in: Regenerated.
5455 * testsuite/Makefile.in: Regenerated.
5457 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
5459 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
5460 depend on blddir if blddir exists.
5461 (libgomp_target_compile): Likewise.
5462 * testsuite/libgomp.c++/c++.exp: Likewise.
5463 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5465 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5467 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
5468 Do not list GPL as Invariant Section.
5470 2008-07-28 Ilie Garbacea <ilie@mips.com>
5471 Chao-ying Fu <fu@mips.com>
5473 * configure.tgt: Enable futex for MIPS.
5474 * config/linux/mips/futex.h: New file.
5476 2008-07-16 Jakub Jelinek <jakub@redhat.com>
5478 * team.c (gomp_team_end): Free team immediately if it has
5481 2008-07-08 David Edelsohn <edelsohn@gnu.org>
5483 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
5484 * testsuite/libgomp.fortran/fortran.exp: Same.
5485 * testsuite/libgomp.c/c.exp: Same.
5486 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
5487 directory to library path first.
5489 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
5491 * env.c (parse_stacksize): Add cast to avoid warning.
5492 (parse_spincount): Likewise.
5494 2008-06-27 Jakub Jelinek <jakub@redhat.com>
5496 * testsuite/libgomp.c/loop-10.c: New test.
5497 * libgomp.c/loop-3.c (main): Add lastprivate clause.
5498 * libgomp.c++/loop-6.C (main): Likewise.
5501 * testsuite/libgomp.c/debug-1.c: New test.
5503 2008-06-19 Jakub Jelinek <jakub@redhat.com>
5505 * testsuite/libgomp.c/nqueens-1.c: New test.
5508 * testsuite/libgomp.c++/task-7.C: New function.
5510 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5512 * configure: Regenerate.
5514 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5516 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
5517 mutex when HAVE_SYNC_BUILTINS isn't defined.
5519 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5521 * libgomp.texi (omp_test_lock): Fix typo.
5523 2008-06-12 Tobias Burnus <burnus@net-b.de>
5525 * omp_lib.f90.in: Add "implicit none".
5527 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5530 * testsuite/libgomp.c/reduction-5.c: New test.
5532 2008-06-11 Jakub Jelinek <jakub@redhat.com>
5534 * libgomp.h (struct gomp_task): Add in_tied_task field.
5535 * task.c (gomp_init_task): Initialize it.
5536 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
5537 unconditionally. Don't call gomp_team_barrier_wake if
5538 current task is implicit or if(0) from implicit and number of
5539 running tasks is equal to nthreads - 1.
5542 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
5543 omp_get_team_size_8): Fix pastos.
5546 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
5547 * configure: Regenerated.
5548 * config.h.in: Regenerated.
5549 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
5552 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
5555 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
5556 (GOMP_loop_ull_dynamic_start): Likewise.
5557 (GOMP_loop_ull_guided_start): Likewise.
5558 (GOMP_loop_ull_ordered_static_start): Likewise.
5559 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
5560 (GOMP_loop_ull_ordered_guided_start): Likewise.
5562 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5563 Richard Henderson <rth@redhat.com>
5564 Ulrich Drepper <drepper@redhat.com>
5565 Jakob Blomer <jakob.blomer@ira.uka.de>
5567 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
5568 Substitute also OMP_*LOCK_25*.
5569 * configure: Regenerated.
5570 * config.h.in: Regenerated.
5571 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
5572 ptrlock.c and task.c.
5573 * Makefile.in: Regenerated.
5574 * testsuite/Makefile.in: Regenerated.
5576 * loop_ull.c: New file.
5577 * iter_ull.c: New file.
5578 * libgomp.h: Include ptrlock.h.
5579 (enum gomp_task_kind): New type.
5580 (struct gomp_team): Add task_lock, task_queue, task_count,
5581 task_running_count, single_count fields. Add
5582 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
5583 Remove work_share_lock, generation_mask,
5584 oldest_live_gen, num_live_gen and init_work_shares fields, add
5585 work work_share_list_alloc, work_share_list_free and work_share_chunk
5586 fields. Change work_shares from pointer to pointers into an array.
5587 Change ordered_release field into gomp_sem_t ** from flexible array
5588 member. Add implicit_task and initial_work_shares fields.
5589 Move close to the end of the struct.
5590 (struct gomp_team_state): Add single_count, last_work_share,
5591 active_level and level fields, remove work_share_generation.
5592 (gomp_barrier_handle_tasks): New prototype.
5593 (gomp_finish_task): New inline function.
5594 (struct gomp_work_share): Move chunk_size, end, incr into
5595 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
5596 next_ll fields. Reshuffle fields. Add next_alloc,
5597 next_ws, next_free and inline_ordered_team_ids fields, change
5598 ordered_team_ids into pointer from flexible array member.
5599 Add mode field. Put lock and next into a different cache line
5600 from most of the write-once fields.
5601 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
5602 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
5603 gomp_iter_ull_guided_next): New prototypes.
5604 (gomp_new_icv): New prototype.
5605 (struct gomp_thread): Add thread_pool and task fields.
5606 (struct gomp_thread_pool): New type.
5607 (gomp_new_team): New prototype.
5608 (gomp_team_start): Change type of last argument.
5609 (gomp_new_work_share): Removed.
5610 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
5611 (gomp_work_share_init_done): New static inline.
5612 (gomp_throttled_spin_count_var, gomp_available_cpus,
5613 gomp_managed_threads): New extern decls.
5614 (gomp_init_task): New prototype.
5615 (gomp_spin_count_var): New extern var decl.
5616 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
5617 or no alias support, or if not PIC.
5618 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
5619 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
5620 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
5621 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
5622 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
5623 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
5624 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
5625 gomp_test_nest_lock_25): New prototypes.
5626 (omp_lock_symver, strong_alias): Define.
5627 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
5629 (gomp_end_task): New.
5630 (struct gomp_task_icv, gomp_global_icv): New.
5631 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
5632 (struct gomp_task): New.
5633 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5634 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5636 (gomp_schedule_type): Reorder enum to match
5638 * team.c (struct gomp_thread_start_data): Add thread_pool and task
5640 (gomp_thread_start): Add gomp_team_barrier_wait call.
5641 For non-nested case remove clearing of docked thread thr fields.
5642 Use pool fields instead of global gomp_* variables. Use
5643 gomp_barrier_wait_last when needed. Initialize ts.active_level.
5644 Create tasks for each member thread.
5645 (free_team): Only destroy team barrier, task_lock here and free it.
5646 (gomp_free_thread): Free last_team if non-NULL.
5647 (gomp_team_end): Call gomp_team_barrier_wait instead of
5648 gomp_barrier_wait. For nested case call one extra
5649 gomp_barrier_wait. Move here some destruction from free_team.
5650 Call free_team on pool->last_team if any, rather than freeing
5651 current team. Destroy work_share_list_free_lock ifndef
5653 (gomp_new_icv): New function.
5654 (gomp_threads, gomp_threads_size, gomp_threads_used,
5655 gomp_threads_dock): Removed.
5656 (gomp_thread_destructor): New variable.
5657 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
5659 (gomp_team_start): Create new pool if current thread doesn't have
5660 one. Use pool fields instead of global gomp_* variables.
5661 Initialize thread_pool field for new threads. Clear single_count.
5662 Change last argument from ws to team, don't create
5663 new team, set ts.work_share to &team->work_shares[0] and clear
5664 ts.last_work_share. Don't clear ts.work_share_generation.
5665 If number of threads changed, adjust atomically gomp_managed_threads.
5666 Use gomp_init_task instead of gomp_new_task,
5667 set thr->task to the corresponding implicit_task array entry.
5668 Create tasks for each member thread. Initialize ts.level.
5669 (initialize_team): Call pthread_key_create on
5670 gomp_thread_destructor.
5671 (team_destructor): New function.
5672 (new_team): Removed.
5673 (gomp_new_team): New function.
5674 (free_team): Free gomp_work_share blocks chained through next_alloc,
5675 instead of freeing work_shares and destroying work_share_lock.
5676 (gomp_team_end): Call gomp_fini_work_share. If number of threads
5677 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
5678 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
5679 of gomp_barrier_wait.
5680 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
5681 instead of gomp_barrier_wait. Call gomp_work_share_init_done
5682 if gomp_work_share_start returned true. Don't unlock ws->lock.
5683 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
5684 of gomp_barrier_wait.
5685 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
5686 gomp_work_share_init_done if gomp_work_share_start returned true.
5687 Don't unlock ws->lock.
5688 * work.c: Include stddef.h.
5689 (free_work_share): Use work_share_list_free_lock instead
5690 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
5691 Call gomp_fini_work_share and then either free ws if orphaned, or
5692 put it into work_share_list_free list of the current team.
5693 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
5695 (gomp_work_share_start, gomp_work_share_end,
5696 gomp_work_share_end_nowait): Rewritten.
5697 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
5698 (openmp_version): Set to 200805.
5699 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5700 omp_sched_guided, omp_sched_auto): New parameters.
5701 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5702 omp_set_max_active_levels, omp_get_max_active_levels,
5703 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5704 omp_get_active_level): New interfaces.
5705 * omp_lib.h.in (openmp_version): Set to 200805.
5706 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5707 omp_sched_guided, omp_sched_auto): New parameters.
5708 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5709 omp_set_max_active_levels, omp_get_max_active_levels,
5710 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5711 omp_get_active_level): New externals.
5712 * loop.c: Include limits.h.
5713 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
5715 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
5716 Likewise. Use gomp_icv.
5717 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
5718 ts.static_trip here.
5719 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
5720 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
5721 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
5722 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
5723 don't unlock ws->lock, otherwise lock it.
5724 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
5725 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
5726 (gomp_parallel_loop_start): Call gomp_new_team instead of
5727 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
5728 Adjust gomp_team_start caller. Pass 0 as second argument to
5729 gomp_resolve_num_threads.
5730 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
5731 If adding ws->chunk_size nthreads + 1 times after end won't
5732 overflow, set ws->mode to 1.
5733 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
5734 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
5735 GOMP_loop_ull_ordered_static_start,
5736 GOMP_loop_ull_ordered_dynamic_start,
5737 GOMP_loop_ull_ordered_guided_start,
5738 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
5739 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
5740 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
5741 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
5742 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
5744 * libgomp.map: Export lock routines also @@OMP_2.0.
5745 (GOMP_loop_ordered_dynamic_first,
5746 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
5747 GOMP_loop_ordered_static_first): Remove.
5748 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
5749 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
5750 GOMP_loop_ull_ordered_dynamic_next,
5751 GOMP_loop_ull_ordered_dynamic_start,
5752 GOMP_loop_ull_ordered_guided_next,
5753 GOMP_loop_ull_ordered_guided_start,
5754 GOMP_loop_ull_ordered_runtime_next,
5755 GOMP_loop_ull_ordered_runtime_start,
5756 GOMP_loop_ull_ordered_static_next,
5757 GOMP_loop_ull_ordered_static_start,
5758 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
5759 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
5760 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
5761 (omp_set_schedule, omp_get_schedule,
5762 omp_get_thread_limit, omp_set_max_active_levels,
5763 omp_get_max_active_levels, omp_get_level,
5764 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
5765 omp_set_schedule_, omp_set_schedule_8_,
5766 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5767 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5768 omp_get_max_active_levels_, omp_get_level_,
5769 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5770 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5771 New exports @@OMP_3.0.
5772 * omp.h.in (omp_sched_t): New type.
5773 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5774 omp_set_max_active_levels, omp_get_max_active_levels,
5775 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5776 omp_get_active_level): New prototypes.
5777 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
5778 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
5779 gomp_thread_limit_var, gomp_remaining_threads_count,
5780 gomp_remaining_threads_lock): New variables.
5781 (parse_spincount): New function.
5782 (initialize_env): Call gomp_init_num_threads unconditionally.
5783 Initialize gomp_available_cpus. Call parse_spincount,
5784 initialize gomp_{,throttled_}spin_count_var
5785 depending on presence and value of OMP_WAIT_POLICY and
5786 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
5787 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
5788 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
5789 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
5790 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
5791 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5792 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5793 (gomp_global_icv): New.
5794 (parse_schedule): Use it. Parse "auto".
5795 (omp_set_num_threads): Use gomp_icv.
5796 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
5798 (omp_get_max_threads): Move from parallel.c.
5799 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5800 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
5802 (parse_stacksize, parse_wait_policy): New functions.
5803 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
5804 both wrappers for compatibility and new locks.
5805 (omp_set_schedule, omp_get_schedule,
5806 omp_get_thread_limit, omp_set_max_active_levels,
5807 omp_get_max_active_levels, omp_get_level,
5808 omp_get_ancestor_thread_num, omp_get_team_size,
5809 omp_get_active_level): New ialias_redirect.
5810 (omp_set_schedule_, omp_set_schedule_8_,
5811 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5812 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5813 omp_get_max_active_levels_, omp_get_level_,
5814 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5815 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5817 * parallel.c: Include limits.h.
5818 (gomp_resolve_num_threads): Add count argument. Rewritten.
5819 (GOMP_parallel_start): Call gomp_new_team and pass that as last
5820 argument to gomp_team_start. Pass 0 as second argument to
5821 gomp_resolve_num_threads.
5822 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
5823 if gomp_thread_limit_var != ULONG_MAX.
5824 (omp_in_parallel): Implement using ts.active_level.
5825 (omp_get_max_threads): Move to env.c.
5826 (omp_get_level, omp_get_ancestor_thread_num,
5827 omp_get_team_size, omp_get_active_level): New functions,
5829 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
5830 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
5831 gomp_iter_dynamic_next instead of the _locked variant and don't take
5832 lock around it, otherwise acquire it before calling
5833 gomp_iter_dynamic_next_locked.
5834 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
5835 gomp_iter_dynamic_next instead of the _locked variant and don't take
5837 (GOMP_parallel_sections_start): Call gomp_new_team instead of
5838 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
5839 Adjust gomp_team_start caller. Pass count as second argument to
5840 gomp_resolve_num_threads, don't adjust num_threads after the call.
5842 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
5843 ws->chunk_size by incr.
5844 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
5846 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
5848 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
5849 (omp_check_defines): Check even the compat defines.
5850 * config/linux/ptrlock.c: New file.
5851 * config/linux/ptrlock.h: New file.
5852 * config/linux/wait.h: New file.
5853 * config/posix/ptrlock.c: New file.
5854 * config/posix/ptrlock.h: New file.
5855 * config/linux/bar.h (gomp_team_barrier_wait,
5856 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5857 (gomp_team_barrier_set_task_pending,
5858 gomp_team_barrier_clear_task_pending,
5859 gomp_team_barrier_set_waiting_for_tasks,
5860 gomp_team_barrier_waiting_for_tasks,
5861 gomp_team_barrier_done): New inlines.
5862 (gomp_barrier_t): Rewritten.
5863 (gomp_barrier_state_t): New typedef.
5864 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
5865 gomp_barrier_wait_start): Rewritten.
5866 (gomp_barrier_wait_end): Change second argument to
5867 gomp_barrier_state_t.
5868 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5870 * config/linux/bar.c: Include wait.h instead of libgomp.h and
5872 (gomp_barrier_wait_end): Rewritten.
5873 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5874 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
5875 * config/posix/bar.h (gomp_barrier_t): Add generation field.
5876 (gomp_barrier_state_t): New typedef.
5877 (gomp_team_barrier_wait,
5878 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5879 (gomp_barrier_wait_start): Or all but low 2 bits from generation
5880 into the return value. Return gomp_barrier_state_t.
5881 (gomp_team_barrier_set_task_pending,
5882 gomp_team_barrier_clear_task_pending,
5883 gomp_team_barrier_set_waiting_for_tasks,
5884 gomp_team_barrier_waiting_for_tasks,
5885 gomp_team_barrier_done): New inlines.
5886 (gomp_barrier_wait_end): Change second argument to
5887 gomp_barrier_state_t.
5888 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5890 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
5891 (gomp_barrier_wait_end): Change second argument to
5892 gomp_barrier_state_t.
5893 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5894 gomp_team_barrier_wake): New functions.
5895 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
5897 (gomp_futex_wake, gomp_futex_wait): New variables.
5898 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
5899 * config/linux/lock.c: Rewrite to make locks task owned,
5900 for backwards compatibility provide the old entrypoints
5901 if symbol versioning. Include wait.h instead of libgomp.h and
5903 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
5904 * config/posix95/lock.c: Rewrite to make locks task owned,
5905 for backwards compatibility provide the old entrypoints
5906 if symbol versioning.
5907 * config/posix/lock.c: Rewrite to make locks task owned,
5908 for backwards compatibility provide the old entrypoints
5909 if symbol versioning.
5910 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
5911 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
5912 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
5913 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5914 (sys_futex0): Return error code.
5915 (futex_wake, futex_wait): If ENOSYS was returned, clear
5916 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5917 (cpu_relax, atomic_write_barrier): New static inlines.
5918 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5919 (futex_wake, futex_wait): If ENOSYS was returned, clear
5920 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5921 (cpu_relax, atomic_write_barrier): New static inlines.
5922 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5923 (sys_futex0): Return error code.
5924 (futex_wake, futex_wait): If ENOSYS was returned, clear
5925 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5926 (cpu_relax, atomic_write_barrier): New static inlines.
5927 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5928 (sys_futex0): Return error code.
5929 (futex_wake, futex_wait): If ENOSYS was returned, clear
5930 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5931 (cpu_relax, atomic_write_barrier): New static inlines.
5932 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5933 (sys_futex0): Return error code.
5934 (futex_wake, futex_wait): If ENOSYS was returned, clear
5935 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5936 (cpu_relax, atomic_write_barrier): New static inlines.
5937 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5938 (sys_futex0): Return error code.
5939 (futex_wake, futex_wait): If ENOSYS was returned, clear
5940 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5941 (cpu_relax, atomic_write_barrier): New static inlines.
5942 * config/linux/sem.c: Include wait.h instead of libgomp.h and
5944 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
5945 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
5946 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
5948 (omp_nest_lock_t): Change owner into void *, add lock field.
5949 * config/posix95/omp-lock.h: Include semaphore.h.
5950 (omp_lock_25_t, omp_nest_lock_25_t): New types.
5951 (omp_lock_t): Use sem_t instead of mutex if semaphores
5953 (omp_nest_lock_t): Likewise. Change owner to void *.
5954 * config/posix/omp-lock.h: Include semaphore.h.
5955 (omp_lock_25_t, omp_nest_lock_25_t): New types.
5956 (omp_lock_t): Use sem_t instead of mutex if semaphores
5958 (omp_nest_lock_t): Likewise. Add owner field.
5960 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5962 * testsuite/libgomp.c/collapse-1.c: New test.
5963 * testsuite/libgomp.c/collapse-2.c: New test.
5964 * testsuite/libgomp.c/collapse-3.c: New test.
5965 * testsuite/libgomp.c/icv-1.c: New test.
5966 * testsuite/libgomp.c/icv-2.c: New test.
5967 * testsuite/libgomp.c/lib-2.c: New test.
5968 * testsuite/libgomp.c/lock-1.c: New test.
5969 * testsuite/libgomp.c/lock-2.c: New test.
5970 * testsuite/libgomp.c/lock-3.c: New test.
5971 * testsuite/libgomp.c/loop-4.c: New test.
5972 * testsuite/libgomp.c/loop-5.c: New test.
5973 * testsuite/libgomp.c/loop-6.c: New test.
5974 * testsuite/libgomp.c/loop-7.c: New test.
5975 * testsuite/libgomp.c/loop-8.c: New test.
5976 * testsuite/libgomp.c/loop-9.c: New test.
5977 * testsuite/libgomp.c/nested-3.c: New test.
5978 * testsuite/libgomp.c/nestedfn-6.c: New test.
5979 * testsuite/libgomp.c/sort-1.c: New test.
5980 * testsuite/libgomp.c/task-1.c: New test.
5981 * testsuite/libgomp.c/task-2.c: New test.
5982 * testsuite/libgomp.c/task-3.c: New test.
5983 * testsuite/libgomp.c/task-4.c: New test.
5984 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
5985 to C++ testsuite default compiler options.
5986 * testsuite/libgomp.c++/collapse-1.C: New test.
5987 * testsuite/libgomp.c++/collapse-2.C: New test.
5988 * testsuite/libgomp.c++/ctor-10.C: New test.
5989 * testsuite/libgomp.c++/for-1.C: New test.
5990 * testsuite/libgomp.c++/for-2.C: New test.
5991 * testsuite/libgomp.c++/for-3.C: New test.
5992 * testsuite/libgomp.c++/for-4.C: New test.
5993 * testsuite/libgomp.c++/for-5.C: New test.
5994 * testsuite/libgomp.c++/loop-8.C: New test.
5995 * testsuite/libgomp.c++/loop-9.C: New test.
5996 * testsuite/libgomp.c++/loop-10.C: New test.
5997 * testsuite/libgomp.c++/task-1.C: New test.
5998 * testsuite/libgomp.c++/task-2.C: New test.
5999 * testsuite/libgomp.c++/task-3.C: New test.
6000 * testsuite/libgomp.c++/task-4.C: New test.
6001 * testsuite/libgomp.c++/task-5.C: New test.
6002 * testsuite/libgomp.c++/task-6.C: New test.
6003 * testsuite/libgomp.fortran/allocatable1.f90: New test.
6004 * testsuite/libgomp.fortran/allocatable2.f90: New test.
6005 * testsuite/libgomp.fortran/allocatable3.f90: New test.
6006 * testsuite/libgomp.fortran/allocatable4.f90: New test.
6007 * testsuite/libgomp.fortran/collapse1.f90: New test.
6008 * testsuite/libgomp.fortran/collapse2.f90: New test.
6009 * testsuite/libgomp.fortran/collapse3.f90: New test.
6010 * testsuite/libgomp.fortran/collapse4.f90: New test.
6011 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
6012 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
6013 * testsuite/libgomp.fortran/lib4.f90: New test.
6014 * testsuite/libgomp.fortran/lock-1.f90: New test.
6015 * testsuite/libgomp.fortran/lock-2.f90: New test.
6016 * testsuite/libgomp.fortran/nested1.f90: New test.
6017 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
6018 * testsuite/libgomp.fortran/strassen.f90: New test.
6019 * testsuite/libgomp.fortran/tabs1.f90: New test.
6020 * testsuite/libgomp.fortran/tabs2.f: New test.
6021 * testsuite/libgomp.fortran/task1.f90: New test.
6022 * testsuite/libgomp.fortran/task2.f90: New test.
6023 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
6024 * testsuite/libgomp.fortran/vla5.f90: Likewise.
6025 * testsuite/libgomp.c/pr26943-2.c: Likewise.
6026 * testsuite/libgomp.c/pr26943-3.c: Likewise.
6027 * testsuite/libgomp.c/pr26943-4.c: Likewise.
6029 2008-05-23 Jakub Jelinek <jakub@redhat.com>
6032 * testsuite/libgomp.c++/ctor-11.C: New test.
6033 * testsuite/libgomp.c++/ctor-12.C: New test.
6035 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6037 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
6039 2008-05-07 Jakub Jelinek <jakub@redhat.com>
6042 * testsuite/libgomp.c/atomic-5.c: New test.
6043 * testsuite/libgomp.c/atomic-6.c: New test.
6044 * testsuite/libgomp.c/autopar-1.c: New test.
6046 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6048 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
6049 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
6050 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
6051 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
6052 * configure: Regenerate.
6053 * Makefile.in, testsuite/Makefile.in: Likewise.
6055 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
6058 * aclocal.m4: Regenerate.
6059 * configure: Regenerate.
6061 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6064 * testsuite/libgomp.c/atomic-4.c: New test.
6067 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
6068 (gomp_iter_guided_next): Likewise.
6069 * testsuite/libgomp.c/pr35625.c: New test.
6071 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6073 * aclocal.m4: Regenerate.
6074 * configure: Likewise.
6075 * Makefile.in: Likewise.
6076 * testsuite/Makefile.in: Likewise.
6078 2008-03-13 Jakub Jelinek <jakub@redhat.com>
6081 * testsuite/libgomp.c++/pr35185.C: New test.
6083 2008-03-12 Jakub Jelinek <jakub@redhat.com>
6086 * testsuite/libgomp.c/pr35549.c: New test.
6088 2008-03-06 Jakub Jelinek <jakub@redhat.com>
6090 * testsuite/libgomp.c/atomic-3.c: New test.
6092 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6095 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
6098 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
6101 * configure.ac: Add ACX_HEADER_STRING.
6102 * env.c: Include strings.h.
6103 * aclocal.m4: Regenerate.
6104 * config.h.in: Regenerate.
6105 * configure: Regenerate.
6106 * Makefile.in: Regenerate.
6107 * testsuite/Makefile.in: Regenerate.
6109 2008-02-15 Jakub Jelinek <jakub@redhat.com>
6112 * testsuite/libgomp.c/pr35196.c: New test.
6115 * testsuite/libgomp.fortran/pr35130.f90: New test.
6116 * testsuite/libgomp.c/pr35130.c: New test.
6118 2008-01-25 Jakub Jelinek <jakub@redhat.com>
6121 * testsuite/libgomp.c/pr33880.c: New test.
6122 * testsuite/libgomp.fortran/pr33880.f90: New test.
6124 2008-01-24 David Edelsohn <edelsohn@gnu.org>
6126 * configure: Regenerate.
6128 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6130 * configure.ac: Move futex checking into ../config/futex.m4.
6131 * configure: Rebuilt.
6132 * aclocal.m4: Rebuilt.
6133 * Makefile.in: Rebuilt.
6135 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
6136 2007-10-15 ../config/tls.m4 change.
6138 2007-12-19 Jakub Jelinek <jakub@redhat.com>
6141 * testsuite/libgomp.c/pr34513.c: New test.
6142 * testsuite/libgomp.c++/pr34513.C: New test.
6144 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
6147 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
6149 2007-12-04 Jakub Jelinek <jakub@redhat.com>
6151 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
6153 2007-12-03 Jakub Jelinek <jakub@redhat.com>
6155 * testsuite/libgomp.c/private-1.c: New test.
6157 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
6158 Paolo Bonzini <bonzini@gnu.org>
6160 * Makefile.am: Use space as vpath separator. Use 'vpath %'
6161 instead of 'VPATH ='.
6162 * Makefile.in: Regenerate.
6164 2007-11-23 Matthias Klose <doko@ubuntu.com>
6166 * configure.ac: Adjust makeinfo version check.
6167 * configure: Regenerate.
6169 2007-11-10 Jakub Jelinek <jakub@redhat.com>
6172 * testsuite/libgomp.fortran/pr34020.f90: New test.
6174 2007-11-06 Jakub Jelinek <jakub@redhat.com>
6177 * testsuite/libgomp.c++/atomic-1.C: New test.
6179 2007-10-25 Jakub Jelinek <jakub@redhat.com>
6182 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
6183 Make x and y integers rather than (implicit) reals. Add private (j)
6184 clause to the last omp parallel.
6186 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
6188 * configure: Regenerate following changes to ../config/tls.m4.
6190 2007-09-28 Jakub Jelinek <jakub@redhat.com>
6192 * testsuite/libgomp.fortran/stack.f90: New test.
6194 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
6196 * config/mingw32/proc.c: New file.
6198 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
6200 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
6201 (main): Use __get_cpuid to get i386 target fetaures.
6202 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
6203 (main): Use __get_cpuid to get x86_64 target fetaures.
6205 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
6208 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
6209 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
6211 2007-07-12 Jakub Jelinek <jakub@redhat.com>
6214 * testsuite/libgomp.fortran/pr32550.f90: New test.
6215 * testsuite/libgomp.fortran/crayptr2.f90: New test.
6217 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
6219 * aclocal.m4: Regenerated.
6221 2007-07-05 Tobias Burnus <burnus@net-b.de>
6224 * testsuite/libgomp.fortran/pr32359.f90: New.
6226 2007-07-02 Jakub Jelinek <jakub@redhat.com>
6229 * sections.c (GOMP_parallel_sections_start): Only decrease
6230 number of threads to COUNT if dyn_var is true.
6231 * testsuite/libgomp.c/pr32468.c: New test.
6233 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6236 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
6238 2007-06-21 Jakub Jelinek <jakub@redhat.com>
6241 * testsuite/libgomp.c/pr32362-1.c: New test.
6242 * testsuite/libgomp.c/pr32362-2.c: New test.
6243 * testsuite/libgomp.c/pr32362-3.c: New test.
6245 2007-06-07 Jakub Jelinek <jakub@redhat.com>
6247 * team.c (gomp_team_start): Fix setting up thread_attr
6250 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
6252 * configure: Regenerate.
6254 2007-05-23 Steve Ellcey <sje@cup.hp.com>
6256 * Makefile.in: Regenerate.
6257 * configure: Regenerate.
6258 * aclocal.m4: Regenerate.
6259 * testsuite/Makefile.in: Regenerate.
6261 2007-05-04 Jakub Jelinek <jakub@redhat.com>
6263 * config/linux/proc.c: New file.
6266 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
6268 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
6270 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
6272 2007-04-16 Matthias Klose <doko@debian.org>
6274 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
6275 flags if not building with -m64.
6276 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
6277 flag for i?86-*-* targets, if current target matches -m64.
6279 2007-04-14 Steve Ellcey <sje@cup.hp.com>
6281 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
6282 * Makefile.in: Regenerate.
6284 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6287 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
6289 * testsuite/libgomp.fortran/fortran.exp: Likewise.
6291 2007-04-04 Jakub Jelinek <jakub@redhat.com>
6293 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
6295 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
6296 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
6297 (parse_affinity): New function.
6298 (initialize_env): Call it and gomp_init_affinity.
6299 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
6300 create new pthread_attr_t and call gomp_init_thread_affinity
6301 on it for each thread before passing the attribute to pthread_create.
6302 * config/linux/affinity.c: New file.
6303 * config/posix/affinity.c: New file.
6304 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
6305 * configure: Rebuilt.
6306 * config.h.in: Rebuilt.
6307 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
6308 * Makefile.in: Rebuilt.
6310 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
6312 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
6314 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
6315 and use it if found.
6317 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
6319 * testsuite/config/default.exp: New file.
6320 * testsuite/lib/libgomp.exp: New file.
6321 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
6322 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
6323 load_lib *, load_gcc_lib *): Move to libgomp.exp.
6324 (libgomp_load): Remove.
6325 * testsuite/lib/libgomp.exp (libgomp_init): Compute
6326 always_ld_library_path, not ld_library_path. Set additional_flags
6327 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
6328 (target_compile): Do not call libgomp_init. Append lang_library_path
6329 and lang_link_flags to options.
6330 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
6331 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
6333 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
6334 always_ld_library_path. Set LD_LIBRARY_PATH here.
6335 * testsuite/libgomp.fortran/fortran.exp: Ditto.
6336 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
6337 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
6339 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
6340 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
6341 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
6342 * testsuite/libgomp.c/pr29947-1.c: Ditto.
6343 * testsuite/libgomp.c/atomic-10.c: Ditto.
6345 2007-03-21 Jakub Jelinek <jakub@redhat.com>
6347 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
6348 dg-final cleanup-modules line.
6349 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
6350 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
6351 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
6352 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
6353 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
6354 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
6355 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
6357 2007-03-18 Andreas Schwab <schwab@suse.de>
6359 * acinclude.m4: Adjust regular expression for ld version
6361 * configure: Regenerate.
6363 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
6365 * Makefile.am: Add install-pdf target as copied from
6366 automake v1.10 rules.
6367 * Makefile.in: Regenerate
6369 2007-02-07 Jakub Jelinek <jakub@redhat.com>
6372 * configure: Regenerate.
6375 * testsuite/libgomp.c++/pr30703.C: New test.
6377 2007-02-02 Jakub Jelinek <jakub@redhat.com>
6380 2006-07-05 Eric Christopher <echristo@apple.com>
6381 * configure.ac: Depend addition of -pthread on host OS.
6382 * configure: Regenerate.
6384 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6386 * libgomp.texi: Fix spacing after abbreviations.
6388 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
6391 * configure.ac: Add check for makeinfo
6392 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
6393 if an appropiate version of makeinfo is found.
6394 * aclocal.m4: Regenerated.
6395 * configure: Regenerated.
6396 * Makefile.in: Regenerated.
6397 * testsuite/Makefile.in: Regenerated.
6399 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
6402 * libgomp.texi: More about implementation-dependent settings.
6404 2007-01-26 Tobias Burnus <burnus@net-b.de>
6406 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
6408 2007-01-24 Jakub Jelinek <jakub@redhat.com>
6411 * testsuite/libgomp.c/pr30494.c: New test.
6413 2007-01-15 Tom Tromey <tromey@redhat.com>
6415 * configure: Rebuilt.
6416 * configure.ac: Fixed comment.
6418 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
6420 * libgomp.texi: Document implementation specific default values of
6421 environment variables.
6423 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
6426 * libgomp.texi: New file.
6427 * configure.ac: Add --enable-generated-files-in-srcdir option.
6428 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
6430 * Makefile.in: Regenerated.
6431 * config.h.in: Regenerated.
6432 * testsuite/Makefile.in: Regenerated.
6435 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
6438 * env.c (omp_set_num_threads): Set illegal thread count to 1.
6440 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6442 * configure: Regenerate.
6444 2006-12-04 Jakub Jelinek <jakub@redhat.com>
6447 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
6448 start if there shouldn't be any loop iterations.
6449 (gomp_loop_ordered_static_start): Remove start == end test.
6450 * testsuite/libgomp.c/pr29947-1.c: New test.
6451 * testsuite/libgomp.c/pr29947-2.c: New test.
6453 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
6455 * configure.tgt: Force initial-exec TLS model on Linux only.
6457 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
6459 * configure: Regenerated.
6461 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
6463 * env.c (parse_schedule): Reject out of range values.
6464 (parse_unsigned_long): Reject out of range, negative or zero values.
6466 2006-10-29 Jakub Jelinek <jakub@redhat.com>
6469 * testsuite/libgomp.fortran/pr29629.f90: New test.
6471 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
6474 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
6475 * config/posix95: New directory.
6476 * config/posix95/omp-lock.h: New file.
6477 * config/posix95/lock.c: Likewise.
6479 2006-10-14 Geoffrey Keating <geoffk@apple.com>
6481 * aclocal.m4: Regenerate.
6482 * configure: Regenerate.
6484 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6486 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
6489 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6491 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
6493 * configure: Regenerate.
6494 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
6496 2006-09-26 Jakub Jelinek <jakub@redhat.com>
6500 * testsuite/libgomp.c/nestedfn-4.c: New test.
6501 * testsuite/libgomp.c/nestedfn-5.c: New test.
6502 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
6505 * testsuite/libgomp.fortran/condinc1.f: New test.
6506 * testsuite/libgomp.fortran/condinc2.f: New test.
6507 * testsuite/libgomp.fortran/condinc3.f90: New test.
6508 * testsuite/libgomp.fortran/condinc4.f90: New test.
6509 * testsuite/libgomp.fortran/condinc1.inc: New file.
6511 2006-09-18 Tom Tromey <tromey@redhat.com>
6513 * configure: Rebuilt.
6515 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
6518 PR preprocessor/14634
6519 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
6521 * configure: Regenerate.
6523 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
6525 * testsuite/libgomp.fortran/reduction3.f90: Change
6526 -2147483648 to -huge(i)-1 to avoid overflow.
6527 * testsuite/libgomp.fortran/reduction4.f90: Change
6528 Z'ffffffff' to not(0) to avoid overflow.
6530 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
6533 * Makefile.am (libsubincludedir): New.
6534 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
6535 * Makefile.in: Regenerate.
6537 2006-08-17 Jakub Jelinek <jakub@redhat.com>
6540 * env.c: Include ctype.h.
6541 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
6542 leading and/or trailing whitespace and compare strings case
6545 2006-07-16 Jakub Jelinek <jakub@redhat.com>
6548 * testsuite/libgomp.fortran/pr28390.f: New test.
6550 2006-07-05 Eric Christopher <echristo@apple.com>
6552 * configure.ac: Depend addition of -pthread on host OS.
6553 * configure: Regenerate.
6555 2006-06-21 Jakub Jelinek <jakub@redhat.com>
6557 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
6558 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
6561 2006-06-20 Jakub Jelinek <jakub@redhat.com>
6565 * configure.ac: If neither --enable-linux-futex nor
6566 --disable-linux-futex is passed, determine the default by checking
6567 for compiling and/or running against NPTL. With --enable-linux-futex,
6568 check if SYS_gettid and SYS_futex are defined.
6569 * configure: Rebuilt.
6571 2006-06-14 Richard Henderson <rth@redhat.com>
6574 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
6575 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
6577 2006-06-09 Richard Henderson <rth@redhat.com>
6579 * env.c (gomp_nthreads_var): Change to unsigned long.
6580 (gomp_run_sched_chunk): Likewise.
6581 (parse_unsigned_long): Rename from parse_num_threads and generalize.
6582 (initialize_env): Initialize gomp_thread_attr.
6583 * libgomp.h (gomp_nthreads_var): Update decl.
6584 (gomp_run_sched_chunk): Likewise.
6585 (gomp_thread_attr): Declare.
6586 * team.c (gomp_thread_attr): Export.
6587 (initialize_team): Don't initialize it.
6589 2006-06-09 Jakub Jelinek <jakub@redhat.com>
6592 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
6593 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
6595 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6597 * config/mingw32/time.c: New file.
6598 * configure.tgt: Use it.
6600 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
6602 * Makefile.am: Add install-html target. Add install-html to .PHONY
6603 * Makefile.in: Regenerate.
6605 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6608 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
6609 * testsuite/libgomp.c/critical-1.c: Likewise.
6610 * testsuite/libgomp.c/loop-1.c: Likewise.
6611 * testsuite/libgomp.c/loop-2.c: Likewise.
6612 * testsuite/libgomp.c/single-1.c: Likewise.
6613 * testsuite/libgomp.c/ordered-1.c: Likewise.
6614 * testsuite/libgomp.c/ordered-2.c: Likewise.
6616 2006-05-15 Jakub Jelinek <jakub@redhat.com>
6619 * libgomp.fortran/pr27416-1.f90: New test.
6621 2006-05-03 Jakub Jelinek <jakub@redhat.com>
6624 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
6625 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
6627 2006-05-02 Jakub Jelinek <jakub@redhat.com>
6630 * testsuite/libgomp.c/pr26943-1.c: New test.
6631 * testsuite/libgomp.c/pr26943-2.c: New test.
6632 * testsuite/libgomp.c/pr26943-3.c: New test.
6633 * testsuite/libgomp.c/pr26943-4.c: New test.
6634 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
6635 * testsuite/libgomp.c++/pr26943.C: New test.
6637 2006-05-02 Jakub Jelinek <jakub@redhat.com>
6640 * testsuite/libgomp.c++/pr27337.C: New test.
6642 2006-04-26 Jakub Jelinek <jakub@redhat.com>
6645 * testsuite/libgomp.c/pr26171.c: New test.
6647 2006-04-25 Richard Henderson <rth@redhat.com>
6650 * configure.ac: Use GCC_CHECK_TLS.
6651 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
6652 * Makefile.in, aclocal.m4, configure: Regenerate.
6654 2006-04-10 Matthias Klose <doko@debian.org>
6656 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
6657 directory names containing underscores.
6659 2006-03-21 Jakub Jelinek <jakub@redhat.com>
6662 * testsuite/libgomp.c++/pr26691.C: New test.
6664 2006-03-13 Jakub Jelinek <jakub@redhat.com>
6666 * testsuite/libgomp.fortran/retval2.f90: New test.
6668 2006-03-09 Diego Novillo <dnovillo@redhat.com>
6670 * testsuite/libgomp.c++: New directory.
6672 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
6674 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
6675 * config/posix/sem.c: Implement the above.
6677 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
6679 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
6680 define HAVE_BROKEN_POSIX_SEMAPHORES.
6681 * configure: Rebuilt.
6682 * config.h.in: Rebuilt.
6684 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6687 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
6688 for the other pthread check.
6689 * configure: Regenerate.
6690 * config.h.in: Regenerate.
6692 2006-02-15 Jakub Jelinek <jakub@redhat.com>
6696 * Makefile.am (fincludedir): New variable.
6697 (nodist_include_HEADERS): Remove Fortran files.
6698 (nodist_finclude_HEADERS): New variable.
6699 * Makefile.in: Regenerated.
6701 2006-02-13 Jakub Jelinek <jakub@redhat.com>
6703 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
6704 Remove tests for returning assumed character length arrays.
6706 2006-02-12 Roger Sayle <roger@eyesopen.com>
6707 John David Anglin <dave@hiauly1.hia.nrc.ca>
6710 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
6712 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6714 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
6716 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6718 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
6719 part of LD_LIBRARY_PATH manually.
6721 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
6724 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
6727 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
6730 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
6731 * configure.ac (PERL): Don't set.
6732 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
6733 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
6734 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
6735 * omp.h.in: Wrap the new configure substitutions with @ characters.
6736 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
6737 * aclocal.m4, configure, Makefile.in: Regenerate.
6738 * mkomp_h.pl: Delete.
6740 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
6743 * configure.ac: Use GCC_HEADER_STDINT.
6744 * libgomp.h: Include gstdint.h.
6745 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
6746 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
6748 2006-01-24 Richard Henderson <rth@redhat.com>
6751 * configure.ac: Add AM_MAINTAINER_MODE.
6752 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
6754 2006-01-24 Diego Novillo <dnovillo@redhat.com>
6756 * Makefile.in: Regenerate.
6757 * testsuite/Makefile.in: Regenerate.
6758 * aclocal.m4: Regenerate.
6760 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
6762 * config/posix/proc.c: Conditional include of sys/loadavg.h for
6764 * configure.ac: Add check for loadavg.h.
6765 (link_gomp): Adjust comment.
6766 * configure: Regenerate.
6767 * config.h.in: Regenerate.
6769 2006-01-21 Steve Ellcey <sje@cup.hp.com>
6772 * configure.ac: Remove check for alloca.h.
6773 * configure: Regenerate.
6774 * config.h.in: Regenerate.
6775 * libgomp.h: define gomp_alloca to be __builtin_alloca.
6776 * team.c: Remove use of alloca.h.
6777 Call gomp_alloca instead of alloca.
6779 2006-01-20 Steve Ellcey <sje@cup.hp.com>
6782 * team.c: Add include of alloca.h.
6783 * configure.ac: Add check for alloca.h.
6784 * configure: Regenerate.
6785 * config.h.in: Regenerate.
6787 2006-01-17 Jakub Jelinek <jakub@redhat.com>
6790 * testsuite/libgomp.fortran/pr25219.f90: New test.
6792 2005-12-05 Uros Bizjak <uros@kss-loka.si>
6794 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
6795 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
6796 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
6797 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
6798 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
6799 testsuite/libgomp.fortran/threadprivate1.f90,
6800 testsuite/libgomp.fortran/threadprivate2.f90,
6801 testsuite/libgomp.fortran/threadprivate3.f90,
6802 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6803 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6804 testsuite/libgomp.fortran/omp_parse3.f90: Change required
6805 effective-target to TLS runtime.
6807 * testsuite/libgomp.fortran/pr25162.f: Require
6808 effective-target TLS runtime.
6810 2005-12-01 Jakub Jelinek <jakub@redhat.com>
6812 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
6813 * testsuite/libgomp.c/nestedfn-3.c: New test.
6815 2005-11-30 Jakub Jelinek <jakub@redhat.com>
6818 * testsuite/libgomp.fortran/pr25162.f: New test.
6820 2005-11-28 Jakub Jelinek <jakub@redhat.com>
6822 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
6823 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
6825 2005-11-25 Jakub Jelinek <jakub@redhat.com>
6827 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
6828 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
6829 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
6830 single.c, team.c, work.c, config/linux/alpha/futex.h,
6831 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
6832 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
6833 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
6834 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
6835 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
6836 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
6837 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
6840 2005-11-18 Jakub Jelinek <jakub@redhat.com>
6842 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
6843 to nodist_noinst_HEADERS.
6844 * Makefile.in: Rebuilt.
6846 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
6847 add integer count field.
6848 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
6849 omp_nest_lock_t type change.
6850 (omp_init_nest_lock): Likewise. Initialize count to 0.
6851 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
6853 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
6855 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
6856 Increment count if successful and return the new nesting level.
6857 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
6858 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
6859 * testsuite/libgomp.c/lib-1.c: New test.
6860 * testsuite/libgomp.fortran/lib1.f90: New test.
6861 * testsuite/libgomp.fortran/lib2.f: New test.
6862 * testsuite/libgomp.fortran/lib3.f: New test.
6864 2005-11-17 Richard Henderson <rth@redhat.com>
6867 * Makefile.am (nodist_toolexeclib_HEADERS): New.
6868 * configure.ac (link_gomp): New. Substitute it.
6869 (AC_CONFIG_FILES): Add libgomp.spec.
6870 * libgomp.spec.in: New file.
6871 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
6872 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
6874 2005-11-18 Jakub Jelinek <jakub@redhat.com>
6876 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
6877 reduction(-:var) behaving the same as reduction(+:var).
6878 * testsuite/libgomp.c/reduction-4.c: New test.
6880 2005-11-15 Uros Bizjak <uros@kss-loka.si>
6882 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
6883 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
6884 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-1.C,
6888 testsuite/libgomp.c++/pr24455.C,
6889 testsuite/libgomp.fortran/threadprivate1.f90,
6890 testsuite/libgomp.fortran/threadprivate2.f90,
6891 testsuite/libgomp.fortran/threadprivate3.f90,
6892 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6893 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6894 testsuite/libgomp.fortran/omp_parse3.f90: Require
6895 effective-target TLS.
6897 2005-11-14 Diego Novillo <dnovillo@redhat.com>
6901 2005-11-13 Jakub Jelinek <jakub@redhat.com>
6904 * team.c (initialize_team): Pass NULL rather than free as
6905 pthread_key_create destructor. Initialize thread specific data
6906 pointer in initial thread to a static local variable rather than
6909 2005-11-11 Uros Bizjak <uros@kss-loka.si>
6911 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
6912 its location to ld_library_path.
6914 2005-11-10 Diego Novillo <dnovillo@redhat.com>
6916 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
6918 2005-11-10 Diego Novillo <dnovillo@redhat.com>
6920 * testsuite/libgomp.c: Rename from libgomp.dg.
6922 2005-11-09 Diego Novillo <dnovillo@redhat.com>
6924 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
6925 threadprivate variable 'i'.
6927 2005-11-09 Jakub Jelinek <jakub@redhat.com>
6929 * config/linux/s390/futex.h: New file.
6930 * configure.tgt: Use it.
6932 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
6933 before the parallel.
6935 2005-11-08 Jakub Jelinek <jakub@redhat.com>
6938 * testsuite/libgomp.c++/master-1.C: New test.
6940 2005-11-07 Jakub Jelinek <jakub@redhat.com>
6942 * testsuite/libgomp.dg/copyin-3.c: New test.
6944 2005-11-07 Jakub Jelinek <jakub@redhat.com>
6946 * testsuite/libgomp.fortran/retval1.f90: New test.
6947 * testsuite/libgomp.fortran/vla7.f90: New test.
6949 2005-11-06 Jakub Jelinek <jakub@redhat.com>
6951 * testsuite/libgomp.fortran/vla2.f90: New test.
6952 * testsuite/libgomp.fortran/vla3.f90: New test.
6953 * testsuite/libgomp.fortran/vla4.f90: New test.
6954 * testsuite/libgomp.fortran/vla5.f90: New test.
6955 * testsuite/libgomp.fortran/vla6.f90: New test.
6957 2005-11-01 Jakub Jelinek <jakub@redhat.com>
6959 * config/linux/sparc/futex.h: New file.
6960 * configure.tgt: Use it.
6961 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
6963 * critical.c: Include stdlib.h.
6964 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
6965 ignoring return value.
6966 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
6967 LIBGOMP_CHECK_SYNC_BUILTINS check.
6968 * configure: Rebuilt.
6970 2005-10-31 Jakub Jelinek <jakub@redhat.com>
6972 * testsuite/libgomp.fortran/vla1.f90: New test.
6974 2005-10-31 Richard Henderson <rth@redhat.com>
6976 * testsuite/libgomp.fortran/character2.f90: Fix race condition
6977 setting 's' in different threads.
6979 2005-10-31 Jakub Jelinek <jakub@redhat.com>
6981 * libgomp.h (attribute_hidden, ialias): Define.
6982 * config/posix/proc.c (omp_get_num_procs): Add ialias.
6983 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
6984 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
6985 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
6986 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
6987 omp_test_lock, omp_test_nest_lock): Likewise.
6988 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
6989 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
6990 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
6991 omp_test_lock, omp_test_nest_lock): Likewise.
6992 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
6993 omp_get_dynamic, omp_get_nested): Likewise.
6994 * parallel.c (omp_get_num_threads, omp_get_max_threads,
6995 omp_get_thread_num, omp_in_parallel): Likewise.
6996 * fortran.c (ialias_redirect): Define.
6997 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
6998 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
6999 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
7000 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
7001 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
7002 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
7003 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
7004 omp_get_wtime): Add ialias_redirect.
7006 2005-10-30 Jakub Jelinek <jakub@redhat.com>
7008 * fortran.c: Include stdlib.h.
7010 2005-10-29 Jakub Jelinek <jakub@redhat.com>
7012 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
7013 * Makefile.in: Regenerated.
7015 2005-10-28 Jakub Jelinek <jakub@redhat.com>
7017 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
7018 * libgomp_f.h.in (omp_check_defines): New function.
7019 * env.c: Include libgomp_f.h.
7020 (initialize_env): Call omp_check_defines.
7022 * testsuite/libgomp.dg/copyin-2.c: New test.
7023 * testsuite/libgomp.c++/copyin-2.C: New test.
7024 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
7026 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
7027 * testsuite/libgomp.fortran/sharing2.f90: New test.
7029 * testsuite/libgomp.dg/copyin-1.c: New test.
7030 * testsuite/libgomp.c++/copyin-1.C: New test.
7032 2005-10-26 Jakub Jelinek <jakub@redhat.com>
7034 * testsuite/libgomp.fortran/crayptr1.f90: New test.
7036 * testsuite/libgomp.fortran/workshare1.f90: New test.
7038 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
7040 * libgomp.fortran/sharing1.f90: New test.
7042 2005-10-24 Jakub Jelinek <jakub@redhat.com>
7045 * testsuite/libgomp.c++/loop-7.C: New test.
7047 * testsuite/libgomp.dg/nestedfn-2.c: New test.
7049 * testsuite/libgomp.dg/nestedfn-1.c: New test.
7050 * testsuite/libgomp.fortran/reduction6.f90: New test.
7051 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
7053 2005-10-23 Richard Henderson <rth@redhat.com>
7055 * testsuite/libgomp.c++/ctor-1.C: New.
7056 * testsuite/libgomp.c++/ctor-2.C: New.
7057 * testsuite/libgomp.c++/ctor-3.C: New.
7058 * testsuite/libgomp.c++/ctor-4.C: New.
7059 * testsuite/libgomp.c++/ctor-5.C: New.
7060 * testsuite/libgomp.c++/ctor-6.C: New.
7061 * testsuite/libgomp.c++/ctor-7.C: New.
7062 * testsuite/libgomp.c++/ctor-8.C: New.
7063 * testsuite/libgomp.c++/ctor-9.C: New.
7065 2005-10-21 Diego Novillo <dnovillo@redhat.com>
7068 * testsuite/libgomp.c++/pr24455-1.C: New test.
7069 * testsuite/libgomp.c++/pr24455.C: New test.
7070 * testsuite/libgomp.dg/pr24455-1.c: New test.
7071 * testsuite/libgomp.dg/pr24455.c: New test.
7073 2005-10-20 Richard Henderson <rth@redhat.com>
7075 * testsuite/libgomp.c++/loop-6.C: New.
7076 * testsuite/libgomp.dg/loop-3.c: New.
7078 2005-10-20 Jakub Jelinek <jakub@redhat.com>
7080 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
7082 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
7085 2005-10-19 Diego Novillo <dnovillo@redhat.com>
7087 * testsuite/libgomp.fortran/jacobi.f: New test.
7089 2005-10-19 Richard Henderson <rth@redhat.com>
7091 * configure.tgt (i?86-linux): Default to with_arch instead of
7092 CFLAGS. Add -mtune to match target_cpu.
7093 (x86_64-linux): Tune to i686.
7095 * fortran.c (omp_test_nest_lock_): Fix typo.
7097 2005-10-19 Jakub Jelinek <jakub@redhat.com>
7099 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
7100 gomp_ordered_sync): Do nothing if team->nthreads == 1.
7101 * testsuite/libgomp.dg/ordered-3.c: New test.
7103 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
7104 Remove volatile keyword.
7106 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
7107 in COMMON block to avoid warnings on 64-bit targets.
7109 2005-10-18 Diego Novillo <dnovillo@redhat.com>
7111 * testsuite/libgomp.dg/shared-3.c: New test.
7113 2005-10-18 Jakub Jelinek <jakub@redhat.com>
7115 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
7116 * testsuite/libgomp.fortran/reduction5.f90: New test.
7118 2005-10-18 Jakub Jelinek <jakub@redhat.com>
7120 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
7122 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
7123 flush loop now that __sync_synchronize has proper memory barrier.
7124 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
7125 Add -ffixed-form to dg-options.
7127 2005-10-17 Diego Novillo <dnovillo@redhat.com>
7129 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
7130 from subdirectories.
7131 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
7132 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
7133 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
7134 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
7135 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
7136 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
7137 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
7138 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
7139 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
7140 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
7141 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
7142 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
7143 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
7144 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
7145 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
7146 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
7147 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
7148 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
7149 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
7150 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
7151 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
7152 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
7153 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
7154 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
7155 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
7157 2005-10-17 Jakub Jelinek <jakub@redhat.com>
7159 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
7160 lang_library_path exists. Use find instead of glob to gather tests.
7161 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
7163 2005-10-17 Diego Novillo <dnovillo@redhat.com>
7165 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
7166 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
7167 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
7168 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
7169 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
7170 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
7171 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
7172 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
7173 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
7174 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
7175 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
7176 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
7177 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
7179 2005-10-15 Jakub Jelinek <jakub@redhat.com>
7181 * testsuite/libgomp.dg/vla-1.c: New test.
7183 * testsuite/libgomp.fortran/reference2.f90: New test.
7185 * testsuite/libgomp.fortran/character2.f90: Remove explicit
7186 declaration of omp_get_thread_num.
7187 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
7190 * testsuite/libgomp.fortran/reduction1.f90: New test.
7191 * testsuite/libgomp.fortran/reduction2.f90: New test.
7192 * testsuite/libgomp.fortran/reduction3.f90: New test.
7193 * testsuite/libgomp.fortran/reduction4.f90: New test.
7195 2005-10-13 Richard Henderson <rth@redhat.com>
7197 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
7198 * Makefile.in: Regenerate.
7199 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
7200 * libgomp.h: Include bar.h.
7201 (struct gomp_barrier): Remove.
7202 (struct gomp_team): Add barrier. Replace master_barrier with
7203 master_release. Replace threads with ordered_release.
7204 (struct gomp_thread): Replace barrier with release.
7205 * ordered.c (gomp_ordered_first): Update for ordered_release change.
7206 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
7207 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
7208 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
7209 (GOMP_single_copy_end): Likewise.
7210 * team.c (gomp_threads_dock): New.
7211 (gomp_barrier_init, gomp_barrier_destroy): Remove.
7212 (gomp_thread_start): Use gomp_barrier_wait.
7213 (new_team, free_team): Update for gomp_team changes.
7214 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
7215 (gomp_team_end): Use gomp_barrier_wait.
7216 (initialize_team): Update for gomp_thread changes.
7217 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
7218 (gomp_work_share_end_nowait): Use atomic ops when available.
7219 * config/linux/bar.c, config/linux/bar.h: New files.
7220 * config/posix/bar.c, config/posix/bar.h: New files.
7222 2005-10-13 Jakub Jelinek <jakub@redhat.com>
7224 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
7225 * testsuite/libgomp.dg/single-2.c: New test.
7227 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
7228 lang_link_flags): Unset, so that they aren't inherited from previously
7231 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
7233 2005-10-12 Richard Henderson <rth@redhat.com>
7235 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
7236 (libgomp_init): Use lang_test_file, lang_library_path, and
7237 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
7239 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
7240 (lang_test_file, lang_link_flags): New.
7241 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
7243 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
7244 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
7245 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
7246 testsuite/libgomp.c++/parallel-1.C,
7247 testsuite/libgomp.c++/reduction-1.C,
7248 testsuite/libgomp.c++/reduction-2.C,
7249 testsuite/libgomp.c++/reduction-3.C,
7250 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
7251 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
7252 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
7253 New files, largely cribbed from the C testsuite.
7255 2005-10-12 Jakub Jelinek <jakub@redhat.com>
7257 * testsuite/libgomp.fortran/character1.f90: New test.
7258 * testsuite/libgomp.fortran/character2.f90: New test.
7260 * testsuite/libgomp.dg/nested-1.c: New test.
7261 * testsuite/libgomp.dg/nested-2.c: New test.
7262 * testsuite/libgomp.fortran/do1.f90: New test.
7263 * testsuite/libgomp.fortran/do2.f90: New test.
7265 * testsuite/libgomp.fortran/reference1.f90: New test.
7267 2005-10-11 Jakub Jelinek <jakub@redhat.com>
7269 * testsuite/libgomp.dg/reduction-1.c: New test.
7270 * testsuite/libgomp.dg/reduction-2.c: New test.
7271 * testsuite/libgomp.dg/reduction-3.c: New test.
7273 2005-10-10 Jakub Jelinek <jakub@redhat.com>
7275 * testsuite/libgomp.dg/atomic-1.c: New test.
7276 * testsuite/libgomp.dg/atomic-2.c: New test.
7278 2005-10-09 Richard Henderson <rth@redhat.com>
7280 * critical.c (atomic_lock): New.
7281 (initialize_critical): Initialize it.
7282 (GOMP_atomic_start, GOMP_atomic_end): New.
7283 * libgomp.map: Export them.
7284 * libgomp_g.h: Declare them.
7286 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
7288 2005-10-02 Richard Henderson <rth@redhat.com>
7290 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
7291 to XCFLAGS instead of CFLAGS.
7293 2005-09-30 Richard Henderson <rth@redhat.com>
7295 * configure.ac: Determine whether -pthread or -lpthread is needed.
7296 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
7297 * Makefine.in, configure: Rebuild.
7299 2005-09-28 Richard Henderson <rth@redhat.com>
7301 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
7302 * testsuite/libgomp.dg/omp-single-3.c: New test.
7304 2005-09-28 Diego Novillo <dnovillo@redhat.com>
7306 * testsuite/libgomp.dg/omp-single-2.c: New test.
7307 * testsuite/libgomp.dg/shared-2.c: Fix return code.
7309 2005-09-27 Richard Henderson <rth@redhat.com>
7311 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
7312 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
7314 2005-09-27 Jakub Jelinek <jakub@redhat.com>
7316 * testsuite/libgomp.dg/omp-loop03.c: New test.
7318 2005-09-27 Diego Novillo <dnovillo@redhat.com>
7320 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
7322 2005-09-27 Diego Novillo <dnovillo@redhat.com>
7324 * testsuite/libgomp.dg/omp-single-1.c: New test.
7325 * testsuite/libgomp.dg/shared-1.c: Return 0.
7326 Add prototype for abort.
7327 * testsuite/libgomp.dg/shared-2.c: Likewise.
7329 2005-09-26 Jakub Jelinek <jakub@redhat.com>
7331 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
7334 2005-09-26 Diego Novillo <dnovillo@redhat.com>
7336 * testsuite/libgomp.dg/shared-1.c: New test.
7337 * testsuite/libgomp.dg/shared-2.c: New test.
7339 2005-09-24 Richard Henderson <rth@redhat.com>
7341 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
7343 2005-09-24 Richard Henderson <rth@redhat.com>
7345 * iter.c (gomp_iter_static_next): Round up when computing number
7346 of iterations. Don't bother distributing a remainder equally.
7348 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
7349 Don't call srand. Zero b before testing.
7352 2005-09-24 Jakub Jelinek <jakub@redhat.com>
7354 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
7355 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
7357 2005-09-23 Jakub Jelinek <jakub@redhat.com>
7359 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
7360 without !$omp end do, followed immediately by subroutine end.
7362 2005-09-23 Diego Novillo <dnovillo@redhat.com>
7364 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
7366 2005-09-22 Richard Henderson <rth@redhat.com>
7368 * critical.c (GOMP_critical_name_start): Change argument to void**.
7369 Reuse the pointer space if the mutex fits.
7370 (GOMP_critical_name_end): Likewise.
7371 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
7372 * libgomp_g.h (GOMP_critical_name_start): Update decl.
7373 (GOMP_critical_name_end): Likewise.
7374 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
7375 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
7377 2005-09-20 Richard Henderson <rth@redhat.com>
7379 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
7380 (create_lock_lock): New.
7381 (initialize_critical): Initialize it.
7382 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
7383 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
7385 2005-09-20 Diego Novillo <dnovillo@redhat.com>
7387 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
7389 2005-09-20 Diego Novillo <dnovillo@redhat.com>
7391 * testsuite/libgomp.dg/omp-loop01.c: New test.
7392 * testsuite/libgomp.dg/omp-loop02.c: New test.
7394 2005-09-20 Jakub Jelinek <jakub@redhat.com>
7396 * configure.ac (AC_PROG_FC): Add.
7397 (USE_FORTRAN): New automake conditional.
7398 * configure: Rebuilt.
7399 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
7400 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
7401 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
7402 Add rules to build them.
7403 * Makefile.in: Rebuilt.
7404 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
7406 * libgomp.map: Add Fortran wrappers.
7407 * libgomp_f.h.in: New file.
7408 * omp_lib.h.in: New file.
7409 * omp_lib.f90.in: New file.
7410 * fortran.c: New file.
7411 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
7412 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
7413 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
7414 libgfortran has been built.
7415 * testsuite/libgomp.fortran/fortran.exp: New file.
7416 * testsuite/libgomp.fortran/omp_cond1.f: New test.
7417 * testsuite/libgomp.fortran/omp_cond2.f: New test.
7418 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
7419 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
7420 * testsuite/libgomp.fortran/omp_hello.f: New test.
7421 * testsuite/libgomp.fortran/omp_orphan.f: New test.
7422 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
7423 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
7424 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
7425 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
7426 * testsuite/libgomp.fortran/omp_reduction.f: New test.
7427 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
7428 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
7430 2005-08-30 Richard Henderson <rth@redhat.com>
7432 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
7433 function for when aliases are not usable.
7434 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
7435 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7436 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
7437 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
7438 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
7439 GOMP_loop_ordered_guided_next): Likewise.
7440 * ordered.c (GOMP_ordered_start): Likewise.
7442 2005-08-01 Diego Novillo <dnovillo@redhat.com>
7444 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
7445 * testsuite/libgomp.dg/omp_hello.c: Fix return code
7446 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
7447 * testsuite/libgomp.dg/omp_orphan.c: Likewise
7448 * testsuite/libgomp.dg/omp_reduction.c: Likewise
7449 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
7450 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
7451 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
7452 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
7454 2005-07-07 Eric Christopher <echristo@redhat.com>
7455 Diego Novillo <dnovillo@redhat.com>
7457 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
7458 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
7460 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
7461 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
7462 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
7463 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
7464 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
7465 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
7466 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
7468 2005-06-13 Diego Novillo <dnovillo@redhat.com>
7470 * TOPLEVEL.patch: Remove.
7472 2005-05-16 Richard Henderson <rth@redhat.com>
7474 * configure.ac: Test for clock_gettime.
7475 * config.h.in, configure: Rebuild.
7476 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
7477 (omp_get_wtime): Use clock_gettime if available.
7478 (omp_get_wtick): Use clock_getres if available.
7480 2005-05-11 Richard Henderson <rth@redhat.com>
7482 * config/linux/ia64/futex.h: New file.
7483 * configure.tgt: Use it.
7485 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
7487 2005-05-07 Richard Henderson <rth@redhat.com>
7489 * config/linux/powerpc/futex.h: New file.
7490 * configure.tgt: Use it.
7492 * config/linux/i486/futex.h: Merge ...
7493 * config/linux/x86_64/futex.h: ... into ...
7494 * config/linux/x86/futex.h: ... here.
7495 * configure.tgt: Update to match.
7497 2005-05-06 Richard Henderson <rth@redhat.com>
7499 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
7500 * config/linux/i486/futex.h: Likewise.
7501 * config/linux/x86_64/futex.h: Likewise.
7503 * config/linux/lock.c: New file.
7504 * config/linux/omp-lock.h: New file.
7506 * critical.c, env.h: Don't include omp.h
7507 * config/posix/lock.c: Include libgomp.h instead of omp.h.
7508 * config/posix/time.c: Likewise.
7509 * config/posix/omp-lock.h: New file.
7510 * libgomp.h: Include omp-lock.h and omp.h.
7511 * Makefile.am (nodist_include_HEADERS): New.
7513 * configure.ac (PERL): New.
7514 * mkomp_h.pl: New file.
7515 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
7517 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
7519 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
7520 build directory. Re-add -march=i486 hack.
7522 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
7523 (libgomp_link_flags): Remove.
7524 (libgomp_initialized): Remove.
7525 (libgomp_init): Don't protect from reinitialization. Copy code
7526 from libstdc++ for getting the multilib set correctly.
7528 2005-05-05 Richard Henderson <rth@redhat.com>
7530 * config/linux/alpha/futex.h: New file.
7531 * configure.tgt (alpha*-*-linux*): Use it.
7533 * config/posix/mutex.c: New file.
7534 * config/posix/sem.c: Use libgomp.h.
7536 * configure.tgt (x86_64-linux): Also test CC for -m32.
7537 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
7539 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
7542 * Makefile.am (SUBDIRS): New.
7543 (libgomp_la_LDFLAGS): Add -lpthread.
7544 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
7545 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
7547 * libgomp_g.h: New file.
7548 * libgomp.h: Split out all public declarations to libgomp_g.h.
7549 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
7550 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
7551 * config/linux/sem.h: Likewise.
7552 * config/posix/sem.h: Likewise.
7554 * Makefile.am (AM_LDFLAGS): New.
7555 (libgomp_version_script): Split out from ...
7556 (libgomp_la_LDFLAGS): ... here.
7557 (libgomp_version_info): New.
7558 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
7559 (LIBGOMP_ENABLE): New.
7560 (LIBGOMP_CHECK_LINKER_FEATURES): New.
7561 (LIBGOMP_ENABLE_SYMVERS): New.
7562 * configure.ac (AC_INIT): Version 1.0.
7563 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
7564 (enable-linux-futex): Likewise. Rename from enable-futex.
7565 (libtool_VERSION): New.
7566 (LIBGOMP_ENABLE_SYMVERS): Use it.
7567 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
7568 * Makefile.in, aclocal.m4, configure: Rebuild.
7570 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
7571 (gomp_mutex_unlock_slow): Fix typo.
7572 * config/linux/sem.c: Similarly.
7573 (gomp_sem_post_slow): Fix typo.
7574 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
7575 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
7576 [__PIC__] (sys_futex0): Don't use tmp output in asm.
7578 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
7579 (libgomp_la_LDFLAGS): Add top_srcdir to path.
7580 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
7581 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
7582 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
7583 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
7584 LDFLAGS. Pull enable_futex check to top-level.
7585 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
7586 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
7588 First attempt at real configury.
7589 * Makefile, config.h: Remove file.
7590 * Makefile.am, Makefile.in: New file.
7591 * acinclude.m4 aclocal.m4: New file.
7592 * configure.ac, configure.tgt, configure: New file.
7594 * config/posix/lock.c: Rename from sys-lock.c.
7595 * config/posix/mutex.h: Rename from sys-mutex.h.
7596 * config/posix/sem.c: Rename from sys-sem.c.
7597 * config/posix/sem.h: Rename from sys-sem.h.
7598 * config/posix/proc.c: Rename from sys-proc.c.
7599 * config/posix/time.c: Rename from sys-proc.c.
7601 * config/linux/mutex.c: New file.
7602 * config/linux/mutex.h: New file.
7603 * config/linux/sem.c: New file.
7604 * config/linux/sem.h: New file.
7605 * config/linux/i486/futex.h: New file.
7606 * config/linux/x86_64/futex.h: New file.
7608 2005-05-04 Richard Henderson <rth@redhat.com>
7610 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
7611 * libgomp.h: Declare them.
7612 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
7613 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
7615 2005-05-04 Richard Henderson <rth@redhat.com>
7617 * libgomp-1 code drop
7619 2005-05-04 Richard Henderson <rth@redhat.com>
7621 * iter.c (gomp_iter_static_next): Return tri-state on 0.
7622 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
7623 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
7624 (gomp_iter_static_next): Update.
7625 (gomp_ordered_static_next): Update.
7626 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
7627 (gomp_loop_ordered_static_start): Likewise. Exit early for a
7628 totally empty range.
7629 (gomp_loop_ordered_static_next): Refine test for calling
7630 gomp_ordered_static_next.
7631 * testsuite/ordered-1.c: Add case for more threads than iterations.
7633 * iter.c (gomp_iter_runtime_next_locked): Remove.
7634 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
7635 gomp_loop_guided_start, gomp_loop_ordered_static_start,
7636 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7637 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
7638 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
7639 gomp_loop_ordered_guided_next): Downcase name, make static, add
7640 an external alias with the old name.
7641 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7642 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
7643 switch and call one of the above static functions.
7644 * libgomp.h: Update.
7646 * work.c (gomp_work_share_start): Lock the mutex for !first too.
7647 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
7648 GOMP_loop_guided_start, GOMP_loop_runtime_start,
7649 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7650 GOMP_loop_ordered_guided_start): Update to match.
7651 * sections.c (GOMP_sections_start): Likewise.
7652 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
7654 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
7655 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
7656 Use bounds check instead of modulus.
7657 (gomp_ordered_sync): Split out of GOMP_ordered_start.
7658 (gomp_ordered_last): Don't sync with ordered_owner here.
7659 (gomp_ordered_next): Likewise.
7660 (gomp_ordered_static_loop_next): Likewise.
7661 * loop.c, libgomp.h: Update to match.
7663 * libgomp.h (GOMP_barrier): Declare.
7665 * testsuite/barrier-1.c: New file.
7666 * testsuite/critical-1.c: New file.
7667 * testsuite/ordered-2.c: New file.
7668 * testsuite/ordered-1.c: New file.
7669 * testsuite/sections-1.c: New file.
7670 * testsuite/single-1.c: New file.
7671 * testsuite/Makefile (TESTS): Add them.
7673 2005-05-04 Richard Henderson <rth@redhat.com>
7675 * libgomp.h (struct gomp_work_share): Add ordered_owner.
7676 * loop.c (GOMP_loop_static_start): If not the startup thread,
7677 acquire the mutex to wait for initialization complete.
7678 (GOMP_loop_ordered_static_start): Likewise.
7679 (GOMP_loop_ordered_runtime_start): Likewise.
7680 (GOMP_loop_ordered_static_first): Remove.
7681 (GOMP_loop_ordered_dynamic_first): Remove.
7682 (GOMP_loop_ordered_guided_first): Remove.
7683 (GOMP_loop_ordered_runtime_first): Remove.
7684 * ordered.c (gomp_ordered_loop_first): Post to own release when
7685 we're the first thread.
7686 (gomp_ordered_loop_last): Wait on release if not owner.
7687 (gomp_ordered_loop_next): Likewise.
7688 (gomp_ordered_static_loop_init): New.
7689 (gomp_ordered_static_loop_next): Use ordered_owner.
7690 (GOMP_ordered_start): Likewise.
7691 * work.c (gomp_new_work_share): Initialize ordered_owner.
7693 2005-05-03 Richard Henderson <rth@redhat.com>
7695 * Makefile (OPT): New.
7698 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
7699 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
7700 * libgomp.h, libgomp.map, NOTES: Update to match.
7702 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
7703 Add initialized and thr members.
7704 (gomp_thread_start): Pause when initially spawned to wait for
7705 the whole team to be created.
7706 (gomp_team_start): Release team members at the end.
7708 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
7709 (f_foo_1): Use GOMP_loop_end.
7710 (f_foo_2): Use GOMP_loop_end_nowait.
7712 * testsuite/loop-2.c: New file.
7713 * testsuite/Makefile (TESTS): Add it.
7715 2005-05-03 Richard Henderson <rth@redhat.com>
7717 * iter.c (gomp_iter_static_next): Fix overflow check typo.
7718 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
7719 * team.c (new_team): Initialize oldest_live_gen to 1 if no
7722 * testsuite/Makefile: New file.
7723 * testsuite/loop-1.c: New file.
7725 2005-05-03 Richard Henderson <rth@redhat.com>
7727 Initial implementation and checkin.
7729 Copyright (C) 2005-2016 Free Software Foundation, Inc.
7731 Copying and distribution of this file, with or without modification,
7732 are permitted in any medium without royalty provided the copyright
7733 notice and this notice are preserved.