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