]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
c++: Add new test [PR59978]
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
ea69fcf9
GA
12020-07-13 Julian Brown <julian@codesourcery.com>
2 Thomas Schwinge <thomas@codesourcery.com>
3
4 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
5
86536295
GA
62020-07-10 Julian Brown <julian@codesourcery.com>
7 Thomas Schwinge <thomas@codesourcery.com>
8
9 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
10 dynamic_refcount.
11 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
12 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
13 dynamic_refcount.
14 (acc_unmap_data): Update comment.
15 (goacc_map_var_existing, goacc_enter_datum): Adjust for
16 dynamic_refcount semantics.
17 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
18 Adjust for dynamic_refcount semantics.
19 (goacc_enter_data_internal): Implement "present" case of dynamic
20 memory-map handling here. Update "non-present" case for
21 dynamic_refcount semantics.
22 (goacc_exit_data_internal): Use goacc_exit_datum_1.
23 * target.c (gomp_map_vars_internal): Remove
24 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
25 handling.
26 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
27 (gomp_load_image_to_device): Substitute dynamic_refcount for
28 virtual_refcount.
29 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
30 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
31 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
32 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
33 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
34 trace output.
35 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
36 trace output.
37 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
38 test.
39 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
40 Remove stale comment.
41 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
42 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
43 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
44 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
45 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
46 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
47
482020-07-10 Julian Brown <julian@codesourcery.com>
49 Thomas Schwinge <thomas@codesourcery.com>
50
51 * oacc-mem.c (goacc_map_var_existing): New function.
52 (goacc_enter_datum): Use above function.
53 (goacc_exit_datum_1): New function.
54 (goacc_exit_datum): Use above function.
55
3f8ca9cb
GA
562020-07-09 Julian Brown <julian@codesourcery.com>
57 Thomas Schwinge <thomas@codesourcery.com>
58
59 PR middle-end/95270
60 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
61 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
62
632020-07-09 Julian Brown <julian@codesourcery.com>
64
65 * oacc-mem.c (find_group_last): Group data-movement clauses
66 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
67 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
68
692020-07-09 Jakub Jelinek <jakub@redhat.com>
70
71 * testsuite/libgomp.c/loop-19.c: New test.
72 * testsuite/libgomp.c/loop-20.c: New test.
73
742020-07-09 Jakub Jelinek <jakub@redhat.com>
75
76 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
77 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
78 it. Remove __omp_alloctrait_value_max__.
79 * allocator.c (omp_init_allocator): Handle omp_atv_default for
80 omp_atk_alignment and omp_atk_pool_size.
81
b991c834
GA
822020-07-03 Thomas Schwinge <thomas@codesourcery.com>
83
84 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
85 behavior for 'GOMP_MAP_FORCE_FROM'.
86 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
87
882020-07-03 Thomas Schwinge <thomas@codesourcery.com>
89
90 * oacc-mem.c (goacc_exit_data_internal): Remove
91 'GOMP_MAP_ALWAYS_FROM' handling.
92
46fbb6c6
GA
932020-06-30 Thomas Schwinge <thomas@codesourcery.com>
94
95 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
96 'scan-assembler' with 'scan-offload-rtl'.
97 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
98 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
99 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
100 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
101
1022020-06-30 Thomas Schwinge <thomas@codesourcery.com>
103
104 * target.c (gomp_map_vars_existing): Assert 'kind !=
105 GOMP_MAP_ATTACH'.
106 (gomp_map_vars_internal): Clean up.
107
9a33c41f
GA
1082020-06-27 Jakub Jelinek <jakub@redhat.com>
109
110 * testsuite/libgomp.c/loop-17.c: New test.
111 * testsuite/libgomp.c/loop-18.c: New test.
112
c9c05f73
GA
1132020-06-26 Marek Polacek <polacek@redhat.com>
114
115 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
116
4543acc8
GA
1172020-06-23 Alexandre Oliva <oliva@adacore.com>
118
119 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
120 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
121
605a8f3b
GA
1222020-06-22 David Edelsohn <dje.gcc@gmail.com>
123
124 * Makefile.am: Use -include.
125 * Makefile.in: Regenerate.
126
f86e11a2
GA
1272020-06-21 David Edelsohn <dje.gcc@gmail.com>
128
129 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
130 * Makefile.in: Regenerate
131 * configure.ac (tmake_file): Substitute.
132 * configure: Regenerate.
133 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
134 * config/t-aix: New file.
135
aff95ee7
GA
1362020-06-17 Thomas Schwinge <thomas@codesourcery.com>
137
138 PR lto/94848
139 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
140 'dg-do run'.
141
1422020-06-17 Andrew Stubbs <ams@codesourcery.com>
143
144 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
145 variant for HSA_RUNTIME_LIB name.
146 (find_executable_symbol_1): Delete.
147 (find_executable_symbol): Delete.
148 (init_kernel_properties): Add ".kd" suffix to symbol names.
149 (find_load_offset): Delete.
150 (create_and_finalize_hsa_program): Remove relocation handling.
151
56638b9b
GA
1522020-06-16 Tobias Burnus <tobias@codesourcery.com>
153
154 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
155
2c455ae0
GA
1562020-06-08 Tobias Burnus <tobias@codesourcery.com>
157
158 PR lto/94848
159 PR middle-end/95551
160 * testsuite/libgomp.fortran/target-var.f90: New test.
161
1a59f3db
GA
1622020-06-05 Thomas Schwinge <thomas@codesourcery.com>
163 Julian Brown <julian@codesourcery.com>
164
165 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
166 special handling.
167
1682020-06-05 Thomas Schwinge <thomas@codesourcery.com>
169 Julian Brown <julian@codesourcery.com>
170
171 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
172 Simplify.
173
1742020-06-05 Julian Brown <julian@codesourcery.com>
175
176 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
177 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
178
3add3425
GA
1792020-06-04 Thomas Schwinge <thomas@codesourcery.com>
180
181 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
182 Evaluate 'copyfrom' individually for each entry.
183 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
184
1852020-06-04 Thomas Schwinge <thomas@codesourcery.com>
186
187 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
188 Evaluate 'finalize' individually for each entry.
189 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
190 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
191 file.
192
1932020-06-04 Thomas Schwinge <thomas@codesourcery.com>
194
195 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
196 usage.
197 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
198
1992020-06-04 Thomas Schwinge <thomas@codesourcery.com>
200 Julian Brown <julian@codesourcery.com>
201
202 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
203 checking.
204 (acc_unmap_data, goacc_exit_data_internal): Restore
205 'is_tgt_unmapped' checking.
206 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
207 file.
208 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
209 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
210 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
211 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
212 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
213 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
214
2152020-06-04 Thomas Schwinge <thomas@codesourcery.com>
216 Julian Brown <julian@codesourcery.com>
217
218 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
219
2202020-06-04 Thomas Schwinge <thomas@codesourcery.com>
221
222 PR libgomp/92854
223 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
224
2252020-06-04 Thomas Schwinge <thomas@codesourcery.com>
226
227 PR libgomp/92854
228 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
229 more.
230
2312020-06-04 Thomas Schwinge <thomas@codesourcery.com>
232 Julian Brown <julian@codesourcery.com>
233
234 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
235 'gomp_map_vars'.
236 (acc_map_data): Clean up accordingly.
237
2382020-06-04 Thomas Schwinge <thomas@codesourcery.com>
239
240 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
241 of over-eager 'finalize' clause.
242 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
243 file.
244 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
245 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
246 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
247 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
248 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
249 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
250 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
251 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
252
2532020-06-04 Thomas Schwinge <thomas@codesourcery.com>
254
255 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
256
2572020-06-04 Julian Brown <julian@codesourcery.com>
258
259 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
260 error path.
261 (goacc_detach_internal): Likewise.
262
2632020-06-04 Thomas Schwinge <thomas@codesourcery.com>
264
265 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
266 the checkpoint.
267 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
268 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
269 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
270 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
271 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
272
a9312a79
GA
2732020-06-02 Jakub Jelinek <jakub@redhat.com>
274
275 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
276 defined.
277
945b53cc
GA
2782020-05-30 Jakub Jelinek <jakub@redhat.com>
279
280 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
281
2822020-05-30 Jakub Jelinek <jakub@redhat.com>
283
284 * allocator.c (omp_alloc): For size == 0, return NULL early.
285
885ef72f
GA
2862020-05-29 H.J. Lu <hjl.tools@gmail.com>
287
288 PR bootstrap/95413
289 * configure: Regenerated.
290
8df7ee67
TK
2912020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
292
293 PR libfortran/95191
294 * testsuite/libgomp.fortran/async_io_9.f90: New test.
295
800bcc8c
JJ
2962020-05-19 Jakub Jelinek <jakub@redhat.com>
297
298 * omp.h.in (omp_uintptr_t): New typedef.
299 (__GOMP_UINTPTR_T_ENUM): Define.
300 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
301 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
302 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
303 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
304 omp_get_default_allocator, omp_alloc, omp_free): Declare.
305 * libgomp.h (struct gomp_team_state): Add def_allocator field.
306 (gomp_def_allocator): Declare.
307 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
308 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
309 omp_alloc and omp_free.
310 * team.c (gomp_team_start): Copy over ts.def_allocator.
311 * env.c (gomp_def_allocator): New variable.
312 (parse_wait_policy): Adjust function comment.
313 (parse_allocator): New function.
314 (handle_omp_display_env): Print OMP_ALLOCATOR.
315 (initialize_env): Call parse_allocator.
316 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
317 * allocator.c: New file.
318 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
319 functions.
320 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
321 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
322 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
323 * Makefile.in: Regenerated.
324
4c1a5d8b
L
3252020-05-15 H.J. Lu <hongjiu.lu@intel.com>
326
327 PR bootstrap/95147
328 * configure: Regenerated.
329
cdc34b50
TK
3302020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
331
332 PR libfortran/95119
333 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
334
3352020-05-14 H.J. Lu <hongjiu.lu@intel.com>
336
337 * configure: Regenerated.
338
3392020-05-14 Jakub Jelinek <jakub@redhat.com>
340
341 * testsuite/libgomp.c-c++-common/target-40.c: New test.
342
f884bef2
TB
3432020-05-13 Tobias Burnus <tobias@codesourcery.com>
344
345 PR fortran/94690
346 * testsuite/libgomp.fortran/pr66199-3.f90: New.
347 * testsuite/libgomp.fortran/pr66199-4.f90: New.
348 * testsuite/libgomp.fortran/pr66199-5.f90: New.
349 * testsuite/libgomp.fortran/pr66199-6.f90: New.
350 * testsuite/libgomp.fortran/pr66199-7.f90: New.
351 * testsuite/libgomp.fortran/pr66199-8.f90: New.
352 * testsuite/libgomp.fortran/pr66199-9.f90: New.
353
dc703151
JJ
3542020-05-12 Jakub Jelinek <jakub@redhat.com>
355
356 * testsuite/libgomp.c/target-39.c: New test.
357
b9dc11b6
TS
3582020-04-29 Thomas Schwinge <thomas@codesourcery.com>
359
a5d0bc12
TS
360 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
361 * openacc.f90 (acc_device_current): Likewise.
362 * openacc.h (acc_device_current): Likewise.
363 * openacc_lib.h (acc_device_current): Likewise.
364
7f198924
TS
365 PR target/94282
366 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
367 'dg-allow-blank-lines-in-output'.
368
4912a04f
TS
369 * oacc-init.c (get_openacc_name): Handle 'gcn'.
370 * testsuite/lib/libgomp.exp
371 (offload_target_to_openacc_device_type) [amdgcn*]: Return
372 'radeon'. Adjust all users.
373 (check_effective_target_openacc_amdgcn_accel_present): Rename
374 to...
375 (check_effective_target_openacc_radeon_accel_present): ... this.
376 Adjust all users.
377 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
378 (check_effective_target_openacc_radeon_accel_selected): ... this.
379 Adjust all users.
380
b9dc11b6
TS
381 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
382 'dg-do run'.
383
966de09b
AS
3842020-04-23 Andrew Stubbs <ams@codesourcery.com>
385
386 PR other/94629
387
388 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
389 hsa_iterate_agents.
390 (GOMP_OFFLOAD_init_device): Check return values from both calls to
391 hsa_agent_iterate_regions.
392
3f5d94c1
TS
3932020-04-20 Thomas Schwinge <thomas@codesourcery.com>
394
395 PR middle-end/94635
396 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
397 run'.
398
85d8c05a
TB
3992020-04-20 Tobias Burnus <tobias@codesourcery.com>
400
401 PR middle-end/94120
402 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
403 test case.
404
af557050
TB
4052020-04-17 Tobias Burnus <tobias@codesourcery.com>
406
407 PR middle-end/94635
408 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
409
af4c9257
TS
4102020-04-13 Thomas Schwinge <thomas@codesourcery.com>
411
412 PR libgomp/92843
413 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
414 Rename to...
415 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
416 ... this.
417 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
418 Rename to...
419 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
420 ... this.
421 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
422 Rename to...
423 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
424 ... this.
425 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
426 Rename to...
427 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
428 ... this.
429 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
430 Rename to...
431 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
432 ... this.
433 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
434 Rename to...
435 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
436 ... this.
437 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
438 Rename to...
439 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
440 ... this.
441 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
442 Rename to...
443 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
444 ... this.
445 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
446 Rename to...
447 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
448 ... this.
449 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
450 Rename to...
451 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
452 ... this.
453 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
454 Rename to...
455 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
456 ... this.
457 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
458 Rename to...
459 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
460 ... this.
461 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
462 Rename to...
463 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
464 ... this.
465 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
466 Rename to...
467 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
468 ... this.
469 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
470 Rename to...
471 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
472 ... this.
473 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
474 Rename to...
475 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
476 ... this.
477
be9862dd
JB
4782020-04-10 Julian Brown <julian@codesourcery.com>
479 Thomas Schwinge <thomas@codesourcery.com>
480
481 PR libgomp/92843
482 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
483 New file.
484 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
485 Likewise.
486 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
487 Likewise.
488 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
489 Likewise.
490 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
491 Likewise.
492 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
493 Likewise.
494 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
495 Likewise.
496 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
497 Likewise.
498 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
499 Likewise.
500 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
501 Likewise.
502 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
503 Likewise.
504 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
505 Likewise.
506 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
507 Likewise.
508 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
509 Likewise.
510 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
511 Likewise.
512 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
513 Likewise.
514
6b816a5f
TS
5152020-04-10 Thomas Schwinge <thomas@codesourcery.com>
516
517 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
518 run'.
519
13e41d8b
TB
5202020-04-08 Tobias Burnus <tobias@codesourcery.com>
521
522 PR middle-end/94120
523 * libgomp.oacc-c++/declare-pr94120.C: New.
524
749bd22d
MR
5252020-04-06 Maciej W. Rozycki <macro@wdc.com>
526
527 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
528 files.
529 * configure: Regenerate.
530 * testsuite/libgomp-site-extra.exp.in: New file.
531 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
532 variable.
533 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
534 variable.
535 * testsuite/Makefile.in: Regenerate.
536
2b1e849b
TS
5372020-04-03 Thomas Schwinge <thomas@codesourcery.com>
538
539 PR tree-optimization/89713
540 PR c/94392
541 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
542 'bar.sync'.
543 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
544
689418b9
TB
5452020-03-31 Tobias Burnus <tobias@codesourcery.com>
546
547 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
548 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
549
c2211a60
TB
5502020-03-24 Tobias Burnus <tobias@codesourcery.com>
551
552 PR libgomp/81689
553 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
554
4897bb00
TB
5552020-03-20 Tobias Burnus <tobias@codesourcery.com>
556
557 PR libgomp/94251
558 * target.c (gomp_load_image_to_device): Fix link
559 variable handling.
560
02f7334a
JJ
5612020-03-19 Jakub Jelinek <jakub@redhat.com>
562
563 PR c++/93931
564 * testsuite/libgomp.c++/pr93931.C: New test.
565
bb83e069
TB
5662020-03-19 Tobias Burnus <tobias@codesourcery.com>
567
568 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
569 dg-allow-blank-lines-in-output.
570
26cbcfe5
TB
5712020-03-18 Julian Brown <julian@codesourcery.com>
572 Tobias Burnus <tobias@codesourcery.com>
573
574 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
575 it work concurrently.
576
4da92887
TB
5772020-03-18 Tobias Burnus <tobias@codesourcery.com>
578
579 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
580 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
581 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
582
9c3cdb43
JJ
5832020-03-14 Jakub Jelinek <jakub@redhat.com>
584
585 PR middle-end/93566
586 * testsuite/libgomp.c/pr93566.c: New test.
587
83d45e1d
FH
5882020-02-21 Frederik Harwath <frederik@codesourcery.com>
589
590 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
591 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
592 integer(acc_device_property) for the type of the return value of
593 acc_get_property.
594
8d1a1cb1
TB
5952020-02-19 Tobias Burnus <tobias@codesourcery.com>
596
597 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
598 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
599 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
600 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
601 (acc_set_device_num): Fix Fortran argument name, use same name for C.
602 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
603 corrections; add note about the previous interface and named constant.
604 (OpenACC library and environment variables): Fix two typos.
605 * openacc.f90: Use for all procedures the argument names from the spec
606 as for …_h they are user visible.
607 (openacc_kinds): Rename acc_device_property to
608 acc_device_property_kinds and change value to int32 ; and update users.
609 Re-add acc_device_property for for backward compatibility.
610 (acc_get_property_string_h): Clean up as acc_device_property_kind
611 changed.
612 (acc_get_property_h): Likewise and return c_size_t instead of
613 acc_device_property.
614 (openacc): Also export acc_device_property_kinds.
615 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
616 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
617 handling; check against /= 0 instead of == 1 to match C.
618 * openacc_lib.h: Use for all procedures the argument names from the spec
619 as for …_h they are user visible. Place !GCC$ into the first column to
620 be active also for fixed-form souce form.
621 (acc_device_current, acc_device_property_kind, acc_device_property,
622 acc_property_memory, acc_property_free_memory, acc_property_name,
623 acc_property_vendor, acc_property_driver): New named constants.
624 (acc_get_property, acc_get_property_string): New generic interface.
625
2d9eb4e4
FH
6262020-02-13 Frederik Harwath <frederik@codesourcery.com>
627
628 PR libgomp/93481
629 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
630 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
631 optional.
632 (gomp_target_task_fn): Assert "devicep->async_run_func".
633 (clear_unsupported_flags): New function to remove unsupported flags
634 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
635 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
636 * testsuite/libgomp.c/target-33.c:
637 Remove xfail for offload_target_nvptx.
638 * testsuite/libgomp.c/target-34.c: Likewise.
fd789c81
FH
639
6402020-02-10 Frederik Harwath <frederik@codesourcery.com>
641
642 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
643 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
644 * testsuite/libgomp.c/target-34.c: Likewise.
645 * testsuite/libgomp.c/target-link-1.c: Add xfail for
646 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
647
9bc3b95d
JJ
6482020-02-09 Jakub Jelinek <jakub@redhat.com>
649
650 * testsuite/libgomp.c/target-38.c: New test.
651
cb3f0648
JJ
6522020-02-06 Jakub Jelinek <jakub@redhat.com>
653
654 PR libgomp/93515
655 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
656
91bc3c98
TB
6572020-02-05 Tobias Burnus <tobias@codesourcery.com>
658
659 * testsuite/lib/libgomp.exp
660 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
661 and not as 'source' argument to libgomp_target_compile.
662
591f869a
AS
6632020-02-03 Andrew Stubbs <ams@codesourcery.com>
664
665 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
666 (gcn_gfx801_s): Remove.
667 (isa_hsa_name): Remove gfx801.
668 (isa_gcc_name): Remove gfx801/carizzo.
669 (isa_code): Remove gfx801.
670
e464fc90
TB
6712020-02-03 Julian Brown <julian@codesourcery.com>
672 Tobias Burnus <tobias@codesourcery.com>
673
674 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
675 and *_finalize variants; document acc_attach and acc_detach; update
676 references from OpenACC 2.0 to 2.6.
677 * openacc.f90 (openacc_version): Update to 201711.
678 * openacc_lib.h (openacc_version): Update to 201711.
679 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
680 openacc_version to 201711.
681 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
682
5a28e272
KCY
6832020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
684
685 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
686 and vgpr_count fields.
687 (struct kernel_info): Add a field for a hsa_kernel_description.
688 (run_kernel): Reduce the number of threads/workers if the requested
689 number would require too many VGPRs.
690 (init_basic_kernel_info): Initialize description field with
691 the hsa_kernel_description entry for the kernel.
692
5ab5d81b
TB
6932020-01-29 Tobias Burnus <tobias@codesourcery.com>
694
695 PR bootstrap/93409
696 * plugin/configfrag.ac (enable_offload_targets): Skip
697 HSA and GCN plugin besides -m32 also for -mx32.
698 * configure: Regenerate.
699
989a5fb3
FH
7002020-01-29 Frederik Harwath <frederik@codesourcery.com>
701
702 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
2e5ea579
FH
703
7042020-01-29 Frederik Harwath <frederik@codesourcery.com>
705
706 * plugin-gcn.c (struct agent_info): Add fields "name" and
707 "vendor_name" ...
708 (GOMP_OFFLOAD_init_device): ... and init from here.
709 (struct hsa_context_info): Add field "driver_version_s" ...
710 (init_hsa_contest): ... and init from here.
711 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
712 implementation.
713 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
714 Enable test execution for amdgcn and host offloading targets.
715 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
716 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
717 (expect_device_properties): Split function into ...
718 (expect_device_string_properties): ... this new function ...
719 (expect_device_memory): ... and this new function.
720 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
721 Add test.
722
278c3214
JB
7232020-01-28 Julian Brown <julian@codesourcery.com>
724
725 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
726 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
727 component/non-component variable refs in a single directive.
728 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
729
e8e66971
MR
7302020-01-24 Maciej W. Rozycki <macro@wdc.com>
731
732 * configure.ac: Handle `--with-toolexeclibdir='.
733 * Makefile.in: Regenerate.
734 * aclocal.m4: Regenerate.
735 * configure: Regenerate.
736 * testsuite/Makefile.in: Regenerate.
737
9e424d97
FH
7382020-01-24 Frederik Harwath <frederik@codesourcery.com>
739
740 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
741 (expect_device_properties): Remove "expected_free_mem" argument,
742 change "expected_total_mem" argument type to size_t;
743 change types of acc_get_property results to size_t,
744 adapt format strings.
745 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
746 Use %zu instead of %zd to print size_t values.
747 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
748 rename to ...
749 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
750 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
751 rename to ...
752 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
753
14e5e746
AS
7542020-01-23 Andrew Stubbs <ams@codesourcery.com>
755
756 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
757 the device id.
758
09e0ad62
AS
7592020-01-20 Andrew Stubbs <ams@codesourcery.com>
760
761 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
762 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
763 Adjust test dimensions for amdgcn.
764 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
765 gang/worker/vector expectations dynamically.
766 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
767 (main): Likewise.
768 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
769 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
770 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
771 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
772 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
773 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
774 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
775 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
776 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
777 (acc_gang): Recognise acc_device_radeon.
778 (acc_worker): Likewise.
779 (acc_vector): Likewise.
780 (main): Set expectations for amdgcn.
781 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
782 (main): Adjust gang/worker/vector expectations dynamically.
783 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
784 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
785 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
786 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
787 for amdgcn.
788
6687d13a
AS
7892020-01-17 Andrew Stubbs <ams@codesourcery.com>
790
791 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
792 acc_device_radeon.
793 (openacc): Likewise.
794 * openacc.f90 (openacc_kinds): Likewise.
795 (openacc): Likewise.
796 * openacc.h (acc_device_t): Likewise.
797 * openacc_lib.h: Likewise.
798 * testsuite/lib/libgomp.exp
799 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
800 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
801 (cb_compute_construct_end): Likewise.
802 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
803 (cb_enqueue_launch_start): Likewise.
804 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
805 (cb_enter_data_end): Likewise.
806 (cb_exit_data_start): Likewise.
807 (cb_exit_data_end): Likewise.
808 (cb_compute_construct_end): Likewise.
809 (cb_enqueue_launch_start): Likewise.
810 (cb_enqueue_launch_end): Likewise.
811 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
812 (main): Likewise.
813
b3b75e66
TS
8142020-01-10 Thomas Schwinge <thomas@codesourcery.com>
815
6fc0385c
TS
816 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
817 to use this instead of 'enum gomp_device_property'.
818 (GOMP_OFFLOAD_get_property): Rename to...
819 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
820 * libgomp.h (struct gomp_device_descr): Move
821 'GOMP_OFFLOAD_openacc_get_property'...
822 (struct acc_dispatch_t): ... here. Adjust all users.
823 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
824
b3b75e66
TS
825 * target.c (gomp_map_vars_internal)
826 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
827 paths.
828
91df4397
JJ
8292020-01-10 Jakub Jelinek <jakub@redhat.com>
830
831 PR libgomp/93219
832 * libgomp.h (gomp_print_string): Change return type from void to int.
833 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
834 not all characters have been written.
835
df2c0d36
TB
8362020-01-08 Tobias Burnus <tobias@codesourcery.com>
837
838 * libgomp.texi: Fix typos, use https.
839
f760c0c7
TB
8402020-01-03 Tobias Burnus <tobias@codesourcery.com>
841
842 * testsuite/libgomp.fortran/optional-map.f90: Add test for
843 unallocated/disassociated actual arguments to nonallocatable/nonpointer
844 dummy arguments; those are/shall be regarded as absent arguments.
845 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
846 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
847
7e7065b9
JJ
8482020-01-01 Jakub Jelinek <jakub@redhat.com>
849
8d9254fc
JJ
850 Update copyright years.
851
7e7065b9
JJ
852 * libgomp.texi: Bump @copying's copyright year.
853
2c829799
AM
8542019-12-31 Ayush Mittal <ayush.m@samsung.com>
855
856 PR libgomp/93065
857 * oacc-init.c (goacc_runtime_deinitialize): New function.
858
e9dcb75e
JJ
8592019-12-28 Jakub Jelinek <jakub@redhat.com>
860
861 PR bootstrap/93074
862 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
863 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
864
6c84c8bf
MR
8652019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
866 Frederik Harwath <frederik@codesourcery.com>
867 Thomas Schwinge <tschwinge@codesourcery.com>
868
869 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
870 * libgomp-plugin.h (gomp_device_property_value): New union.
871 (gomp_device_property_value): New prototype.
872 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
873 constant.
874 (acc_device_property_t): New enum.
875 (acc_get_property, acc_get_property_string): New prototypes.
876 * oacc-init.c (acc_get_device_type): Also assert that result
877 is not `acc_device_current'.
878 (get_property_any, acc_get_property, acc_get_property_string):
879 New functions.
880 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
881 `acc_property_memory', `acc_property_free_memory',
882 `acc_property_name', `acc_property_vendor' and
883 `acc_property_driver' constants. Add `acc_device_property' data
884 type.
885 (openacc_internal): Add `acc_get_property' and
886 `acc_get_property_string' interfaces. Add `acc_get_property_h',
887 `acc_get_property_string_h', `acc_get_property_l' and
888 `acc_get_property_string_l'.
889 * oacc-host.c (host_get_property): New function.
890 (host_dispatch): Wire it.
891 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
892 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
893 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
894 * libgomp.texi (OpenACC Runtime Library Routines): Add
895 `acc_get_property'.
896 (acc_get_property): New node.
897 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
898 function (stub).
899 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
900 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
901 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
902 calls.
903 (GOMP_OFFLOAD_get_property): New function.
904 (struct ptx_device): Add new field "name".
905 (cuda_driver_version_s): Add new static variable ...
906 (nvptx_init): ... and init from here.
907
908 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
909 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
910 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
911 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
912 with test helper functions.
913
914 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
915
c8e759b4
MR
9162019-12-22 Maciej W. Rozycki <macro@wdc.com>
917
918 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
919 variable.
920
b092fb3b
TS
9212019-12-21 Thomas Schwinge <thomas@codesourcery.com>
922
923 * target.c (gomp_map_vars_internal): Restore 'omp declare target
924 link' handling.
925
9be3ac5d
JB
9262019-12-19 Julian Brown <julian@codesourcery.com>
927
928 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
929 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
930 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
931
02817027
JB
9322019-12-19 Julian Brown <julian@codesourcery.com>
933 Cesar Philippidis <cesar@codesourcery.com>
934
935 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
936 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
937 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
938 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
939 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
940 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
941 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
942 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
943 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
944 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
945 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
946 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
947 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
948
c2eb021f
JB
9492019-12-19 Julian Brown <julian@codesourcery.com>
950
951 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
952 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
953 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
954 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
955 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
956 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
957 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
958 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
959 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
960 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
961 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
962 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
963
8e7e71ff
JB
9642019-12-19 Julian Brown <julian@codesourcery.com>
965
966 * libgomp.h (struct target_var_desc): Add do_detach flag.
967 * oacc-init.c (acc_shutdown_1): Free aux block if present.
968 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
969 struct components. Tidy up and add some new checks.
970 (goacc_enter_data_internal): Update call to find_group_last.
971 (goacc_exit_data_internal): Support detach operations and
972 GOMP_MAP_STRUCT.
973 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
974 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
975 attach/detach in enter/exit data detection code.
976 * target.c (gomp_map_vars_existing): Initialise do_detach field of
977 tgt_var_desc.
978 (gomp_map_vars_internal): Support attach.
979 (gomp_unmap_vars_internal): Support detach.
980
5d5be7bf
JB
9812019-12-19 Julian Brown <julian@codesourcery.com>
982 Thomas Schwinge <thomas@codesourcery.com>
983
984 * libgomp.h (struct splay_tree_aux): Add attach_count field.
985 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
986 * libgomp.map (OACC_2.6): New section. Add acc_attach,
987 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
988 acc_detach_finalize_async.
989 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
990 acc_detach, acc_detach_async, acc_detach_finalize,
991 acc_detach_finalize_async): New functions.
992 * openacc.h (acc_attach, acc_attach_async, acc_detach,
993 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
994 prototypes.
995 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
996 (gomp_remove_var_internal): Free attachment counts if present.
997 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
998 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
999
5bcd470b
JB
10002019-12-19 Julian Brown <julian@codesourcery.com>
1001 Cesar Philippidis <cesar@codesourcery.com>
1002
1003 * libgomp.h (gomp_map_val): Add prototype.
1004 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
1005 open-coding device-address calculation.
1006 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
1007 non-present case.
1008
378da98f
JB
10092019-12-19 Julian Brown <julian@codesourcery.com>
1010
1011 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
1012 field for virtual_refcount.
1013 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
1014 (gomp_free_memmap): Remove prototype.
1015 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
1016 instead of calling gomp_free_memmap.
1017 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
1018 dynamic_refcount.
1019 (acc_unmap_data): Open code instead of forcing target_mem_desc's
1020 to_free field to NULL then calling gomp_unmap_vars. Handle
1021 REFCOUNT_INFINITY on target blocks.
1022 (goacc_enter_data): Rename to...
1023 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
1024 handling for mapping groups. Use virtual_refcount instead of
1025 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
1026 map_map_vars_async call. Re-do lookup for target pointer return value.
1027 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
1028 renamed goacc_enter_datum function.
1029 (goacc_exit_data): Rename to...
1030 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
1031 (acc_delete, acc_delete_async, acc_delete_finalize,
1032 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
1033 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
1034 goacc_exit_datum function.
1035 (gomp_acc_remove_pointer, find_pointer): Remove functions.
1036 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
1037 New functions.
1038 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
1039 goacc_exit_data_internal helper functions.
1040 * target.c (gomp_map_vars_internal): Handle
1041 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
1042 semantics.
1043 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
1044 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
1045 virtual_refcount field instead of dynamic_refcount.
1046 (gomp_free_memmap): Remove function.
1047 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
1048 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
1049 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
1050
2a656a93
JB
10512019-12-19 Julian Brown <julian@codesourcery.com>
1052 Thomas Schwinge <thomas@codesourcery.com>
1053
1054 * libgomp.h (struct splay_tree_aux): New.
1055 (struct splay_tree_key_s): Replace link_key field with aux pointer.
1056 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
1057 to aux struct.
1058 (gomp_remove_var_internal): Free aux block if present.
1059 (gomp_load_image_to_device): Zero-initialise aux field instead of
1060 link_key field.
1061 (omp_target_associate_pointer): Zero-initialise aux field.
1062
601399c0
JJ
10632019-12-18 Jakub Jelinek <jakub@redhat.com>
1064
1065 PR middle-end/86416
1066 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
1067 q or none.
1068 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
1069 L or none.
1070
a6163563
JB
10712019-12-19 Julian Brown <julian@codesourcery.com>
1072 Maciej W. Rozycki <macro@codesourcery.com>
1073 Tobias Burnus <tobias@codesourcery.com>
1074 Thomas Schwinge <thomas@codesourcery.com>
1075
1076 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
1077 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
1078 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
1079 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
1080 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
1081 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
1082 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
1083 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
1084 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
1085
6278b549
TS
10862019-12-18 Thomas Schwinge <thomas@codesourcery.com>
1087
77ce5555
TS
1088 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1089 called...
1090 (goacc_insert_pointer): ... from here, "present" case.
1091 (goacc_insert_pointer): Inline function into...
1092 (GOACC_enter_exit_data): ... here, and simplify.
1093
9444a299
TS
1094 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
1095 called...
1096 (goacc_insert_pointer): ... from here, "not present" case.
1097
5031b619
TS
1098 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
1099 all users.
1100
1a79b578
TS
1101 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
1102 'goacc_enter_data', 'goacc_exit_data'.
1103
34cfe31e
TS
1104 * oacc-mem.c (delete_copyout): Refactor into...
1105 (goacc_exit_data): ... this. Adjust all users.
1106
aaf0e9d7
TS
1107 * oacc-mem.c (present_create_copy): Refactor into...
1108 (goacc_enter_data): ... this. Adjust all users.
1109
83d1d065
TS
1110 * target.c (gomp_unmap_vars_internal): Add a safeguard to
1111 'gomp_remove_var'.
1112
cc3f11f5
TS
1113 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
1114 like 'GOMP_MAP_FROM'.
1115
ddb25eb9
TS
1116 PR libgomp/92726
1117 PR libgomp/92970
1118 PR libgomp/92984
1119 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
1120 fails.
1121 (GOACC_enter_exit_data): Simplify accordingly.
1122 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
1123 subsuming...
1124 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
1125 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
1126 file.
1127 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
1128 subsuming...
1129 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
1130 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
1131 file.
1132 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
1133 subsuming...
1134 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
1135
32128577
TS
1136 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
1137 'finalize' handling.
1138
ba40277f
TS
1139 PR libgomp/92848
1140 * oacc-mem.c (acc_map_data, present_create_copy)
1141 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
1142 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
1143 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
1144 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
1145 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
1146 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
1147 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
1148 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1149 Remove "XFAIL"s.
1150
6278b549
TS
1151 * target.c (gomp_unmap_tgt): Make it 'static'.
1152 * libgomp.h (gomp_unmap_tgt): Remove.
1153
c80c9e26
TB
11542019-12-18 Tobias Burnus <tobias@codesourcery.com>
1155
1156 PR middle-end/86416
1157 * testsuite/libgomp.c/pr86416-1.c: New.
1158 * testsuite/libgomp.c/pr86416-2.c: New.
1159
0b8499a4
TB
11602019-12-17 Tobias Burnus <tobias@codesourcery.com>
1161
1162 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
1163 all symbols as public except for the 'use …, only' imported symbol,
1164 which is private.
1165 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1166 all symbols from module openacc_kinds as PUBLIC
1167 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
1168 fix comment typo.
1169 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
1170
1cbd94e8
JB
11712019-12-13 Julian Brown <julian@codesourcery.com>
1172
1173 PR libgomp/92881
1174
1175 * libgomp.h (gomp_remove_var_async): Add prototype.
1176 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
1177 gomp_remove_var.
1178 * target.c (gomp_unref_tgt): Change return type to bool, indicating
1179 whether target_mem_desc was unmapped.
1180 (gomp_unref_tgt_void): New.
1181 (gomp_remove_var): Reimplement in terms of...
1182 (gomp_remove_var_internal): ...this new helper function.
1183 (gomp_remove_var_async): New, implemented using above helper function.
1184 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
1185 gomp_unref_tgt.
1186
26b74ed0
AS
11872019-12-13 Andrew Stubbs <ams@codesourcery.com>
1188
1189 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
1190 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1191 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
1192 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
1193 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
1194 Likewise.
1195 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
1196 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
1197
7858bb96
TB
11982019-12-13 Tobias Burnus <tobias@codesourcery.com>
1199
1200 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
1201 as public except for the 'use …, only' imported symbol, which is
1202 private.
1203 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
1204 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
1205 attributes for acc_copyout_finalize and acc_delete_finalize.
1206
f8ac7d8f
JJ
12072019-12-11 Jakub Jelinek <jakub@redhat.com>
1208
1209 PR fortran/92899
1210 * testsuite/libgomp.fortran/atomic1.f90: New test.
1211
3d1b5e71
TS
12122019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1213
d6e8c01c
TS
1214 PR libgomp/92843
1215 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
1216 reference counting for structured 'REFCOUNT_INFINITY'. Add some
1217 assertions.
1218 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
1219 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
1220 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
1221 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1222 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1223
57963e39
TS
1224 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
1225 * oacc-mem.c: ... here.
1226 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
1227 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
1228 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
1229 Remove.
1230 * libgomp_g.h: Update.
1231
c5578b56
TS
1232 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
1233 * oacc-async.c: ... here.
1234 * oacc-int.h (goacc_wait): Declare.
1235 * libgomp_g.h: Update
1236
3d1b5e71
TS
1237 PR libgomp/92854
1238 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
1239 New file.
1240 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
1241 Likewise.
1242 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
1243 Likewise.
1244 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
1245 Likewise.
1246 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
1247 Likewise.
1248 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
1249 Likewise.
1250
5e939438
TS
12512019-12-11 Thomas Schwinge <thomas@codesourcery.com>
1252 Julian Brown <julian@codesourcery.com>
1253
1254 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
1255 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
1256
93d90219
TB
12572019-12-11 Tobias Burnus <tobias@codesourcery.com>
1258
1259 * omp_lib.h.in: Fix spelling of function declaration
1260 omp_get_cancell(l)ation.
1261 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
1262 Fix typos.
1263 * env.c: Fix comment typos.
1264 * oacc-host.c: Likewise.
1265 * ordered.c: Likewise.
1266 * task.c: Likewise.
1267 * team.c: Likewise.
1268 * config/gcn/task.c: Likewise.
1269 * config/gcn/team.c: Likewise.
1270 * config/nvptx/task.c: Likewise.
1271 * config/nvptx/team.c: Likewise.
1272 * plugin/plugin-gcn.c: Likewise.
1273 * testsuite/libgomp.fortran/jacobi.f: Likewise.
1274 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
1275 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
1276
a0221aee
TB
12772019-12-11 Tobias Burnus <tobias@codesourcery.com>
1278
1279 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
1280 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
1281 unnecessary 'dg-additional-options "-w"'.
1282
47afc7b4
TS
12832019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1284 Julian Brown <julian@codesourcery.com>
1285
1286 PR libgomp/92116
1287 PR libgomp/92877
1288
1289 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
1290 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
1291 Adjust all users.
1292 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1293 Remove XFAIL.
1294 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1295 Likewise.
1296 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
1297
b5859e40
TS
12982019-12-09 Thomas Schwinge <thomas@codesourcery.com>
1299
cec41816
TS
1300 PR libgomp/92503
1301 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
1302 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
1303 file.
1304 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
1305 Likewise.
1306 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
1307 Likewise.
1308 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
1309 Likewise.
1310 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
1311 Likewise.
1312 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
1313 Likewise.
1314 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1315 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1316 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1317 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1318 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1319 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1320 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1321 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1322 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1323 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1324
e103542b
TS
1325 PR libgomp/92840
1326 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
1327 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
1328 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
1329 New file.
1330 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
1331 Likewise.
1332 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
1333 Likewise.
1334 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
1335 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
1336
41f36f22
TS
1337 PR libgomp/92511
1338 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
1339 this file...
1340 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
1341 this file...
1342 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
1343 file...
1344 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
1345 file...
1346 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
1347 ... with their content moved into, and extended in this new file.
1348 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
1349 New file.
1350 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
1351 Likewise.
1352 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
1353 Likewise.
1354 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
1355 Likewise.
1356
6effebe1
TS
1357 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
1358
7d020473
TS
1359 PR libgomp/92854
1360 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
1361
1e1fb715
TS
1362 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
1363
b5859e40
TS
1364 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
1365
11586ed9
TB
13662019-12-09 Tobias Burnus <tobias@codesourcery.com>
1367
1368 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
1369 unique.
1370 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
1371 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1372 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
1373 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
1374 Ditto.
1375 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
1376 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
1377
3ad4a03a
KCY
13782019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1379
1380 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
1381
6e4d01d6
TB
13822019-12-06 Tobias Burnus <tobias@codesourcery.com>
1383 Kwok Cheung Yeung <kcy@codesourcery.com>
1384
1385 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
1386 if input it a NULL pointer.
1387 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
1388 diagnostic of NULL pointer.
1389 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
1390 * testsuite/libgomp.fortran/optional-map.f90: New.
1391 * testsuite/libgomp.fortran/use_device_addr-1.f90
1392 (test_dummy_opt_callee_1_absent): New.
1393 (test_dummy_opt_call_1): Call it.
1394 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1395 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1396 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1397 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1398 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1399 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1400 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1401 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1402 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1403 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1404 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1405 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1406 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1407 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1408 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1409 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1410
ad80ec46
TB
14112019-12-05 Tobias Burnus <tobias@codesourcery.com>
1412
1413 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1414 expect dg-output of 'Error termination.' for GCN.
1415 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1416 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1417
a8a5f4cc
JJ
14182019-12-04 Jakub Jelinek <jakub@redhat.com>
1419
1420 PR fortran/92756
1421 * testsuite/libgomp.fortran/teams1.f90: New test.
1422 * testsuite/libgomp.fortran/teams2.f90: New test.
1423
d8f0024b
FH
14242019-12-03 Frederik Harwath <frederik@codesourcery.com>
1425
1426 * oacc-init.c (acc_known_device_type): Add function.
1427 (unknown_device_type_error): Add function.
1428 (name_of_acc_device_t): Change to call unknown_device_type_error
1429 on unknown type.
1430 (resolve_device): Use acc_known_device_type.
1431 (acc_init): Fail if acc_device_t argument is not valid.
1432 (acc_shutdown): Likewise.
1433 (acc_get_num_devices): Likewise.
1434 (acc_set_device_type): Likewise.
1435 (acc_get_device_num): Likewise.
1436 (acc_set_device_num): Likewise.
1437 (acc_on_device): Add comment that argument validity is not checked.
1438
83caa34e
AS
14392019-12-03 Andrew Stubbs <ams@codesourcery.com>
1440
1441 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1442 Recognize amdgcn.
1443 (check_effective_target_openacc_amdgcn_accel_present): New proc.
1444 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1445 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1446 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1447 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1448
00484365
SN
14492019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1450
1451 PR libgomp/91938
1452 * configure.tgt: Avoid IE tls on *-*-musl*.
1453
9909a059
TB
14542019-11-29 Tobias Burnus <tobias@codesourcery.com>
1455
1456 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1457 adding a common-block test case.
1458
b3f44388
JJ
14592019-11-29 Jakub Jelinek <jakub@redhat.com>
1460
1461 PR c++/60228
1462 * testsuite/libgomp.c++/udr-20.C: New test.
1463 * testsuite/libgomp.c++/udr-21.C: New test.
1464
b1a73b48
TS
14652019-11-27 Thomas Schwinge <thomas@codesourcery.com>
1466
1467 * testsuite/lib/libgomp.exp
1468 (check_effective_target_offload_target_nvptx): New proc.
1469 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1470 'dg-skip-if'.
1471 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1472 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1473 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1474
b8e72446
RO
14752019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1476
1477 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1478 * testsuite/libgomp.c/pr39591-2.c: Likewise.
1479 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1480 * testsuite/libgomp.c/private-1.c: Likewise.
1481 * testsuite/libgomp.c/task-1.c: Likewise.
1482 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1483
d88b27da
JB
14842019-11-20 Julian Brown <julian@codesourcery.com>
1485
1486 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1487 aq->mutex here.
1488 (queue_push_launch): Lock aq->mutex before calling
1489 wait_for_queue_nonfull.
1490 (queue_push_callback): Likewise.
1491 (queue_push_asyncwait): Likewise.
1492 (queue_push_placeholder): Likewise.
1493
8d2f4ddf
JB
14942019-11-20 Julian Brown <julian@codesourcery.com>
1495
1496 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1497 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1498 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1499 return code.
1500
e307b05f
JB
15012019-11-20 Julian Brown <julian@codesourcery.com>
1502
1503 PR libgomp/92511
1504
1505 * oacc-mem.c (present_create_copy): Fix device pointer return value in
1506 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
1507 in non-present/create case.
1508 (delete_copyout): Change error condition to fail only on copies outside
1509 of mapped block. Adjust error message accordingly.
1510 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1511 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1512 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1513 message.
1514 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1515 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1516 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1517
83115e9e
MR
15182019-11-20 Maciej W. Rozycki <macro@wdc.com>
1519
1520 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1521 libatomic in build-tree testing.
1522
a1289887
MR
15232019-11-18 Maciej W. Rozycki <macro@wdc.com>
1524
1525 * testsuite/Makefile.in: Regenerate.
1526
8916ba87
AS
15272019-11-15 Andrew Stubbs <ams@codesourcery.com>
1528
1529 * testsuite/libgomp.c/target-print-1.c: New file.
1530 * testsuite/libgomp.fortran/target-print-1.f90: New file.
1531 * testsuite/libgomp.oacc-c/print-1.c: New file.
1532 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1533
237957cc
AS
15342019-11-13 Andrew Stubbs <ams@codesourcery.com>
1535 Kwok Cheung Yeung <kcy@codesourcery.com>
1536 Julian Brown <julian@codesourcery.com>
1537 Tom de Vries <tom@codesourcery.com>
1538
1539 * plugin/Makefrag.am: Add amdgcn plugin support.
1540 * plugin/configfrag.ac: Likewise.
1541 * plugin/plugin-gcn.c: New file.
1542 * configure: Regenerate.
1543 * Makefile.in: Regenerate.
1544 * testsuite/Makefile.in: Regenerate.
1545
cee16451
AS
15462019-11-13 Andrew Stubbs <ams@codesourcery.com>
1547
1548 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1549 and use team_malloc variants.
1550 (gomp_gcn_exit_kernel): Use team_free.
1551 * libgomp.h (TEAM_ARENA_SIZE): Define.
1552 (TEAM_ARENA_START): Define.
1553 (TEAM_ARENA_FREE): Define.
1554 (TEAM_ARENA_END): Define.
1555 (team_malloc): New function.
1556 (team_malloc_cleared): New function.
1557 (team_free): New function.
1558 * team.c (gomp_new_team): Initialize and use team_malloc.
1559 (free_team): Use team_free.
1560 (gomp_free_thread): Use team_free.
1561 (gomp_pause_host): Use team_free.
1562 * work.c (gomp_init_work_share): Use team_malloc.
1563 (gomp_fini_work_share): Use team_free.
1564
fa499995
AS
15652019-11-13 Andrew Stubbs <ams@codesourcery.com>
1566 Kwok Cheung Yeung <kcy@codesourcery.com>
1567 Julian Brown <julian@codesourcery.com>
1568 Tom de Vries <tom@codesourcery.com>
1569
1570 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1571 * Makefile.in: Regenerate.
1572 * config.h.in (PLUGIN_GCN): Add new undef.
1573 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1574 * config/gcn/affinity-fmt.c: New file.
1575 * config/gcn/bar.c: New file.
1576 * config/gcn/bar.h: New file.
1577 * config/gcn/doacross.h: New file.
1578 * config/gcn/icv-device.c: New file.
1579 * config/gcn/oacc-target.c: New file.
1580 * config/gcn/simple-bar.h: New file.
1581 * config/gcn/target.c: New file.
1582 * config/gcn/task.c: New file.
1583 * config/gcn/team.c: New file.
1584 * config/gcn/time.c: New file.
1585 * configure.ac: Add amdgcn*-*-*.
1586 * configure: Regenerate.
1587 * configure.tgt: Add amdgcn*-*-*.
1588 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1589 * libgomp.h (gcn_thrs): Add amdgcn variant.
1590 (set_gcn_thrs): Likewise.
1591 (gomp_thread): Likewise.
1592 * oacc-int.h (goacc_thread): Likewise.
1593 * oacc-target.c: New file.
1594 * openacc.f90 (acc_device_gcn): New parameter.
1595 * openacc.h (acc_device_t): Add acc_device_gcn.
1596 * team.c (gomp_free_pool_helper): Add amdgcn support.
1597
d2903ce0
AS
15982019-11-13 Andrew Stubbs <ams@codesourcery.com>
1599 Julian Brown <julian@codesourcery.com>
1600
1601 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1602 parameter.
1603 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1604 queue constructor.
1605 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1606 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1607 device parameter.
1608
b3d14b3a
AS
16092019-11-13 Andrew Stubbs <ams@codesourcery.com>
1610
1611 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1612 * config/nvptx/libgomp-plugin.c: Move ...
1613 * config/accel/libgomp-plugin.c: ... to here.
1614 * config/nvptx/lock.c: Move ...
1615 * config/accel/lock.c: ... to here.
1616 * config/nvptx/mutex.c: Move ...
1617 * config/accel/mutex.c: ... to here.
1618 * config/nvptx/mutex.h: Move ...
1619 * config/accel/mutex.h: ... to here.
1620 * config/nvptx/oacc-async.c: Move ...
1621 * config/accel/oacc-async.c: ... to here.
1622 * config/nvptx/oacc-cuda.c: Move ...
1623 * config/accel/oacc-cuda.c: ... to here.
1624 * config/nvptx/oacc-host.c: Move ...
1625 * config/accel/oacc-host.c: ... to here.
1626 * config/nvptx/oacc-init.c: Move ...
1627 * config/accel/oacc-init.c: ... to here.
1628 * config/nvptx/oacc-mem.c: Move ...
1629 * config/accel/oacc-mem.c: ... to here.
1630 * config/nvptx/oacc-plugin.c: Move ...
1631 * config/accel/oacc-plugin.c: ... to here.
1632 * config/nvptx/omp-lock.h: Move ...
1633 * config/accel/omp-lock.h: ... to here.
1634 * config/nvptx/openacc.f90: Move ...
1635 * config/accel/openacc.f90: ... to here.
1636 * config/nvptx/pool.h: Move ...
1637 * config/accel/pool.h: ... to here.
1638 * config/nvptx/proc.c: Move ...
1639 * config/accel/proc.c: ... to here.
1640 * config/nvptx/ptrlock.c: Move ...
1641 * config/accel/ptrlock.c: ... to here.
1642 * config/nvptx/ptrlock.h: Move ...
1643 * config/accel/ptrlock.h: ... to here.
1644 * config/nvptx/sem.c: Move ...
1645 * config/accel/sem.c: ... to here.
1646 * config/nvptx/sem.h: Move ...
1647 * config/accel/sem.h: ... to here.
1648 * config/nvptx/thread-stacksize.h: Move ...
1649 * config/accel/thread-stacksize.h: ... to here.
1650
62aee289
MR
16512019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1652 Tobias Burnus <tobias@codesourcery.com>
1653 Frederik Harwath <frederik@codesourcery.com>
1654 Thomas Schwinge <thomas@codesourcery.com>
1655
1656 libgomp/
1657 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1658 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1659 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1660
a2c26c50
TB
16612019-11-11 Tobias Burnus <tobias@codesourcery.com>
1662 Kwok Cheung Yeung <kcy@codesourcery.com>
1663
1664 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1665 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1666
6d4868f3
TS
16672019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1668
bfa1837b
TS
1669 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1670
6d4868f3
TS
1671 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1672 run'.
1673 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1674 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1675
5d183d17
FH
16762019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1677
1678 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1679 Add expected warnings about missing reduction clauses.
1680 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1681 Likewise.
1682 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1683 Likewise.
1684 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1685 Likewise.
1686
d8f03b03
TB
16872019-11-04 Tobias Burnus <tobias@codesourcery.com>
1688
1689 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1690 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1691 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1692 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1693 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1694 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1695
12fd2ec5
TB
16962019-11-04 Tobias Burnus <tobias@codesourcery.com>
1697
1698 PR fortran/92305
1699 * testsuite/libgomp.fortran/allocatable2.f90: Use
1700 unique numbers with 'stop'.
1701 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1702 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1703 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1704 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1705 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1706
92e63bd2
TB
17072019-11-01 Tobias Burnus <tobias@codesourcery.com>
1708
1709 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1710 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1711 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1712 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1713 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1714 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1715
91ae0a46
TB
17162019-10-30 Tobias Burnus <tobias@codesourcery.com>
1717
1718 * testsuite/libgomp.fortran/target9.f90: New.
1719
c425e66b
TB
17202019-10-30 Tobias Burnus <tobias@codesourcery.com>
1721
1722 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1723 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1724 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1725 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1726 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1727 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1728 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1729 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1730 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1731 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1732 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1733 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1734 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1735 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1736 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1737 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1738 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1739 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1740 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1741 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1742 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1743 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1744 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1745 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1746 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1747 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1748 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1749 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1750 * testsuite/libgomp.fortran/character1.f90: Ditto.
1751 * testsuite/libgomp.fortran/character2.f90: Ditto.
1752 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1753 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1754 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1755 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1756 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1757 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1758 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1759 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1760 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1761 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1762 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1763 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1764 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1765 * testsuite/libgomp.fortran/do1.f90: Ditto.
1766 * testsuite/libgomp.fortran/do2.f90: Ditto.
1767 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1768 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1769 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1770 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1771 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1772 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1773 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1774 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1775 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1776 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1777 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1778 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1779 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1780 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1781 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1782 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1783 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1784 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1785 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1786 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1787 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1788 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1789 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1790 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1791 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1792 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1793 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1794 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1795 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1796 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1797 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1798 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1799 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1800 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1801 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1802 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1803 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1804 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1805 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1806 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1807 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1808 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1809 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1810 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1811 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1812 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1813 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1814 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1815 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1816 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1817 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1818 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1819 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1820 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1821 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1822 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1823 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1824 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1825 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1826 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1827 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1828 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1829 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1830 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1831 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1832 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1833 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1834 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1835 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1836 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1837 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1838 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1839 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1840 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1841 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1842 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1843 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1844 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1845 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1846 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1847 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1848 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1849 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1850 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1851 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1852 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1853 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1854 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1855 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1856 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1857 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1858 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1859 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1860 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1861 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1862 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1863 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1864 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1865 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1866 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1867 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1868 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1869 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1870 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1871 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1872 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1873 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1874 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1875 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1876 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1877 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1878 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1879 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1880 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1881 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1882 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1883 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1884 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1885 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1886 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1887 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1888 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1889 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1890 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1891 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1892 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1893 * testsuite/libgomp.fortran/stack.f90: Ditto.
1894 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1895 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1896 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1897 * testsuite/libgomp.fortran/target1.f90: Ditto.
1898 * testsuite/libgomp.fortran/target2.f90: Ditto.
1899 * testsuite/libgomp.fortran/target3.f90: Ditto.
1900 * testsuite/libgomp.fortran/target4.f90: Ditto.
1901 * testsuite/libgomp.fortran/target5.f90: Ditto.
1902 * testsuite/libgomp.fortran/target6.f90: Ditto.
1903 * testsuite/libgomp.fortran/target7.f90: Ditto.
1904 * testsuite/libgomp.fortran/target8.f90: Ditto.
1905 * testsuite/libgomp.fortran/task1.f90: Ditto.
1906 * testsuite/libgomp.fortran/task2.f90: Ditto.
1907 * testsuite/libgomp.fortran/task3.f90: Ditto.
1908 * testsuite/libgomp.fortran/task4.f90: Ditto.
1909 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1910 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1911 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1912 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1913 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1914 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1915 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1916 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1917 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1918 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1919 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1920 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1921 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1922 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1923 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1924 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1925 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1926 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1927 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1928 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1929 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1930 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1931 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1932 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1933 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1934 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1935 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1936 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1937 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1938 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1939 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1940 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1941 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1942 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1943
01509e2f
TB
19442019-10-30 Tobias Burnus <tobias@codesourcery.com>
1945
1946 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1947 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1948 Ditto; add 'dg-do run' for torture testing.
1949 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1950 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1951 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1952 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1953 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1954 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1955 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1956 * testsuite/libgomp.fortran/task2.f90: Ditto.
1957 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1958 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1959 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1960 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1961 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1962 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1963
ffbdd78a
TB
19642019-10-28 Tobias Burnus <tobias@codesourcery.com>
1965
1966 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1967 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1968 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1969 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1970 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1971 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1972 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1973 Use 'stop' not abort().
1974 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1975 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1976 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1977 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1978 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1979 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1980 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1981 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1982 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1983 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1984 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1985 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1986 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1987 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1988 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1989 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1990 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1991 Ditto.
1992 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1993 Ditto.
1994 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1995 Ditto.
1996 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1997 Ditto.
1998 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1999 Ditto.
2000 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
2001 Ditto.
2002 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
2003 Ditto.
2004 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
2005 Ditto.
2006 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
2007 Ditto.
2008 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
2009 Ditto.
2010 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
2011 Ditto.
2012 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
2013 Ditto.
2014 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
2015 Ditto.
2016 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
2017 Ditto.
2018 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
2019 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
2020 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
2021 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
2022 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2023 Likewise and also add 'dg-do run'.
2024 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2025 Ditto.
2026
ec084613
CP
20272019-10-25 Cesar Philippidis <cesar@codesourcery.com>
2028 Tobias Burnus <tobias@codesourcery.com>
2029
2030 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
2031 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
2032 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
2033
77ef3394
JJ
20342019-10-14 Jakub Jelinek <jakub@redhat.com>
2035
2036 PR libgomp/92081
2037 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
2038 than 0.
2039
08c14aaa
TB
20402019-10-11 Tobias Burnus <tobias@codesourcery.com>
2041
2042 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
2043 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
2044
6bbead0c
TS
20452019-10-09 Thomas Schwinge <thomas@codesourcery.com>
2046
2047 PR middle-end/92036
2048 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
2049 file.
2050
eba3dee8
TB
20512019-10-09 Tobias Burnus <tobias@codesourcery.com>
2052
2053 PR testsuite/91884
2054 * testsuite/libgomp.fortran/fortran.exp: Conditionally
2055 add -lquadmath.
2056 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
2057
7d48e14f
JJ
20582019-10-09 Jakub Jelinek <jakub@redhat.com>
2059
2060 PR libgomp/92028
2061 * target.c (gomp_map_vars_internal): Readd the previous
2062 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
2063 though do that just in the !not_found_cnt case.
2064
65b67cf3
TB
20652019-10-08 Tobias Burnus <tobias@codesourcery.com>
2066
2067 * gfortran.dg/gomp/target-simd.f90: New.
2068
6c7e076b
JB
20692019-10-02 Julian Brown <julian@codesourcery.com>
2070 Cesar Philippidis <cesar@codesourcery.com>
2071
2072 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
2073 * target.c (FIELD_TGT_EMPTY): Define.
2074 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
2075 as switch instead of list of ifs.
2076 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
2077
d61bff85
AT
20782019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
2079
2080 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
2081 include. Replace alloca () with __builtin_alloca ().
2082 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
2083
810f316d
JJ
20842019-10-01 Jakub Jelinek <jakub@redhat.com>
2085
2086 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
2087 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
2088 * oacc-parallel.c: Don't include "libgomp_g.h".
2089 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
2090 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
2091 * aclocal.m4: Regenerated.
2092 * config.h.in: Regenerated.
2093 * configure: Regenerated.
2094 * Makefile.in: Regenerated.
2095
d7f9ee98
KCY
20962019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2097
2098 * libgomp_g.h: Include stdint.h instead of gstdint.h.
2099
e9085da5
MR
21002019-09-27 Maciej W. Rozycki <macro@wdc.com>
2101
2102 * configure: Regenerate.
2103
c28712be
TB
21042019-09-13 Tobias Burnus <tobias@codesourcery.com>
2105
2106 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
2107 string is initialized.
2108
3c086f8d
FW
21092019-09-06 Florian Weimer <fweimer@redhat.com>
2110
2111 * configure: Regenerate.
2112
c6c2d1bc
CLT
21132019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
2114
2115 PR other/79543
2116 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
2117 scanning to conform to the GNU Coding Standards.
2118 * configure: Regenerate.
2119
5cb72d83
JJ
21202019-08-28 Jakub Jelinek <jakub@redhat.com>
2121
2122 PR libgomp/91530
2123 * testsuite/libgomp.c/scan-21.c: New test.
2124 * testsuite/libgomp.c/scan-22.c: New test.
2125
0ad7981c
JJ
21262019-08-27 Jakub Jelinek <jakub@redhat.com>
2127
2128 PR libgomp/91530
2129 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
2130 targets.
2131 * testsuite/libgomp.c/scan-12.c: Likewise.
2132 * testsuite/libgomp.c/scan-13.c: Likewise.
2133 * testsuite/libgomp.c/scan-14.c: Likewise.
2134 * testsuite/libgomp.c/scan-15.c: Likewise.
2135 * testsuite/libgomp.c/scan-16.c: Likewise.
2136 * testsuite/libgomp.c/scan-17.c: Likewise.
2137 * testsuite/libgomp.c/scan-18.c: Likewise.
2138 * testsuite/libgomp.c/scan-19.c: Likewise.
2139 * testsuite/libgomp.c/scan-20.c: Likewise.
2140 * testsuite/libgomp.c++/scan-9.C: Likewise.
2141 * testsuite/libgomp.c++/scan-10.C: Likewise.
2142 * testsuite/libgomp.c++/scan-11.C: Likewise.
2143 * testsuite/libgomp.c++/scan-12.C: Likewise.
2144 * testsuite/libgomp.c++/scan-14.C: Likewise.
2145 * testsuite/libgomp.c++/scan-15.C: Likewise.
2146 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
2147 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
2148 * testsuite/libgomp.c++/scan-16.C: Likewise.
2149
1e67491a
TK
21502019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
2151
2152 PR fortran/91473
2153 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
2154 -std=legacy so invalid code in the test case is accepted.
2155
393fdeb1
TK
21562019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2157
2158 PR fortran/91422
2159 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
2160 dimension.
2161
8860d270
JJ
21622019-08-08 Jakub Jelinek <jakub@redhat.com>
2163
2164 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
2165 perform the lookup in the first loop only if !not_found_cnt, otherwise
2166 perform lookups for it in the second loop guarded with
2167 if (not_found_cnt || has_firstprivate).
2168 * testsuite/libgomp.c/target-37.c: New test.
2169 * testsuite/libgomp.c++/target-22.C: New test.
2170
398e3feb
JJ
21712019-08-07 Jakub Jelinek <jakub@redhat.com>
2172
2173 * testsuite/libgomp.c/target-18.c (struct S): New type.
2174 (foo): Use use_device_addr clause instead of use_device_ptr clause
2175 where required by OpenMP 5.0, add further tests for both use_device_ptr
2176 and use_device_addr clauses.
2177 * testsuite/libgomp.c++/target-9.C (struct S): New type.
2178 (foo): Use use_device_addr clause instead of use_device_ptr clause
2179 where required by OpenMP 5.0, add further tests for both use_device_ptr
2180 and use_device_addr clauses. Add t and u arguments.
2181 (main): Adjust caller.
2182
d81ab49d
JJ
21832019-08-06 Jakub Jelinek <jakub@redhat.com>
2184
2185 * testsuite/libgomp.c++/loop-13.C: New test.
2186 * testsuite/libgomp.c++/loop-14.C: New test.
2187 * testsuite/libgomp.c++/loop-15.C: New test.
2188
c3ac76aa
JJ
21892019-07-31 Jakub Jelinek <jakub@redhat.com>
2190
2191 PR middle-end/91301
2192 * testsuite/libgomp.c++/for-27.C: New test.
2193
8dc63166
SK
21942019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
2195
393fdeb1 2196 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8dc63166 2197 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
393fdeb1 2198
554a530f
JJ
21992019-07-20 Jakub Jelinek <jakub@redhat.com>
2200
2201 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
2202
6cda84b5
JJ
22032019-07-08 Jakub Jelinek <jakub@redhat.com>
2204
2205 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
2206 * testsuite/libgomp.c++/scan-16.C: Likewise.
2207
1f52d1a8
JJ
22082019-07-06 Jakub Jelinek <jakub@redhat.com>
2209
6f67abcd
JJ
2210 * testsuite/libgomp.c/scan-19.c: New test.
2211 * testsuite/libgomp.c/scan-20.c: New test.
2212
1f52d1a8
JJ
2213 * testsuite/libgomp.c/scan-11.c: New test.
2214 * testsuite/libgomp.c/scan-12.c: New test.
2215 * testsuite/libgomp.c/scan-13.c: New test.
2216 * testsuite/libgomp.c/scan-14.c: New test.
2217 * testsuite/libgomp.c/scan-15.c: New test.
2218 * testsuite/libgomp.c/scan-16.c: New test.
2219 * testsuite/libgomp.c/scan-17.c: New test.
2220 * testsuite/libgomp.c/scan-18.c: New test.
2221 * testsuite/libgomp.c++/scan-9.C: New test.
2222 * testsuite/libgomp.c++/scan-10.C: New test.
2223 * testsuite/libgomp.c++/scan-11.C: New test.
2224 * testsuite/libgomp.c++/scan-12.C: New test.
2225 * testsuite/libgomp.c++/scan-13.C: New test.
2226 * testsuite/libgomp.c++/scan-14.C: New test.
2227 * testsuite/libgomp.c++/scan-15.C: New test.
2228 * testsuite/libgomp.c++/scan-16.C: New test.
2229
2f03073f
JJ
22302019-07-04 Jakub Jelinek <jakub@redhat.com>
2231
2232 * testsuite/libgomp.c/scan-9.c: New test.
2233 * testsuite/libgomp.c/scan-10.c: New test.
2234
2f6bb511
JJ
22352019-07-03 Jakub Jelinek <jakub@redhat.com>
2236
2237 * testsuite/libgomp.c++/scan-1.C: New test.
2238 * testsuite/libgomp.c++/scan-2.C: New test.
2239 * testsuite/libgomp.c++/scan-3.C: New test.
2240 * testsuite/libgomp.c++/scan-4.C: New test.
2241 * testsuite/libgomp.c++/scan-5.C: New test.
2242 * testsuite/libgomp.c++/scan-6.C: New test.
2243 * testsuite/libgomp.c++/scan-7.C: New test.
2244 * testsuite/libgomp.c++/scan-8.C: New test.
2245 * testsuite/libgomp.c/scan-1.c: New test.
2246 * testsuite/libgomp.c/scan-2.c: New test.
2247 * testsuite/libgomp.c/scan-3.c: New test.
2248 * testsuite/libgomp.c/scan-4.c: New test.
2249 * testsuite/libgomp.c/scan-5.c: New test.
2250 * testsuite/libgomp.c/scan-6.c: New test.
2251 * testsuite/libgomp.c/scan-7.c: New test.
2252 * testsuite/libgomp.c/scan-8.c: New test.
2253
bd194a51
TS
22542019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2255
85fca03a
TS
2256 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
2257 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
2258 Likewise.
2259
bd194a51
TS
2260 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
2261 check.
2262
6652161e
CP
22632019-06-18 Cesar Philippidis <cesar@codesourcery.com>
2264
2265 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
2266 file.
2267
3a37d6f6
TS
22682019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2269
4017da8d
TS
2270 PR fortran/90743
2271 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
2272 case.
2273 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
2274 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
2275 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
2276 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
2277
6f7c1f65
TS
2278 PR testsuite/90861
2279 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
2280
3a37d6f6
TS
2281 PR middle-end/90862
2282 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
2283
f45ce17d
TV
22842019-06-16 Tom de Vries <tdevries@suse.de>
2285
2286 PR tree-optimization/89376
2287 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
2288
00908992
TV
22892019-06-15 Tom de Vries <tdevries@suse.de>
2290
2291 PR tree-optimization/89713
2292 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
2293 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
2294
211b7533
JJ
22952019-06-15 Jakub Jelinek <jakub@redhat.com>
2296
2297 PR middle-end/90779
2298 * testsuite/libgomp.c/pr90779.c: New test.
2299 * testsuite/libgomp.fortran/pr90779.f90: New test.
2300
120a01d1
TV
23012019-06-15 Tom de Vries <tdevries@suse.de>
2302
2303 PR tree-optimization/90009
2304 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
2305
c29c92c7
FX
23062019-06-13 Feng Xue <fxue@os.amperecomputing.com>
2307
2308 PR tree-optimization/89713
2309 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
2310
ce9c4ec3
JJ
23112019-06-11 Jakub Jelinek <jakub@redhat.com>
2312
2313 PR target/90811
2314 * testsuite/libgomp.c/pr90811.c: New test.
2315
28b3a77c
JJ
23162019-06-05 Jakub Jelinek <jakub@redhat.com>
2317
2318 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
2319 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
2320
7855700e
JJ
23212019-06-04 Jakub Jelinek <jakub@redhat.com>
2322
2323 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
2324 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
2325 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
2326 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
2327
a7155c2e
RO
23282019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2329
2330 * configure.ac: Call AX_COUNT_CPUS.
2331 Substitute CPU_COUNT.
2332 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
2333 count fallback.
2334 * aclocal.m4: Regenerate.
2335 * configure: Regenerate.
2336 * Makefile.in, testsuite/Makefile.in: Regenerate.
2337
7e47198b
JJ
23382019-05-29 Jakub Jelinek <jakub@redhat.com>
2339
2340 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
2341 to ...
2342 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
2343 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
2344 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
2345
fcfb8032
JJ
23462019-05-27 Jakub Jelinek <jakub@redhat.com>
2347
8e7757ba
JJ
2348 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
2349
36c7a3ff
JJ
2350 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
2351
fcfb8032
JJ
2352 PR libgomp/90641
2353 * work.c (gomp_init_work_share): Instead of aligning final ordered
2354 value to multiples of long long alignment, align to that the
2355 first part (ordered team ids) and if inline_ordered_team_ids
2356 is not on a long long alignment boundary within the structure,
2357 use __alignof__ (long long) - 1 pad size always.
2358 * loop.c (GOMP_loop_start): Fix *mem computation if
2359 inline_ordered_team_ids is not aligned on long long alignment boundary
2360 within the structure.
2361 * loop-ull.c (GOMP_loop_ull_start): Likewise.
2362 * sections.c (GOMP_sections2_start): Likewise.
2363
b5c26449
JJ
23642019-05-24 Jakub Jelinek <jakub@redhat.com>
2365
6c7ae8c5
JJ
2366 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
2367 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
2368
b5c26449
JJ
2369 PR libgomp/90585
2370 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
2371 HAVE_INTTYPES_H is defined.
2372 (print_uint64_t): New typedef.
2373 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
2374 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
2375 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
2376 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
2377 before casting to void *.
2378 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
2379 * oacc-mem.c: Don't include config.h nor stdint.h.
2380 * target.c: Don't include config.h.
2381 * oacc-cuda.c: Likewise.
2382 * oacc-host.c: Don't include stdint.h.
2383
3e03ed66
JJ
23842019-05-20 Jakub Jelinek <jakub@redhat.com>
2385
2386 PR libgomp/90527
2387 * alloc.c (_GNU_SOURCE): Define.
2388
5fae049d
TS
23892019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2390
2391 * acc_prof.h: New file.
2392 * oacc-profiling.c: Likewise.
2393 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2394 Add these, respectively.
2395 * Makefile.in: Regenerate.
2396 * env.c (initialize_env): Call goacc_profiling_initialize.
2397 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2398 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2399 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2400 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2401 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2402 acc_prof_register, acc_prof_unregister, and acc_register_library.
2403 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2404 GOMP_PLUGIN_goacc_thread.
2405 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2406 prof_callbacks_enabled members.
2407 (goacc_prof_enabled, goacc_profiling_initialize)
2408 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2409 (goacc_profiling_dispatch): Declare.
2410 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2411 (GOACC_PROFILING_SETUP_P): Define.
2412 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2413 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2414 OpenACC Profiling Interface.
2415 * oacc-cuda.c (acc_get_current_cuda_device)
2416 (acc_get_current_cuda_context, acc_get_cuda_stream)
2417 (acc_set_cuda_stream): Likewise.
2418 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2419 (acc_init, acc_set_device_type, acc_get_device_type)
2420 (acc_get_device_num, goacc_lazy_initialize): Likewise.
2421 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2422 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2423 (acc_unmap_data, present_create_copy, delete_copyout)
2424 (update_dev_host): Likewise.
2425 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2426 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2427 Likewise.
2428 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2429 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2430 Likewise.
2431 * libgomp.texi: Update.
2432 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2433 file.
2434 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2435 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2436 Likewise.
2437 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2438 Likewise.
2439 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2440 Likewise.
2441 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2442 Likewise.
2443
1f4c5b9b
CLT
24442019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
2445
2446 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2447 (struct goacc_asyncqueue_list): Likewise.
2448 (goacc_aq): Likewise.
2449 (goacc_aq_list): Likewise.
2450 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2451 (GOMP_OFFLOAD_openacc_async_test): Remove.
2452 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2453 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2454 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2455 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2456 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2457 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2458 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2459 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2460 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2461 (GOMP_OFFLOAD_openacc_async_exec): Declare.
2462 (GOMP_OFFLOAD_openacc_async_construct): Declare.
2463 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2464 (GOMP_OFFLOAD_openacc_async_test): Declare.
2465 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2466 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2467 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2468 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2469 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2470
2471 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2472 (gomp_acc_insert_pointer): Adjust declaration.
2473 (gomp_copy_host2dev): New declaration.
2474 (gomp_copy_dev2host): Likewise.
2475 (gomp_map_vars_async): Likewise.
2476 (gomp_unmap_tgt): Likewise.
2477 (gomp_unmap_vars_async): Likewise.
2478 (gomp_fini_device): Likewise.
2479
2480 * oacc-async.c (get_goacc_thread): New function.
2481 (get_goacc_thread_device): New function.
2482 (lookup_goacc_asyncqueue): New function.
2483 (get_goacc_asyncqueue): New function.
2484 (acc_async_test): Adjust code to use new async design.
2485 (acc_async_test_all): Likewise.
2486 (acc_wait): Likewise.
2487 (acc_wait_async): Likewise.
2488 (acc_wait_all): Likewise.
2489 (acc_wait_all_async): Likewise.
2490 (goacc_async_free): New function.
2491 (goacc_init_asyncqueues): Likewise.
2492 (goacc_fini_asyncqueues): Likewise.
2493 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2494 design.
2495 (acc_set_cuda_stream): Likewise.
2496 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2497 (host_openacc_register_async_cleanup): Remove.
2498 (host_openacc_async_exec): New function.
2499 (host_openacc_async_test): Adjust parameters.
2500 (host_openacc_async_test_all): Remove.
2501 (host_openacc_async_wait): Remove.
2502 (host_openacc_async_wait_async): Remove.
2503 (host_openacc_async_wait_all): Remove.
2504 (host_openacc_async_wait_all_async): Remove.
2505 (host_openacc_async_set_async): Remove.
2506 (host_openacc_async_synchronize): New function.
2507 (host_openacc_async_serialize): New function.
2508 (host_openacc_async_host2dev): New function.
2509 (host_openacc_async_dev2host): New function.
2510 (host_openacc_async_queue_callback): New function.
2511 (host_openacc_async_construct): New function.
2512 (host_openacc_async_destruct): New function.
2513 (struct gomp_device_descr host_dispatch): Remove initialization of old
93d90219 2514 interface, add initialization of new async sub-struct.
1f4c5b9b
CLT
2515 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2516 (goacc_attach_host_thread_to_device): Remove old async code usage.
2517 * oacc-int.h (goacc_init_asyncqueues): New declaration.
2518 (goacc_fini_asyncqueues): Likewise.
2519 (goacc_async_copyout_unmap_vars): Likewise.
2520 (goacc_async_free): Likewise.
2521 (get_goacc_asyncqueue): Likewise.
2522 (lookup_goacc_asyncqueue): Likewise.
2523 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2524 design.
2525 (present_create_copy): Adjust code to use new async design.
2526 (delete_copyout): Likewise.
2527 (update_dev_host): Likewise.
2528 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2529 async design.
2530 (gomp_acc_remove_pointer): Adjust code to use new async design.
2531 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2532 design.
2533 (GOACC_enter_exit_data): Likewise.
2534 (goacc_wait): Likewise.
2535 (GOACC_update): Likewise.
2536 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2537 when called, warn as obsolete in comment.
2538 * target.c (goacc_device_copy_async): New function.
2539 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2540 add goacc_device_copy_async case.
2541 (gomp_copy_dev2host): Likewise.
2542 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2543 (gomp_map_pointer): Likewise.
2544 (gomp_map_fields_existing): Likewise.
2545 (gomp_map_vars_internal): New always_inline function, renamed from
2546 gomp_map_vars.
2547 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2548 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2549 passing goacc_asyncqueue argument.
2550 (gomp_unmap_tgt): Remove static, add attribute_hidden.
2551 (gomp_unref_tgt): New function.
2552 (gomp_unmap_vars_internal): New always_inline function, renamed from
2553 gomp_unmap_vars.
2554 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2555 (gomp_unmap_vars_async): Implement by calling
2556 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2557 (gomp_fini_device): New function.
2558 (gomp_exit_data): Adjust gomp_copy_dev2host call.
2559 (gomp_load_plugin_for_device): Remove old interface, adjust to load
2560 new async interface.
2561 (gomp_target_fini): Adjust code to call gomp_fini_device.
2562
2563 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2564 (struct ptx_stream): Remove.
2565 (struct nvptx_thread): Remove current_stream field.
2566 (cuda_map_create): Remove.
2567 (cuda_map_destroy): Remove.
2568 (map_init): Remove.
2569 (map_fini): Remove.
2570 (map_pop): Remove.
2571 (map_push): Remove.
2572 (struct goacc_asyncqueue): Define.
2573 (struct nvptx_callback): Define.
2574 (struct ptx_free_block): Define.
2575 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2576 stream_lock, and next fields.
2577 (enum ptx_event_type): Remove.
2578 (struct ptx_event): Remove.
2579 (ptx_event_lock): Remove.
2580 (ptx_events): Remove.
2581 (init_streams_for_device): Remove.
2582 (fini_streams_for_device): Remove.
2583 (select_stream_for_async): Remove.
2584 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2585 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2586 case.
2587 (nvptx_open_device): Add free_blocks initialization, remove
2588 init_streams_for_device call.
2589 (nvptx_close_device): Remove fini_streams_for_device call, add
2590 free_blocks destruct code.
2591 (event_gc): Remove.
2592 (event_add): Remove.
2593 (nvptx_exec): Adjust parameters and code.
2594 (nvptx_free): Likewise.
2595 (nvptx_host2dev): Remove.
2596 (nvptx_dev2host): Remove.
2597 (nvptx_set_async): Remove.
2598 (nvptx_async_test): Remove.
2599 (nvptx_async_test_all): Remove.
2600 (nvptx_wait): Remove.
2601 (nvptx_wait_async): Remove.
2602 (nvptx_wait_all): Remove.
2603 (nvptx_wait_all_async): Remove.
2604 (nvptx_get_cuda_stream): Remove.
2605 (nvptx_set_cuda_stream): Remove.
2606 (GOMP_OFFLOAD_alloc): Adjust code.
2607 (GOMP_OFFLOAD_free): Likewise.
2608 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2609 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2610 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2611 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2612 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2613 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2614 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2615 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2616 (cuda_free_argmem): New function.
2617 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2618 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2619 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2620 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2621 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2622 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2623 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2624 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2625 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2626 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2627 (cuda_callback_wrapper): New function.
2628 (cuda_memcpy_sanity_check): New function.
2629 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2630 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2631 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2632 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2633
da2d30c1
TS
26342019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2635
2636 PR target/87835
2637 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2638
2bbbfa4e
TS
26392019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2640
2641 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2642
bbf1efe1
KB
26432019-03-27 Kevin Buettner <kevinb@redhat.com>
2644
2645 * team.c (gomp_team_start): Initialize pool->threads[0].
2646
1241136c
TS
26472019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2648
b03d721a
TS
2649 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2650 "-foffload=$offload_target".
2651 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2652 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2653 * testsuite/lib/libgomp.exp
2654 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2655 as (conceptually) merged into
2656 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2657 users.
2658
0a0384b4
TS
2659 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2660 * testsuite/libgomp-test-support.exp.in: Adjust.
2661 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2662 openacc_device_types_s.
2663 (offload_target_to_openacc_device_type): New proc.
2664 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2665 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2666 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2667 * Makefile.in: Regenerate.
2668 * configure: Likewise.
2669 * testsuite/Makefile.in: Likewise.
2670
ee332b4a
TS
2671 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2672 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2673 instead of OFFLOAD_TARGETS.
2674 * target.c (gomp_target_init): Adjust.
2675 * testsuite/libgomp-test-support.exp.in: Likewise.
2676 * testsuite/lib/libgomp.exp: Likewise. Populate
2677 openacc_device_types_s instead of offload_targets_s_openacc.
2678 (check_effective_target_openacc_nvidia_accel_selected)
2679 (check_effective_target_openacc_host_selected): Adjust.
2680 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2681 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2682 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2683 * Makefile.in: Regenerate.
2684 * config.h.in: Likewise.
2685 * configure: Likewise.
2686 * testsuite/Makefile.in: Likewise.
2687
1241136c
TS
2688 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2689 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2690 "offloading: supported, but hardware not accessible".
2691 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2692 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2693
19695f4d
CLT
26942019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2695
2696 PR c/87924
2697 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2698 goacc_wait().
2699 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2700 and related adjustment.
2701
8b44f8ec
JJ
27022019-01-30 Jakub Jelinek <jakub@redhat.com>
2703
2704 PR c++/88988
2705 * testsuite/libgomp.c++/pr88988.C: New test.
2706
be3a87e7
JJ
27072019-01-28 Jakub Jelinek <jakub@redhat.com>
2708
2709 PR middle-end/89002
2710 * testsuite/libgomp.c/pr89002.c: New test.
2711
497ef4d7
RB
27122019-01-28 Richard Biener <rguenther@suse.de>
2713
2714 PR testsuite/89064
2715 PR tree-optimization/86865
2716 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2717
738c56d4
TV
27182019-01-24 Tom de Vries <tdevries@suse.de>
2719
2720 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2721 once instantiated_devices drops to 0.
2722
4a75460b
TV
27232019-01-23 Tom de Vries <tdevries@suse.de>
2724
2725 PR target/PR88946
2726 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2727 cuMemFree.
2728 (nvptx_exec): Don't call map_push if mapnum == 0.
2729 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2730
4fef8e4d
TV
27312019-01-23 Tom de Vries <tdevries@suse.de>
2732
2733 PR target/88941
2734 PR target/88939
2735 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2736 (map_fini): Remove "assert (!s->map->active)".
2737 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2738
2ee6cb22
TV
27392019-01-23 Tom de Vries <tdevries@suse.de>
2740
2741 PR target/87835
2742 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2743 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2744
d41d952c
TV
27452019-01-15 Tom de Vries <tdevries@suse.de>
2746
2747 PR target/80547
2748 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2749 New test.
2750
efb56ae8
TV
27512019-01-12 Tom de Vries <tdevries@suse.de>
2752
2753 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2754 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2755 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2756 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2757
2c2ff168
TV
27582019-01-12 Tom de Vries <tdevries@suse.de>
2759
2760 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2761
a1057758
TV
27622019-01-12 Tom de Vries <tdevries@suse.de>
2763
2764 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2765 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2766 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2767
56314b77
TV
27682019-01-12 Tom de Vries <tdevries@suse.de>
2769
2770 PR target/85486
2771 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2772 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2773
b39e4366
TV
27742019-01-12 Tom de Vries <tdevries@suse.de>
2775
2776 PR target/85381
2777 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2778 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2779
2cb7a501
TV
27802019-01-12 Tom de Vries <tdevries@suse.de>
2781
2782 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2783 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2784 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2785
8e77f71e
TV
27862019-01-12 Tom de Vries <tdevries@suse.de>
2787
2788 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2789 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2790 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2791
52d22ece
TV
27922019-01-12 Tom de Vries <tdevries@suse.de>
2793
2794 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2795 resources diagnostic.
2796
2b9d9e39
TV
27972019-01-12 Tom de Vries <tdevries@suse.de>
2798
2799 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2800 vector length to be 128.
2801 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2802 length 2097152 to be reduced to 1024 instead of 32.
2803
4102bda6
TS
28042019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2805 James Norris <jnorris@codesourcery.com>
2806
2807 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2808 Library Routines", and "Environment Variables".
2809
052aaace
TV
28102019-01-11 Tom de Vries <tdevries@suse.de>
2811
2812 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2813 num_workers 16.
2814
9390f916
TV
28152019-01-11 Tom de Vries <tdevries@suse.de>
2816
2817 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2818 -foffload=-w.
2819 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2820 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2821 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2822 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2823
2c3e7ad2
TV
28242019-01-11 Tom de Vries <tdevries@suse.de>
2825
2826 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2827 test.
2828
e222497d
NS
28292019-01-10 Nathan Sidwell <nathan@acm.org>
2830 Julian Brown <julian@codesourcery.com>
2831
2832 PR lto/71959
2833 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2834 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2835
cb87fec3
SH
28362019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2837
2838 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2839 and paste code.
2840
30b4d0d0
SH
28412019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2842
2843 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2844 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2845 write.
2846
5d0bc70a
TV
28472019-01-09 Tom de Vries <tdevries@suse.de>
2848
2849 PR target/88756
2850 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2851 #define instead of "const int".
2852 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2853 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2854 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2855 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2856
2c372e81
TV
28572019-01-09 Tom de Vries <tdevries@suse.de>
2858
2859 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2860 one worker.
2861
43493c97
TV
28622019-01-07 Tom de Vries <tdevries@suse.de>
2863
2864 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2865 GOMP_OPENACC_DIM argument.
2866
5c571497
TV
28672019-01-03 Tom de Vries <tdevries@suse.de>
2868
2869 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2870 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2871
a5544970
JJ
28722019-01-01 Jakub Jelinek <jakub@redhat.com>
2873
2874 Update copyright years.
2875
3f27508c
JJ
28762019-01-01 Jakub Jelinek <jakub@redhat.com>
2877
2878 * libgomp.texi: Bump @copying's copyright year.
2879
59d5960c
TS
28802018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2881
2882 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2883 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2884 (GOACC_declare): Redefine the "device" argument to "flags".
2885
a44c1790
TS
28862018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2887 Cesar Philippidis <cesar@codesourcery.com>
2888
2889 * target.c (struct gomp_coalesce_chunk): New structure.
2890 (struct gomp_coalesce_buf): Update the chunks member to use that
2891 type. Adjust all users.
2892
a152954e
TV
28932018-12-19 Tom de Vries <tdevries@suse.de>
2894
2895 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2896 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2897 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2898
49188cd1
TV
28992018-12-19 Tom de Vries <tdevries@suse.de>
2900
2901 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2902 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2903 gcc/testsuite/gcc.dg/goacc.
2904 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2905
c759830b
TS
29062018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2907 Chung-Lin Tang <cltang@codesourcery.com>
2908
2909 * oacc-mem.c (acc_present_or_create): Remove definition and change
2910 to alias of acc_create.
2911 (acc_present_or_copyin): Remove definition and change to alias of
2912 acc_copyin.
2913 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2914 of acc_present_or_create.
2915 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2916 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2917 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2918 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2919 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2920 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2921 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2922 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2923 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2924 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2925 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2926 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2927 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2928 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2929 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2930 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2931
7de562ee
TS
29322018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2933
f847198e
TS
2934 PR libgomp/88495
2935 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2936 "identical parameters".
2937 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2938 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2939
c8ab8aab
TS
2940 PR libgomp/88484
2941 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2942 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2943
1404af62
TS
2944 PR libgomp/88407
2945 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2946 (nvptx_wait_async): Unseen async-argument is a no-op.
2947 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2948 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2949 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2950 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2951 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2952 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2953 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2954 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2955 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2956
7de562ee
TS
2957 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2958 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2959
17469af7
CLT
29602018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2961
2962 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2963 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2964 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2965
18c247cc
TS
29662018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2967
2968 PR libgomp/88370
2969 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2970 (acc_set_cuda_stream): Clarify.
2971 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2972 "async_valid_p".
2973 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2974 acc_async_sync".
2975 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2976 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2977 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2978 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2979
b0aba46c
TV
29802018-12-14 Tom de Vries <tdevries@suse.de>
2981
2982 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2983 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2984 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2985 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2986 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2987
fe0827ee
TV
29882018-12-13 Tom de Vries <tdevries@suse.de>
2989
2990 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2991 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2992 * fortran.c (omp_display_affinity_): ... here.
2993 * libgomp.h (gomp_print_string): Declare.
2994 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2995 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2996 write.
2997
a51f8c92
JJ
29982018-12-13 Jakub Jelinek <jakub@redhat.com>
2999
3000 PR libgomp/88460
3001 * testsuite/libgomp.c++/for-24.C (results): Include it in
3002 omp declare target region.
3003 (main): Use map (always, tofrom: results) instead of
3004 map (tofrom: results).
3005
a6ef2ac9
JJ
30062018-12-12 Jakub Jelinek <jakub@redhat.com>
3007
7a289b7d
JJ
3008 PR fortran/88463
3009 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
3010 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
3011
a6ef2ac9
JJ
3012 * testsuite/libgomp.c-c++-common/for-16.c: New test.
3013
9c47a019
AS
30142018-12-12 Andreas Schwab <schwab@suse.de>
3015
3016 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
3017 clobbered.
3018
d0cbb206
TK
30192018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
3020
3021 PR fortran/88411
3022 * testsuite/libgomp.fortran/async_io_8.f90: New test.
3023
84ca08d2
TS
30242018-12-09 Thomas Schwinge <thomas@codesourcery.com>
3025 Jakub Jelinek <jakub@redhat.com>
3026
3027 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
3028 devicep->host2dev_func.
3029
6997628d
JJ
30302018-12-08 Jakub Jelinek <jakub@redhat.com>
3031
3032 PR libgomp/87995
3033 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
3034 tls_runtime effective target.
3035 (t): New threadprivate variable.
3036 (main): Set t in threads which execute iterations of the worksharing
3037 loop. Propagate that to the task after the loop and don't abort
3038 if the current taskgroup hasn't been cancelled.
3039
daa8c1d7
JJ
30402018-12-02 Jakub Jelinek <jakub@redhat.com>
3041
4a82df9a
JJ
3042 * testsuite/libgomp.c/task-reduction-3.c: New test.
3043
daa8c1d7
JJ
3044 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
3045
fe570ff8
CP
30462018-11-30 Cesar Philippidis <cesar@codesourcery.com>
3047
3048 PR libgomp/88288
3049 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
3050 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
3051
c223608f
TS
30522018-11-30 Thomas Schwinge <thomas@codesourcery.com>
3053
3054 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
3055
fc60283c
RB
30562018-10-19 Richard Biener <rguenther@suse.de>
3057
3058 PR tree-optimization/88182
3059 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
3060
ffcf3b79
JJ
30612018-11-26 Jakub Jelinek <jakub@redhat.com>
3062
3063 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
3064 (RUNTEST): Don't define.
3065 (RUNTESTDEFAULTFLAGS): Add.
3066 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
3067 (distclean-am): Depend on distclean-DEJAGNU.
3068 (check-am): If -j% option is present in MFLAGS and if
3069 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
3070 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
3071 * testsuite/Makefile.in: Regenerated.
3072
ef6e6914
RB
30732018-11-26 Richard Biener <rguenther@suse.de>
3074
3075 PR tree-optimization/88182
3076 * testsuite/libgomp.c++/pr88182.C: New testcase.
3077
72d3bb76
JJ
30782018-11-20 Jakub Jelinek <jakub@redhat.com>
3079
3080 PR bootstrap/88106
3081 * config/mingw32/affinity-fmt.c: New file.
3082
207286c3
JJ
30832018-11-09 Jakub Jelinek <jakub@redhat.com>
3084
9666c522
JJ
3085 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
3086 (gomp_display_affinity): Use __builtin_choose_expr to handle
3087 properly handle argument having integral, or pointer or some other
3088 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
3089 with uint64_t type instead of %llx and unsigned long long.
3090
207286c3
JJ
3091 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
3092 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
3093
2033f45b
RO
30942018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3095
3096 * affinity.c: Include <string.h>, <stdio.h>.
3097 (gomp_display_affinity_place): Remove cpusetp.
3098 * teams.c: Include <limits.h>.
3099
28567c40
JJ
31002018-11-08 Jakub Jelinek <jakub@redhat.com>
3101
8991d779
JJ
3102 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
3103 in_reduction clause for s[0].
3104
28567c40
JJ
3105 * affinity.c (gomp_display_affinity_place): New function.
3106 * affinity-fmt.c: New file.
3107 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
3108 * config/linux/affinity.c (gomp_display_affinity_place): New function.
3109 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
3110 Move these functions to ...
3111 * config/nvptx/teams.c: ... here. New file.
3112 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
3113 New functions.
3114 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
3115 functions.
3116 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
3117 and _aligned_malloc.
3118 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
3119 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
3120 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
3121 gomp_affinity_format_len): New variables.
3122 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
3123 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
3124 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
3125 modifiers. Display (non-default) chunk sizes. Print
3126 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
3127 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
3128 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
3129 * fortran.c: Include stdio.h and string.h.
3130 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
3131 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
3132 (omp_set_affinity_format_, omp_get_affinity_format_,
3133 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
3134 omp_pause_resource_all_): New functions.
3135 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
3136 switch.
3137 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
3138 functions to ...
3139 * teams.c: ... here. New file.
3140 * libgomp_g.h: Include gstdint.h.
3141 (GOMP_loop_nonmonotonic_runtime_start,
3142 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
3143 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
3144 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
3145 GOMP_parallel_loop_nonmonotonic_runtime,
3146 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3147 GOMP_loop_ull_nonmonotonic_runtime_start,
3148 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
3149 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
3150 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3151 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
3152 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
3153 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3154 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3155 GOMP_teams_reg): Declare.
3156 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
3157 gomp_aligned_alloc uses fallback implementation.
3158 (gomp_aligned_alloc, gomp_aligned_free): Declare.
3159 (enum gomp_schedule_type): Add GFS_MONOTONIC.
3160 (struct gomp_doacross_work_share): Add extra field.
3161 (struct gomp_work_share): Add task_reductions field.
3162 (struct gomp_taskgroup): Add workshare and reductions fields.
3163 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
3164 (gomp_thread_handle): New typedef.
3165 (gomp_display_affinity_place, gomp_set_affinity_format,
3166 gomp_display_string, gomp_display_affinity,
3167 gomp_display_affinity_thread): Declare.
3168 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
3169 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
3170 gomp_workshare_task_reduction_register): Declare.
3171 (gomp_team_start): Add taskgroup argument.
3172 (gomp_pause_host): Declare.
3173 (gomp_init_work_share, gomp_work_share_start): Change bool argument
3174 to size_t.
3175 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
3176 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
3177 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
3178 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3179 GOMP_loop_ull_doacross_start,
3180 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
3181 GOMP_loop_maybe_nonmonotonic_runtime_next,
3182 GOMP_loop_maybe_nonmonotonic_runtime_start,
3183 GOMP_loop_nonmonotonic_runtime_next,
3184 GOMP_loop_nonmonotonic_runtime_start,
3185 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3186 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3187 GOMP_loop_ull_nonmonotonic_runtime_next,
3188 GOMP_loop_ull_nonmonotonic_runtime_start,
3189 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3190 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
3191 GOMP_taskgroup_reduction_register,
3192 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3193 GOMP_teams_reg and GOMP_taskwait_depend.
3194 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
3195 omp_{capture,display}_affinity{,_}, and
3196 omp_[gs]et_affinity_format{,_}.
3197 * loop.c: Include string.h.
3198 (GOMP_loop_runtime_next): Add ialias.
3199 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3200 (gomp_loop_static_start, gomp_loop_dynamic_start,
3201 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3202 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3203 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
3204 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
3205 or gomp_doacross_init callers.
3206 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
3207 GOMP_loop_doacross_start): New functions.
3208 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3209 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
3210 Mask off GFS_MONOTONIC bit.
3211 (GOMP_loop_maybe_nonmonotonic_runtime_next,
3212 GOMP_loop_maybe_nonmonotonic_runtime_start,
3213 GOMP_loop_nonmonotonic_runtime_next,
3214 GOMP_loop_nonmonotonic_runtime_start,
3215 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
3216 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
3217 functions.
3218 (gomp_parallel_loop_start): Pass NULL as taskgroup to
3219 gomp_team_start.
3220 * loop_ull.c: Include string.h.
3221 (GOMP_loop_ull_runtime_next): Add ialias.
3222 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3223 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
3224 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
3225 gomp_loop_ull_ordered_dynamic_start,
3226 gomp_loop_ull_ordered_guided_start,
3227 gomp_loop_ull_doacross_static_start,
3228 gomp_loop_ull_doacross_dynamic_start,
3229 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
3230 and gomp_doacross_ull_init callers.
3231 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
3232 GOMP_loop_ull_doacross_start): New functions.
3233 (GOMP_loop_ull_runtime_start,
3234 GOMP_loop_ull_ordered_runtime_start,
3235 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
3236 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
3237 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
3238 GOMP_loop_ull_nonmonotonic_runtime_next,
3239 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
3240 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
3241 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
3242 (omp_pause_resource_t, omp_depend_t): New typedefs.
3243 (enum omp_lock_hint_t): Renamed to ...
3244 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
3245 enumerators using numbers and omp_lock_hint_* as their aliases.
3246 (omp_lock_hint_t): New typedef. Rename to ...
3247 (omp_sync_hint_t): ... this.
3248 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
3249 omp_sync_hint_t instead of omp_lock_hint_t.
3250 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3251 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3252 Declare.
3253 (omp_target_is_present, omp_target_disassociate_ptr):
3254 Change first argument from void * to const void *.
3255 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
3256 from void * to const void *.
3257 (omp_target_associate_ptr): Change first and second arguments from
3258 void * to const void *.
3259 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
3260 omp_pause_hard): New parameters.
3261 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3262 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3263 New interfaces.
3264 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
3265 omp_pause_hard): New parameters.
3266 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
3267 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
3268 New externals.
3269 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
3270 EXTRA argument. If not needed to prepare array, if extra is 0,
3271 clear ws->doacross, otherwise allocate just doacross structure and
3272 extra payload. If array is needed, allocate also extra payload.
3273 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
3274 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
3275 doacross == NULL.
3276 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
3277 gomp_team_start.
3278 (GOMP_parallel): Likewise. Formatting fix.
3279 (GOMP_parallel_reductions): New function.
3280 (GOMP_cancellation_point): If taskgroup has workshare
3281 flag set, check cancelled of prev taskgroup if any.
3282 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
3283 on prev taskgroup if any.
3284 * sections.c: Include string.h.
3285 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
3286 (GOMP_sections_start): Adjust gomp_work_share_start caller.
3287 (GOMP_sections2_start): New function.
3288 (GOMP_parallel_sections_start, GOMP_parallel_sections):
3289 Pass NULL as taskgroup to gomp_team_start.
3290 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
3291 gomp_work_share_start callers.
3292 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
3293 If taskgroup has workshare flag set, check cancelled on prev
3294 taskgroup if any. Guard all cancellation tests with
3295 gomp_cancel_var test.
3296 (omp_target_is_present, omp_target_disassociate_ptr):
3297 Change ptr argument from void * to const void *.
3298 (omp_target_memcpy): Change src argument from void * to const void *.
3299 (omp_target_memcpy_rect): Likewise.
3300 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
3301 instead of char * where needed.
3302 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
3303 from void * to const void *.
3304 (omp_pause_resource, omp_pause_resource_all): New functions.
3305 * task.c (gomp_task_handle_depend): Handle new depend array format
3306 in addition to the old. Handle mutexinoutset kinds the same as
3307 inout for now, handle unspecified kinds.
3308 (gomp_create_target_task): If taskgroup has workshare flag set, check
3309 cancelled on prev taskgroup if any. Guard all cancellation tests with
3310 gomp_cancel_var test. Handle new depend array format count in
3311 addition to the old.
3312 (GOMP_task): Likewise. Adjust function comment.
3313 (gomp_task_run_pre): If taskgroup has workshare flag set, check
3314 cancelled on prev taskgroup if any. Guard all cancellation tests with
3315 gomp_cancel_var test.
3316 (GOMP_taskwait_depend): New function.
3317 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
3318 format in addition to the old. Handle mutexinoutset kinds the same as
3319 inout for now, handle unspecified kinds. Fix a function comment typo.
3320 (gomp_taskgroup_init): New function.
3321 (GOMP_taskgroup_start): Use it.
3322 (gomp_reduction_register, gomp_create_artificial_team,
3323 GOMP_taskgroup_reduction_register,
3324 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
3325 gomp_parallel_reduction_register,
3326 gomp_workshare_task_reduction_register,
3327 gomp_workshare_taskgroup_start,
3328 GOMP_workshare_task_reduction_unregister): New functions.
3329 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
3330 check cancelled on prev taskgroup if any. Guard all cancellation
3331 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
3332 by calling GOMP_taskgroup_reduction_register.
3333 * team.c (gomp_thread_attr): Remove comment.
3334 (struct gomp_thread_start_data): Add handle field.
3335 (gomp_thread_start): Call pthread_detach.
3336 (gomp_new_team): Adjust gomp_init_work_share caller.
3337 (gomp_free_pool_helper): Call pthread_detach.
3338 (gomp_team_start): Add taskgroup argument, initialize implicit
3339 tasks' taskgroup field to that. Don't call
3340 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
3341 (gomp_team_end): Determine nesting by thr->ts.level != 0
3342 rather than thr->ts.team != NULL.
3343 (gomp_pause_pool_helper, gomp_pause_host): New functions.
3344 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
3345 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
3346 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
3347 if more than 1 allocate also extra payload at the end of array. Never
3348 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
3349 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
3350 return true instead of ws.
3351 * Makefile.in: Regenerated.
3352 * configure: Regenerated.
3353 * config.h.in: Regenerated.
3354 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
3355 in some cases.
3356 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
3357 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
3358 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
3359 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
3360 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
3361 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
3362 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
3363 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
3364 * testsuite/libgomp.c-c++-common/for-10.c: New test.
3365 * testsuite/libgomp.c-c++-common/for-11.c: New test.
3366 * testsuite/libgomp.c-c++-common/for-12.c: New test.
3367 * testsuite/libgomp.c-c++-common/for-13.c: New test.
3368 * testsuite/libgomp.c-c++-common/for-14.c: New test.
3369 * testsuite/libgomp.c-c++-common/for-15.c: New test.
3370 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
3371 define a different N(test), don't define N(f0) to N(f14), but instead
3372 define N(f20) to N(f34) using != comparisons.
3373 * testsuite/libgomp.c-c++-common/for-7.c: New test.
3374 * testsuite/libgomp.c-c++-common/for-8.c: New test.
3375 * testsuite/libgomp.c-c++-common/for-9.c: New test.
3376 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
3377 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
3378 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
3379 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
3380 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
3381 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
3382 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
3383 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
3384 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
3385 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
3386 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
3387 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
3388 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
3389 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
3390 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
3391 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3392 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3393 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3394 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3395 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3396 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3397 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3398 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3399 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3400 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3401 * testsuite/libgomp.c++/depend-1.C: New test.
3402 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3403 * testsuite/libgomp.c++/depobj-1.C: New test.
3404 * testsuite/libgomp.c++/for-16.C: New test.
3405 * testsuite/libgomp.c++/for-21.C: New test.
3406 * testsuite/libgomp.c++/for-22.C: New test.
3407 * testsuite/libgomp.c++/for-23.C: New test.
3408 * testsuite/libgomp.c++/for-24.C: New test.
3409 * testsuite/libgomp.c++/for-25.C: New test.
3410 * testsuite/libgomp.c++/for-26.C: New test.
3411 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3412 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3413 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3414 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3415 * testsuite/libgomp.c++/task-reduction-10.C: New test.
3416 * testsuite/libgomp.c++/task-reduction-11.C: New test.
3417 * testsuite/libgomp.c++/task-reduction-12.C: New test.
3418 * testsuite/libgomp.c++/task-reduction-13.C: New test.
3419 * testsuite/libgomp.c++/task-reduction-14.C: New test.
3420 * testsuite/libgomp.c++/task-reduction-15.C: New test.
3421 * testsuite/libgomp.c++/task-reduction-16.C: New test.
3422 * testsuite/libgomp.c++/task-reduction-17.C: New test.
3423 * testsuite/libgomp.c++/task-reduction-18.C: New test.
3424 * testsuite/libgomp.c++/task-reduction-19.C: New test.
3425 * testsuite/libgomp.c/task-reduction-1.c: New test.
3426 * testsuite/libgomp.c++/task-reduction-1.C: New test.
3427 * testsuite/libgomp.c/task-reduction-2.c: New test.
3428 * testsuite/libgomp.c++/task-reduction-2.C: New test.
3429 * testsuite/libgomp.c++/task-reduction-3.C: New test.
3430 * testsuite/libgomp.c++/task-reduction-4.C: New test.
3431 * testsuite/libgomp.c++/task-reduction-5.C: New test.
3432 * testsuite/libgomp.c++/task-reduction-6.C: New test.
3433 * testsuite/libgomp.c++/task-reduction-7.C: New test.
3434 * testsuite/libgomp.c++/task-reduction-8.C: New test.
3435 * testsuite/libgomp.c++/task-reduction-9.C: New test.
3436 * testsuite/libgomp.c/teams-1.c: New test.
3437 * testsuite/libgomp.c/teams-2.c: New test.
3438 * testsuite/libgomp.c/thread-limit-4.c: New test.
3439 * testsuite/libgomp.c/thread-limit-5.c: New test.
3440 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3441
58168bbf
CLT
34422018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
3443
3444 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3445 acc_memcpy_to/from_device functions, now with async parameter.
3446 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3447 (acc_memcpy_from_device): Likewise.
3448 (acc_memcpy_to_device_async): New API function.
3449 (acc_memcpy_from_device_async): Likewise.
3450 (present_create_copy): Add async parameter and async setting/unsetting.
3451 (acc_create): Adjust present_create_copy call.
3452 (acc_copyin): Likewise.
3453 (acc_present_or_create): Likewise.
3454 (acc_present_or_copyin): Likewise.
3455 (acc_create_async): New API function.
3456 (acc_copyin_async): New API function.
3457 (delete_copyout): Add async parameter and async setting/unsetting.
3458 (acc_delete): Adjust delete_copyout call.
3459 (acc_copyout): Likewise.
3460 (acc_delete_async): New API function.
3461 (acc_copyout_async): Likewise.
3462 (update_dev_host): Add async parameter and async setting/unsetting.
3463 (acc_update_device): Adjust update_dev_host call.
3464 (acc_update_self): Likewise.
3465 (acc_update_device_async): New API function.
3466 (acc_update_self_async): Likewise.
3467 * openacc.h (acc_copyin_async): Declare new API function.
3468 (acc_create_async): Likewise.
3469 (acc_copyout_async): Likewise.
3470 (acc_delete_async): Likewise.
3471 (acc_update_device_async): Likewise.
3472 (acc_update_self_async): Likewise.
3473 (acc_memcpy_to_device_async): Likewise.
3474 (acc_memcpy_from_device_async): Likewise.
3475 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3476 (acc_copyin_async_64_h): New subroutine.
3477 (acc_copyin_async_array_h): New subroutine.
3478 (acc_create_async_32_h): New subroutine.
3479 (acc_create_async_64_h): New subroutine.
3480 (acc_create_async_array_h): New subroutine.
3481 (acc_copyout_async_32_h): New subroutine.
3482 (acc_copyout_async_64_h): New subroutine.
3483 (acc_copyout_async_array_h): New subroutine.
3484 (acc_delete_async_32_h): New subroutine.
3485 (acc_delete_async_64_h): New subroutine.
3486 (acc_delete_async_array_h): New subroutine.
3487 (acc_update_device_async_32_h): New subroutine.
3488 (acc_update_device_async_64_h): New subroutine.
3489 (acc_update_device_async_array_h): New subroutine.
3490 (acc_update_self_async_32_h): New subroutine.
3491 (acc_update_self_async_64_h): New subroutine.
3492 (acc_update_self_async_array_h): New subroutine.
3493 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3494 (acc_copyin_async_64_h): New subroutine.
3495 (acc_copyin_async_array_h): New subroutine.
3496 (acc_create_async_32_h): New subroutine.
3497 (acc_create_async_64_h): New subroutine.
3498 (acc_create_async_array_h): New subroutine.
3499 (acc_copyout_async_32_h): New subroutine.
3500 (acc_copyout_async_64_h): New subroutine.
3501 (acc_copyout_async_array_h): New subroutine.
3502 (acc_delete_async_32_h): New subroutine.
3503 (acc_delete_async_64_h): New subroutine.
3504 (acc_delete_async_array_h): New subroutine.
3505 (acc_update_device_async_32_h): New subroutine.
3506 (acc_update_device_async_64_h): New subroutine.
3507 (acc_update_device_async_array_h): New subroutine.
3508 (acc_update_self_async_32_h): New subroutine.
3509 (acc_update_self_async_64_h): New subroutine.
3510 (acc_update_self_async_array_h): New subroutine.
3511 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3512 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3513 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3514 acc_memcpy_to_device_async*, acc_update_device_async*, and
3515 acc_update_self_async* entries.
3516 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3517 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3518 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3519
22e05272
JM
35202018-10-31 Joseph Myers <joseph@codesourcery.com>
3521
3522 PR bootstrap/82856
3523 * Makefile.am: Include multilib.am
3524 (AUTOMAKE_OPTIONS): Add info-in-builddir.
3525 (CLEANFILES): Remove libgomp.info.
3526 * configure.ac: Remove AC_PREREQ.
3527 * testsuite/Makefile.am (RUNTEST): Remove quotes.
3528 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3529 Regenerate.
3530
87a5ccfb
JM
35312018-10-29 Joseph Myers <joseph@codesourcery.com>
3532 Julian Brown <julian@codesourcery.com>
3533
3534 * testsuite/libgomp.oacc-c++/this.C: New.
3535
2049befd
CP
35362018-09-18 Cesar Philippidis <cesar@codesourcery.com>
3537
3538 * plugin/plugin-nvptx.c (struct cuda_map): New.
3539 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3540 h_tail with (cuda_map *) map.
3541 (cuda_map_create): New function.
3542 (cuda_map_destroy): New function.
3543 (map_init): Update to use a linked list of cuda_map objects.
3544 (map_fini): Likewise.
3545 (map_pop): Likewise.
3546 (map_push): Likewise. Return CUdeviceptr instead of void.
3547 (init_streams_for_device): Remove stales references to ptx_stream
3548 members.
3549 (select_stream_for_async): Likewise.
3550 (nvptx_exec): Update call to map_init.
3551
8e36332c
CP
35522018-09-09 Cesar Philippidis <cesar@codesourcery.com>
3553 Julian Brown <julian@codesourcery.com>
3554
3555 PR middle-end/86336
3556 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3557
2b4c9065
NK
35582018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
3559 Thomas Koenig <tkoenig@gcc.gnu.org>
3560
3561 PR fortran/25829
3562 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3563 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3564 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3565 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3566 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3567 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3568 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3569
bd9b3d3d
CP
35702018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3571 Tom de Vries <tdevries@suse.de>
3572
3573 PR target/85590
3574 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3575 (cuOccupancyMaxPotentialBlockSize): Declare.
3576 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3577 CUDA_ONE_CALL_MAYBE_NULL.
3578 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3579 CUoccupancyB2DSize and declare
3580 cuOccupancyMaxPotentialBlockSize.
3581 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3582 default num_gangs and num_workers when the driver supports it.
3583
8e09a12f
TV
35842018-08-08 Tom de Vries <tdevries@suse.de>
3585
3586 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3587 CUDA_ONE_CALL_MAYBE_NULL.
3588 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3589 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3590 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3591 are not found.
3592
cedd9bd0
TV
35932018-08-08 Tom de Vries <tdevries@suse.de>
3594
3595 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3596 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3597 present.
3598
b113af95
TV
35992018-08-08 Tom de Vries <tdevries@suse.de>
3600
3601 * plugin/plugin-nvptx.c
3602 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3603 (nvptx_open_device): Use
3604 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3605
94767dac
TV
36062018-08-08 Tom de Vries <tdevries@suse.de>
3607
3608 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3609 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3610
02150de8
TV
36112018-08-07 Tom de Vries <tdevries@suse.de>
3612
3613 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3614 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3615 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3616 corresponding call in CUDA_ONE_CALL. Add def/undef of
3617 CUDA_ONE_CALL_MAYBE_NULL.
3618 (CUDA_CALL_EXISTS): Define.
3619
9e28b107
TV
36202018-08-07 Tom de Vries <tdevries@suse.de>
3621
3622 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3623 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3624 corresponding undefs right after.
3625
09940090
TV
36262018-08-04 Tom de Vries <tdevries@suse.de>
3627
3628 * plugin/configfrag.ac: For --without-cuda-driver, set
3629 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3630 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3631 * configure: Regenerate.
3632
77e0a97a
TV
36332018-08-02 Tom de Vries <tdevries@suse.de>
3634
3635 PR target/86660
3636 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3637 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3638 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3639 Same.
3640 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3641 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3642 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3643
701d080a
CP
36442018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3645 Thomas Schwinge <thomas@codesourcery.com>
3646
3647 * config/nvptx/oacc-parallel.c: Truncate.
3648
094db6be
CP
36492018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3650 James Norris <jnorris@codesourcery.com>
3651
3652 * plugin/plugin-nvptx.c (struct map): Removed.
701d080a
CP
3653 (map_init, map_pop): Remove use of struct map.
3654 (map_push): Likewise and change argument list.
094db6be
CP
3655 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3656
8c6310a2
TV
36572018-08-01 Tom de Vries <tdevries@suse.de>
3658
3659 * plugin/cuda-lib.def: New file. Factor out of ...
3660 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3661 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3662 using CUDA_CALLS.
3663
1d4a51cf
AV
36642018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3665
3666 Revert 'AsyncI/O patch committed'.
3667 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3668 Thomas Koenig <tkoenig@gcc.gnu.org>
3669
3670 PR fortran/25829
3671 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3672 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3673 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3674 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3675 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3676 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3677 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3678
4cdfee3f
TV
36792018-07-30 Tom de Vries <tdevries@suse.de>
3680
3681 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3682 (nvptx_exec): Ensure worker and vector default dims don't exceed
3683 targ_fn->max_threads_per_block.
3684
0b210c43
TV
36852018-07-30 Tom de Vries <tdevries@suse.de>
3686
3687 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3688 (nvptx_open_device): Init default_dims for device.
3689 (nvptx_exec): Use default_dims from device.
3690
5883c5cc
JJ
36912018-07-26 Jakub Jelinek <jakub@redhat.com>
3692
5d36384c
JJ
3693 PR testsuite/86660
3694 * testsuite/libgomp.c++/for-15.C (results): Include it in
3695 omp declare target region.
3696 (main): Use map (always, tofrom: results) instead of
3697 map (tofrom: results).
3698
5883c5cc
JJ
3699 PR middle-end/86660
3700 * testsuite/libgomp.c/pr86660.c: New test.
3701
88a4654d
CP
37022018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3703 Tom de Vries <tdevries@suse.de>
3704
3705 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3706 sufficient resources to launch a kernel, and give a hint on how to fix
3707 it.
3708
0c6c2f5f
CP
37092018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3710 Tom de Vries <tdevries@suse.de>
3711
3712 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3713 max_threads_per_block and max_threads_per_multiprocessor fields.
3714 (nvptx_open_device): Initialize new fields.
3715 (nvptx_exec): Use num_sms, and new fields.
3716
6dd58010
TV
37172018-07-26 Tom de Vries <tdevries@suse.de>
3718
3719 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3720 to correct locations. Remove xfail.
3721
b2eb1779
TV
37222018-07-26 Tom de Vries <tdevries@suse.de>
3723
3724 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3725 acc_wait. Move acc_async_test calls to correct locations. Remove
3726 xfail.
3727
b1f45884
NK
37282018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3729 Thomas Koenig <tkoenig@gcc.gnu.org>
3730
3731 PR fortran/25829
3732 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3733 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3734 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3735 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3736 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3737 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3738 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3739
3a106211
JJ
37402018-07-17 Jakub Jelinek <jakub@redhat.com>
3741
a3bccfa1
JJ
3742 PR middle-end/86542
3743 * testsuite/libgomp.c++/pr86542.C: New test.
3744
3a106211
JJ
3745 PR middle-end/86539
3746 * testsuite/libgomp.c++/pr86539.C: New test.
3747
2bae8b2f
JJ
37482018-07-11 Jakub Jelinek <jakub@redhat.com>
3749
3750 PR c++/86443
3751 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3752 (results): Make sure the variable is not inside declare target region.
3753 (qux): Remove unused function.
3754
0b27c3ed
JJ
37552018-07-10 Jakub Jelinek <jakub@redhat.com>
3756
3757 PR c++/86443
3758 * testsuite/libgomp.c++/for-15.C: New test.
3759
f0391511
JJ
37602018-06-26 Jakub Jelinek <jakub@redhat.com>
3761
3762 PR c++/86291
3763 * testsuite/libgomp.c++/pr86291.C: New test.
3764
1a6d1d24
GP
37652018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3766
3767 * libgomp.texi (Top): Move www.openmp.org to https.
3768 (Enabling OpenMP): Ditto.
3769 (omp_get_active_level): Ditto.
3770 (omp_get_ancestor_thread_num): Ditto.
3771 (omp_get_cancellation): Ditto.
3772 (omp_get_default_device): Ditto.
3773 (omp_get_dynamic): Ditto.
3774 (omp_get_level): Ditto.
3775 (omp_get_max_active_levels): Ditto.
3776 (omp_get_max_task_priority): Ditto.
3777 (omp_get_max_threads): Ditto.
3778 (omp_get_nested): Ditto.
3779 (omp_get_num_devices): Ditto.
3780 (omp_get_num_procs): Ditto.
3781 (omp_get_num_teams): Ditto.
3782 (omp_get_num_threads): Ditto.
3783 (omp_get_proc_bind): Ditto.
3784 (omp_get_schedule): Ditto.
3785 (omp_get_team_num): Ditto.
3786 (omp_get_team_size): Ditto.
3787 (omp_get_thread_limit): Ditto.
3788 (omp_get_thread_num): Ditto.
3789 (omp_in_parallel): Ditto.
3790 (omp_in_final): Ditto.
3791 (omp_is_initial_device): Ditto.
3792 (omp_set_default_device): Ditto.
3793 (omp_set_dynamic): Ditto.
3794 (omp_set_max_active_levels): Ditto.
3795 (omp_set_nested): Ditto.
3796 (omp_set_num_threads): Ditto.
3797 (omp_set_schedule): Ditto.
3798 (omp_init_lock): Ditto.
3799 (omp_set_lock): Ditto.
3800 (omp_test_lock): Ditto.
3801 (omp_unset_lock): Ditto.
3802 (omp_destroy_lock): Ditto.
3803 (omp_init_nest_lock): Ditto.
3804 (omp_set_nest_lock): Ditto.
3805 (omp_test_nest_lock): Ditto.
3806 (omp_unset_nest_lock): Ditto.
3807 (omp_destroy_nest_lock): Ditto.
3808 (omp_get_wtick): Ditto.
3809 (omp_get_wtime): Ditto.
3810 (OMP_CANCELLATION): Ditto.
3811 (OMP_DISPLAY_ENV): Ditto.
3812 (OMP_DEFAULT_DEVICE): Ditto.
3813 (OMP_DYNAMIC): Ditto.
3814 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3815 (OMP_MAX_TASK_PRIORITY): Ditto.
3816 (OMP_NESTED): Ditto.
3817 (OMP_NUM_THREADS): Ditto.
3818 (OMP_PROC_BIND): Ditto.
3819 (OMP_PLACES): Ditto.
3820 (OMP_STACKSIZE): Ditto.
3821 (OMP_SCHEDULE): Ditto.
3822 (OMP_THREAD_LIMIT): Ditto.
3823 (OMP_WAIT_POLICY): Ditto.
3824
31dd69b7
CP
38252018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3826 James Norris <jnorris@codesourcery.com>
3827 Julian Brown <julian@codesourcery.com>
3828 Thomas Schwinge <thomas@codesourcery.com>
3829 Tom de Vries <tom@codesourcery.com>
3830
3831 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3832 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3833 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3834 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3835 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3836 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3837 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3838 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3839 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3840 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3841 Likewise.
3842 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3843 Likewise.
3844 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3845 Likewise.
3846 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3847 Likewise.
3848 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3849 Likewise.
3850 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3851 Likewise.
3852 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3853 Likewise.
3854 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3855 Likewise.
3856 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3857 Likewise.
3858 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3859 Likewise.
3860 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3861 Likewise.
3862 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3863 Likewise.
3864 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3865 Likewise.
3866 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3867 Likewise.
3868 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3869 Likewise.
3870 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3871 Likewise.
3872 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3873 Likewise.
3874 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3875 Likewise.
3876 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3877 Likewise.
3878 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3879 Likewise.
3880 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3881 Likewise.
3882 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3883 Likewise.
3884 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3885 Likewise.
3886 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3887 Likewise.
3888 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3889 Likewise.
3890 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3891 Likewise.
3892 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3893 Likewise.
3894 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3895 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3896 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3897 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3898 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3899 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3900 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3901 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3902 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3903 Likewise.
3904 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3905 Likewise.
3906 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3907 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3908 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3909 Likewise.
3910 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3911 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3912 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3913 Likewise.
3914 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3915 Likewise.
3916 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3917 Likewise.
3918 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3919 Likewise.
3920 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3921 Likewise.
3922 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3923 Likewise.
3924 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3925 Likewise.
3926 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3927 Likewise.
3928 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3929 Likewise.
3930 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3931 Likewise.
3932 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3933 Likewise.
3934 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3935 Likewise.
3936 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3937 Likewise.
3938 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3939 Likewise.
3940 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3941 Likewise.
3942 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3943 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3944 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3945 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3946 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3947 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3948 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3949
829c6349
CLT
39502018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3951 Thomas Schwinge <thomas@codesourcery.com>
3952 Cesar Philippidis <cesar@codesourcery.com>
3953
3954 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3955 (gomp_acc_remove_pointer): Update declaration.
3956 (gomp_acc_declare_allocate): Declare.
3957 (gomp_remove_var): Declare.
3958 * libgomp.map (OACC_2.5): Define.
3959 * oacc-mem.c (acc_map_data): Update refcount.
3960 (acc_unmap_data): Likewise.
3961 (present_create_copy): Likewise.
3962 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3963 (acc_copyin): Likewise.
3964 (FLAG_FINALIZE): Define.
3965 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3966 (acc_delete_finalize): New function.
3967 (acc_delete_finalize_async): New function.
3968 (acc_copyout_finalize): New function.
3969 (acc_copyout_finalize_async): New function.
3970 (gomp_acc_insert_pointer): Update refcounts.
3971 (gomp_acc_remove_pointer): Return if data is not present on the
3972 accelerator.
3973 * oacc-parallel.c (find_pset): Rename to find_pointer.
3974 (find_pointer): Add support for GOMP_MAP_POINTER.
3975 (handle_ftn_pointers): New function.
3976 (GOACC_parallel_keyed): Update refcounts of variables.
3977 (GOACC_enter_exit_data): Add support for finalized data mappings.
3978 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3979 of fortran arrays.
3980 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3981 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3982 for GOMP_MAP_FORCE_FROM.
3983 * openacc.f90 (module openacc_internal): Add
3984 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3985 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3986 acc_copyout_finalize and acc_delete_finalize.
3987 (acc_copyout_finalize_32_h): New subroutine.
3988 (acc_copyout_finalize_64_h): New subroutine.
3989 (acc_copyout_finalize_array_h): New subroutine.
3990 (acc_delete_finalize_32_h): New subroutine.
3991 (acc_delete_finalize_64_h): New subroutine.
3992 (acc_delete_finalize_array_h): New subroutine.
3993 * openacc.h (acc_copyout_finalize): Declare.
3994 (acc_copyout_finalize_async): Declare.
3995 (acc_delete_finalize): Declare.
3996 (acc_delete_finalize_async): Declare.
3997 * openacc_lib.h (acc_copyout_finalize): New interface.
3998 (acc_delete_finalize): New interface.
3999 * target.c (gomp_map_vars): Update dynamic_refcount.
4000 (gomp_remove_var): New function.
4001 (gomp_unmap_vars): Use it.
4002 (gomp_unload_image_from_device): Likewise.
4003 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
4004 case to utilize OpenACC 2.5 data clause semantics.
4005 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4006 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4007 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4008 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4009 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4010 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4011 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4012 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4013 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4014 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
4015 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4016 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
4017 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
4018 utilize OpenACC 2.5 data clause semantics.
4019 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4020 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4021 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4022 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4023 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4024 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4025 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4026 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4027 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4028
4358400b
JW
40292018-05-21 Janus Weil <janus@gcc.gnu.org>
4030
4031 PR fortran/85841
4032 PR testsuite/85865
4033 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
4034 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4035 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4036 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4037 * testsuite/libgomp.fortran/task2.f90: Ditto.
4038 * testsuite/libgomp.fortran/vla1.f90: Ditto.
4039 * testsuite/libgomp.fortran/vla2.f90: Ditto.
4040 * testsuite/libgomp.fortran/vla3.f90: Ditto.
4041 * testsuite/libgomp.fortran/vla4.f90: Ditto.
4042 * testsuite/libgomp.fortran/vla5.f90: Ditto.
4043 * testsuite/libgomp.fortran/vla6.f90: Ditto.
4044 * testsuite/libgomp.fortran/vla8.f90: Ditto.
4045 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
4046 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
4047
950ad0ba
CP
40482018-05-18 Cesar Philippidis <cesar@codesourcery.com>
4049
4050 PR c++/85782
4051 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
4052
f5ad16f1
TV
40532018-05-09 Tom de Vries <tom@codesourcery.com>
4054
4055 PR libgomp/82901
4056 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
4057 to GOACC_enter_exit_data.
4058
edbd038a
TV
40592018-05-09 Tom de Vries <tom@codesourcery.com>
4060
4061 PR libgomp/83792
4062 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
4063 (async_synchronous_p): New function.
4064 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
4065 async_valid_p.
4066 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
4067 async_valid_stream_id_p.
4068 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
4069 * oacc-parallel.c (GOACC_parallel_keyed): Same.
4070
37d6c719
TV
40712018-05-07 Tom de Vries <tom@codesourcery.com>
4072
4073 PR testsuite/85677
4074 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
4075 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
4076
63f12215
TV
40772018-05-03 Tom de Vries <tom@codesourcery.com>
4078
4079 PR testsuite/85106
4080 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
4081 extra_tool_flags if it contains an -foffload=-fdump-* flag.
4082 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
4083 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
4084
ec00d3fa
TV
40852018-05-02 Tom de Vries <tom@codesourcery.com>
4086
4087 PR libgomp/85411
4088 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
4089 GOMP_OPENACC_DIM ...
4090 * env.c (parse_gomp_openacc_dim): ... here. New function.
4091 (initialize_env): Call parse_gomp_openacc_dim.
4092 (goacc_default_dims): Define.
4093 * libgomp.h (goacc_default_dims): Declare.
4094 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
4095 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
4096 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
4097 GOMP_PLUGIN_acc_default_dim.
4098 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
4099 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
4100
92243e7c
TV
41012018-05-02 Tom de Vries <tom@codesourcery.com>
4102
4103 PR testsuite/83791
4104 * testsuite/libgomp.c++/udr-9.C: Update.
4105 * testsuite/libgomp.c++/atomic-16.C: Remove.
4106 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
4107 * testsuite/libgomp.c++/loop-13.C: Remove.
4108 * testsuite/libgomp.c++/loop-14.C: Remove.
4109 * testsuite/libgomp.c++/loop-15.C: Remove.
4110 * testsuite/libgomp.c++/monotonic-1.C: Remove.
4111 * testsuite/libgomp.c++/monotonic-2.C: Remove.
4112 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
4113 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
4114 * testsuite/libgomp.c++/ordered-1.C: Remove.
4115 * testsuite/libgomp.c++/pr45784.C: Remove.
4116 * testsuite/libgomp.c++/pr64824.C: Remove.
4117 * testsuite/libgomp.c++/pr64868.C: Remove.
4118 * testsuite/libgomp.c++/pr66199-1.C: Remove.
4119 * testsuite/libgomp.c++/pr66199-2.C: Remove.
4120 * testsuite/libgomp.c++/pr66199-3.C: Remove.
4121 * testsuite/libgomp.c++/pr66199-4.C: Remove.
4122 * testsuite/libgomp.c++/pr66199-5.C: Remove.
4123 * testsuite/libgomp.c++/pr66199-6.C: Remove.
4124 * testsuite/libgomp.c++/pr66199-7.C: Remove.
4125 * testsuite/libgomp.c++/pr66199-8.C: Remove.
4126 * testsuite/libgomp.c++/pr66199-9.C: Remove.
4127 * testsuite/libgomp.c++/pr69389.C: Remove.
4128 * testsuite/libgomp.c++/simd10.C: Remove.
4129 * testsuite/libgomp.c++/simd11.C: Remove.
4130 * testsuite/libgomp.c++/simd12.C: Remove.
4131 * testsuite/libgomp.c++/simd13.C: Remove.
4132 * testsuite/libgomp.c++/target-1.C: Remove.
4133 * testsuite/libgomp.c++/target-3.C: Remove.
4134 * testsuite/libgomp.c++/target-4.C: Remove.
4135 * testsuite/libgomp.c++/target-5.C: Remove.
4136 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
4137 * testsuite/libgomp.c++/taskloop-1.C: Remove.
4138 * testsuite/libgomp.c++/taskloop-2.C: Remove.
4139 * testsuite/libgomp.c++/taskloop-3.C: Remove.
4140 * testsuite/libgomp.c++/taskloop-4.C: Remove.
4141 * testsuite/libgomp.c++/udr-9.C: Remove.
4142 * testsuite/libgomp.c++/for-10.C: Remove.
4143 * testsuite/libgomp.c++/for-11.C: Remove.
4144 * testsuite/libgomp.c++/for-12.C: Remove.
4145 * testsuite/libgomp.c++/for-13.C: Remove.
4146 * testsuite/libgomp.c++/for-14.C: Remove.
4147 * testsuite/libgomp.c++/for-9.C: Remove.
4148 * testsuite/libgomp.c/atomic-18.c: Move ...
4149 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
4150 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
4151 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
4152 * testsuite/libgomp.c/loop-13.c: Move ...
4153 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
4154 * testsuite/libgomp.c/loop-14.c: Move ...
4155 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
4156 * testsuite/libgomp.c/loop-15.c: Remove.
4157 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
4158 * testsuite/libgomp.c/monotonic-1.c: Move ...
4159 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
4160 * testsuite/libgomp.c/monotonic-2.c: Move ...
4161 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
4162 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
4163 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
4164 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
4165 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
4166 * testsuite/libgomp.c/ordered-4.c: Move ...
4167 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
4168 * testsuite/libgomp.c/pr45784.c: Move ...
4169 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
4170 * testsuite/libgomp.c/pr64824.c: Move ...
4171 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
4172 * testsuite/libgomp.c/pr64868.c: Move ...
4173 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
4174 * testsuite/libgomp.c/pr66199-1.c: Move ...
4175 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
4176 * testsuite/libgomp.c/pr66199-2.c: Move ...
4177 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
4178 * testsuite/libgomp.c/pr66199-3.c: Move ...
4179 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
4180 * testsuite/libgomp.c/pr66199-4.c: Move ...
4181 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
4182 * testsuite/libgomp.c/pr66199-5.c: Move ...
4183 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
4184 * testsuite/libgomp.c/pr66199-6.c: Move ...
4185 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
4186 * testsuite/libgomp.c/pr66199-7.c: Move ...
4187 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
4188 * testsuite/libgomp.c/pr66199-8.c: Move ...
4189 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
4190 * testsuite/libgomp.c/pr66199-9.c: Move ...
4191 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
4192 * testsuite/libgomp.c/pr69389.c: Move ...
4193 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
4194 * testsuite/libgomp.c/simd-14.c: Move ...
4195 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
4196 * testsuite/libgomp.c/simd-15.c: Move ...
4197 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
4198 * testsuite/libgomp.c/simd-16.c: Move ...
4199 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
4200 * testsuite/libgomp.c/simd-17.c: Move ...
4201 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
4202 * testsuite/libgomp.c/target-1.c: Move ...
4203 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
4204 * testsuite/libgomp.c/target-10.c: Move ...
4205 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
4206 * testsuite/libgomp.c/target-13.c: Move ...
4207 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
4208 * testsuite/libgomp.c/target-2.c: Move ...
4209 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
4210 * testsuite/libgomp.c/taskgroup-1.c: Move ...
4211 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
4212 * testsuite/libgomp.c/taskloop-1.c: Move ...
4213 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
4214 * testsuite/libgomp.c/taskloop-2.c: Move ...
4215 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
4216 * testsuite/libgomp.c/taskloop-3.c: Move ...
4217 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
4218 * testsuite/libgomp.c/taskloop-4.c: Move ...
4219 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
4220 * testsuite/libgomp.c/udr-1.c: Move ...
4221 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
4222 * testsuite/libgomp.c/for-1.c: Move ...
4223 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
4224 * testsuite/libgomp.c/for-1.h: Move ...
4225 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
4226 * testsuite/libgomp.c/for-2.c: Move ...
4227 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
4228 * testsuite/libgomp.c/for-2.h: Move ...
4229 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
4230 * testsuite/libgomp.c/for-3.c: Move ...
4231 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
4232 * testsuite/libgomp.c/for-4.c: Move ...
4233 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
4234 * testsuite/libgomp.c/for-5.c: Move ...
4235 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
4236 * testsuite/libgomp.c/for-6.c: Move ...
4237 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
4238
1f62d637
TV
42392018-05-02 Tom de Vries <tom@codesourcery.com>
4240
4241 PR libgomp/82428
4242 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
4243 __builtin_goacc_parlevel_{id,size}.
4244 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
4245 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
4246 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
4247 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
4248 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
4249 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
4250 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
4251 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
4252 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
4253 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
4254 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
4255 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
4256 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
4257 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
4258 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
4259 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
4260 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
4261 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
4262 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
4263 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
4264 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
4265 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
4266 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
4267
9220b511
TV
42682018-05-02 Tom de Vries <tom@codesourcery.com>
4269
4270 PR testsuite/85106
4271 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
4272
6c3c13c1
TV
42732018-05-02 Tom de Vries <tom@codesourcery.com>
4274
4275 PR testsuite/85106
4276 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
4277
8d70b61e
JB
42782018-04-29 Julian Brown <julian@codesourcery.com>
4279 Tom de Vries <tom@codesourcery.com>
4280
4281 PR testsuite/85527
4282 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
4283 arbitrary order for iterations of atomic subtract check.
4284
4a57a4b6
TV
42852018-04-28 Tom de Vries <tom@codesourcery.com>
4286
4287 PR testsuite/85527
4288 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
4289 atomic capture results obtained in parallel loop to an array, instead of
4290 to a scalar.
4291
df36a3d3
TV
42922018-04-26 Tom de Vries <tom@codesourcery.com>
4293
4294 PR libgomp/84020
4295 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
4296 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
4297 (process_GOMP_NVPTX_JIT): New function.
4298 (link_ptx): Use process_GOMP_NVPTX_JIT.
4299
d160ae78
RB
43002018-04-26 Richard Biener <rguenther@suse.de>
4301 Tom de Vries <tom@codesourcery.com>
4302
4303 PR lto/85422
4304 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
4305
ca9dc642
TV
43062018-04-26 Tom de Vries <tom@codesourcery.com>
4307
4308 PR target/85519
4309 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4310 recursion depth from 25 to 23.
4311 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4312
7b47ecf2
L
43132018-04-24 H.J. Lu <hongjiu.lu@intel.com>
4314
4315 * configure: Regenerated.
4316
e91eba31
NS
43172018-04-20 Nathan Sidwell <nathan@codesourcery.com>
4318 Tom de Vries <tom@codesourcery.com>
4319
4320 PR target/85445
4321 * testsuite/libgomp.oacc-c++/ref-1.C: New.
4322
6e0d40b6
TS
43232018-04-19 Thomas Schwinge <thomas@codesourcery.com>
4324
4325 PR libgomp/85463
4326 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
4327 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4328 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4329 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4330 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4331 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4332
4333 PR libfortran/85166
4334 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
4335 abort".
4336 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4337
a0e1df88
JJ
43382018-04-19 Jakub Jelinek <jakub@redhat.com>
4339
4340 * configure: Regenerated.
4341
001ddaa8
DM
43422018-04-18 David Malcolm <dmalcolm@redhat.com>
4343
4344 PR jit/85384
4345 * configure: Regenerate.
4346
05e0af43
CP
43472018-04-16 Cesar Philippidis <cesar@codesourcery.com>
4348 Tom de Vries <tom@codesourcery.com>
4349
4350 PR middle-end/84955
4351 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4352 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4353
bc436e10
TK
43542018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
4355
4356 PR fortran/83064
4357 PR testsuite/85346
4358 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
4359 test from gfortran.dg to here.
4360
ffb164c7
JJ
43612018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4362
4363 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
4364 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
4365
43662018-04-12 Cesar Philippidis <cesar@codesourcery.com>
4367
4368 PR middle-end/84955
4369 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4370 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4371
2ba16fd2
TV
43722018-04-05 Tom de Vries <tom@codesourcery.com>
4373
4374 PR target/85204
4375 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
4376
46dbeb40
TV
43772018-03-26 Tom de Vries <tom@codesourcery.com>
4378
4379 PR tree-optimization/85063
4380 * testsuite/libgomp.c/switch-conversion-2.c: New test.
4381 * testsuite/libgomp.c/switch-conversion.c: New test.
4382 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
4383 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
4384
bfc24e32
TK
43852018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
4386
4387 PR fortran/84381
4388 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
4389 call abort by STOP n.
4390 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
4391 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4392 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4393 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4394 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4395 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4396 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4397 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4398 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4399 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4400 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4401 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4402 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4403 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4404 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4405 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4406 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4407 * testsuite/libgomp.fortran/associate1.f90: Likewise.
4408 * testsuite/libgomp.fortran/associate2.f90: Likewise.
4409 * testsuite/libgomp.fortran/associate3.f90: Likewise.
4410 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4411 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4412 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4413 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4414 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4415 * testsuite/libgomp.fortran/character1.f90: Likewise.
4416 * testsuite/libgomp.fortran/character2.f90: Likewise.
4417 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4418 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4419 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4420 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4421 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4422 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4423 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4424 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4425 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4426 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4427 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4428 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4429 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4430 * testsuite/libgomp.fortran/do1.f90: Likewise.
4431 * testsuite/libgomp.fortran/do2.f90: Likewise.
4432 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4433 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4434 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4435 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4436 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4437 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4438 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4439 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4440 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4441 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4442 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4443 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4444 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4445 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4446 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4447 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4448 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4449 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4450 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4451 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4452 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4453 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4454 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4455 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4456 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4457 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4458 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4459 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4460 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4461 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4462 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4463 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4464 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4465 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4466 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4467 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4468 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4469 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4470 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4471 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4472 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4473 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4474 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4475 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4476 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4477 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4478 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4479 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4480 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4481 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4482 * testsuite/libgomp.fortran/lib2.f: Likewise.
4483 * testsuite/libgomp.fortran/lib3.f: Likewise.
4484 * testsuite/libgomp.fortran/lib4.f90: Likewise.
4485 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4486 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4487 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4488 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4489 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4490 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4491 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4492 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4493 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4494 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4495 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4496 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4497 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4498 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4499 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4500 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4501 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4502 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4503 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4504 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4505 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4506 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4507 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4508 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4509 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4510 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4511 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4512 * testsuite/libgomp.fortran/pr25162.f: Likewise.
4513 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4514 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4515 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4516 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4517 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4518 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4519 * testsuite/libgomp.fortran/pr28390.f: Likewise.
4520 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4521 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4522 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4523 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4524 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4525 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4526 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4527 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4528 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4529 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4530 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4531 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4532 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4533 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4534 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4535 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4536 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4537 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4538 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4539 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4540 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4541 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4542 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4543 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4544 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4545 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4546 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4547 * testsuite/libgomp.fortran/reference1.f90: Likewise.
4548 * testsuite/libgomp.fortran/reference2.f90: Likewise.
4549 * testsuite/libgomp.fortran/retval1.f90: Likewise.
4550 * testsuite/libgomp.fortran/retval2.f90: Likewise.
4551 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4552 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4553 * testsuite/libgomp.fortran/simd1.f90: Likewise.
4554 * testsuite/libgomp.fortran/simd2.f90: Likewise.
4555 * testsuite/libgomp.fortran/simd3.f90: Likewise.
4556 * testsuite/libgomp.fortran/simd4.f90: Likewise.
4557 * testsuite/libgomp.fortran/simd5.f90: Likewise.
4558 * testsuite/libgomp.fortran/simd6.f90: Likewise.
4559 * testsuite/libgomp.fortran/simd7.f90: Likewise.
4560 * testsuite/libgomp.fortran/stack.f90: Likewise.
4561 * testsuite/libgomp.fortran/strassen.f90: Likewise.
4562 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4563 * testsuite/libgomp.fortran/tabs2.f: Likewise.
4564 * testsuite/libgomp.fortran/target1.f90: Likewise.
4565 * testsuite/libgomp.fortran/target2.f90: Likewise.
4566 * testsuite/libgomp.fortran/target3.f90: Likewise.
4567 * testsuite/libgomp.fortran/target4.f90: Likewise.
4568 * testsuite/libgomp.fortran/target5.f90: Likewise.
4569 * testsuite/libgomp.fortran/target6.f90: Likewise.
4570 * testsuite/libgomp.fortran/target7.f90: Likewise.
4571 * testsuite/libgomp.fortran/target8.f90: Likewise.
4572 * testsuite/libgomp.fortran/task1.f90: Likewise.
4573 * testsuite/libgomp.fortran/task2.f90: Likewise.
4574 * testsuite/libgomp.fortran/task3.f90: Likewise.
4575 * testsuite/libgomp.fortran/task4.f90: Likewise.
4576 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4577 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4578 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4579 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4580 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4581 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4582 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4583 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4584 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4585 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4586 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4587 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4588 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4589 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4590 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4591 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4592 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4593 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4594 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4595 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4596 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4597 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4598 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4599 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4600 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4601 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4602 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4603 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4604 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4605 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4606 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4607 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4608 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4609 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4610 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4611 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4612 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4613 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4614 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4615 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4616 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4617 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4618 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4619 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4620 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4621 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4622 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4623 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4624 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4625 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4626 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4627 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4628 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4629 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4630 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4631 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4632 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4633 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4634 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4635 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4636 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4637 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4638 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4639 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4640 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4641 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4642 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4643 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4644 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4645 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4646 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4647 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4648 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4649 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4650 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4651 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4652 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4653 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4654 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4655 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4656 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4657 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4658 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4659 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4660 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4661 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4662 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4663 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4664 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4665 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4666 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4667 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4668 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4669 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4670 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4671 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4672 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4673 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4674 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4675 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4676 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4677 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4678 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4679 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4680 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4681 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4682 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4683 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4684 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4685 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4686 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4687 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4688 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4689 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4690 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4691 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4692 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4693 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4694 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4695 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4696 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4697 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4698 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4699 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4700 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4701 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4702
79cf14ae
RB
47032018-03-20 Richard Biener <rguenther@suse.de>
4704
4705 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4706 parallelizable loop.
4707
14e335ed
IT
47082018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4709
4710 PR target/84148
4711 * configure: Regenerate.
4712
83d9be55
JJ
47132018-02-16 Jakub Jelinek <jakub@redhat.com>
4714
4715 PR fortran/84418
4716 * libgomp.fortran/pr84418-1.f90: New test.
4717 * libgomp.fortran/pr84418-2.f90: New test.
4718
d1fe6124
JJ
47192018-02-14 Jakub Jelinek <jakub@redhat.com>
4720
4721 PR fortran/84313
4722 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4723 -std=f2003 -fall-intrinsics into dg-additional-options.
4724
3d224921
MJ
47252018-02-08 Martin Jambor <mjambor@suse.cz>
4726
4727 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4728 clonable.
4729
c7c30edd
MJ
47302018-02-08 Martin Jambor <mjambor@suse.cz>
4731
4732 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4733
f320fdfd
RO
47342018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4735
4736 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4737 [__cplusplus]: Declare extern "C".
4738
c31bc4ac
TV
47392018-02-07 Tom de Vries <tom@codesourcery.com>
4740
4741 PR libgomp/84217
4742 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4743
99ae7ce5
CS
47442018-01-29 Christoph Spiel <cspiel@freenet.de>
4745 Jakub Jelinek <jakub@redhat.com>
4746
4747 PR libgomp/84096
4748 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4749 instead of omp_lock_t.
4750
e77a1236
TV
47512018-01-25 Tom de Vries <tom@codesourcery.com>
4752
4753 PR target/84028
4754 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4755
3dede32b
TV
47562018-01-24 Tom de Vries <tom@codesourcery.com>
4757
4758 PR target/83589
4759 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4760
be606483
TV
47612018-01-24 Tom de Vries <tom@codesourcery.com>
4762
4763 PR target/81352
4764 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4765
8c8e9a6b
TV
47662018-01-19 Tom de Vries <tom@codesourcery.com>
4767 Cesar Philippidis <cesar@codesourcery.com>
4768
4769 PR target/83920
4770 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4771 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4772
65e6aea3
JJ
47732018-01-03 Jakub Jelinek <jakub@redhat.com>
4774
85ec4feb
JJ
4775 Update copyright years.
4776
65e6aea3
JJ
4777 * libgomp.texi: Bump @copying's copyright year.
4778
60bf575c
TV
47792017-12-30 Tom de Vries <tom@codesourcery.com>
4780
4781 PR libgomp/83046
4782 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4783 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4784
7ec16b79
TV
47852017-12-27 Tom de Vries <tom@codesourcery.com>
4786
4787 PR c++/83046
4788 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4789 (test_nonstatic): Fix return type to workaround PR83046.
4790
ac550b9a
JJ
47912017-12-05 Jakub Jelinek <jakub@redhat.com>
4792
4793 PR testsuite/83281
4794 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4795 j suffix instead of i.
4796 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4797 Likewise.
4798
ebdc83f0
CP
47992017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4800
4801 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4802 call to acc_wait (1).
4803
3b3e6283
JJ
48042017-11-24 Jakub Jelinek <jakub@redhat.com>
4805
4806 PR fortran/81304
4807 * testsuite/libgomp.fortran/pr81304.f90: New test.
4808
3b575376
JJ
48092017-11-23 Jakub Jelinek <jakub@redhat.com>
4810
4811 PR fortran/81841
4812 * libgomp.fortran/pr81841.f90: New test.
4813
b13547d8
JJ
48142017-11-22 Jakub Jelinek <jakub@redhat.com>
4815
4816 PR libgomp/83106
4817 * target.c (gomp_target_init): Compute lengths just once and
4818 use them in both malloc size and subsequent copying.
4819
efe33ced
IT
48202017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4821
4822 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4823 * acinclude.m4: Add cet.m4.
4824 * configure: Regenerate.
4825 * Makefile.in: Likewise.
4826 * testsuite/Makefile.in: Likewise.
4827
a7cf2612
TV
48282017-11-15 Tom de Vries <tom@codesourcery.com>
4829
4830 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4831 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4832 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4833 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4834 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4835 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4836
dde76623
TV
48372017-11-14 Tom de Vries <tom@codesourcery.com>
4838
4839 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4840 non-nvidia devices.
4841
4dbeb716
JJ
48422017-11-07 Jakub Jelinek <jakub@redhat.com>
4843
4844 PR c++/82835
4845 * testsuite/libgomp.c++/pr82835.C: New test.
4846
454f8b2b
ML
48472017-11-06 Martin Liska <mliska@suse.cz>
4848
4849 * testsuite/libgomp.c++/loop-2.C: Return a value
4850 for functions with non-void return type, or change type to void,
4851 or add -Wno-return-type for test.
4852 * testsuite/libgomp.c++/loop-4.C: Likewise.
4853 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4854 * testsuite/libgomp.c++/shared-1.C: Likewise.
4855 * testsuite/libgomp.c++/single-1.C: Likewise.
4856 * testsuite/libgomp.c++/single-2.C: Likewise.
4857
12e9c8ce
TV
48582017-10-31 Tom de Vries <tom@codesourcery.com>
4859
4860 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4861 "do {} while (false)".
4862 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4863 after HSA_DEBUG call.
4864
7324369a
JJ
48652017-10-28 Jakub Jelinek <jakub@redhat.com>
4866
4867 * target.c (struct gomp_coalesce_buf): New type.
4868 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4869 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4870 (gomp_copy_host2dev): Add CBUF argument, if copying into
4871 the cached ranges, memcpy into buffer instead of copying
4872 into device.
4873 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4874 Add CBUF argument, pass it through to other calls.
4875 (gomp_map_vars): Aggregate copies from host to device if small enough
4876 and with small enough gaps in between into memcpy into a buffer and
4877 fewer host to device copies from the buffer.
4878 (gomp_update): Adjust gomp_copy_host2dev caller.
4879
933ab0e6
TS
48802017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4881
4882 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4883 run" directive.
4884 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4885 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4886 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4887 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4888
92d5d01a
TV
48892017-10-16 Tom de Vries <tom@codesourcery.com>
4890
4891 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4892 openacc_nvidia_accel_selected.
4893 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4894 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4895 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4896 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4897 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4898 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4899 openacc_nvidia_accel_selected. Skip for shared memory device.
4900 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4901 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4902
191411e4
MJ
49032017-10-09 Martin Jambor <mjambor@suse.cz>
4904
4905 PR hsa/82416
4906 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4907
e923330e
TV
49082017-10-07 Tom de Vries <tom@codesourcery.com>
4909
4910 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4911 Remove acc_device_nvidia references.
4912 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4913 Same.
4914
8fe3ed4c
TV
49152017-10-05 Tom de Vries <tom@codesourcery.com>
4916
4917 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4918 vector_length(32) clause from acc parallel directive.
4919 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4920
26596ee5
TV
49212017-10-04 Tom de Vries <tom@codesourcery.com>
4922
4923 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4924 (main): Reduce sum of arr elements. Assert that hres is exactly
4925 representable in 32-bit floating point.
4926 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4927 (main): Reduce sum of arr elements. Assert that hres and hmres are
4928 exactly representable in 32-bit floating point.
4929 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4930
5c561fa9
TV
49312017-09-28 Tom de Vries <tom@codesourcery.com>
4932
4933 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4934 setting.
4935 * testsuite/libgomp.c++/pr69393.C: Same.
4936 * testsuite/libgomp.c++/taskloop-1.C: Same.
4937 * testsuite/libgomp.c++/taskloop-3.C: Same.
4938 * testsuite/libgomp.c++/taskloop-4.C: Same.
4939 * testsuite/libgomp.c/for-4.c: Same.
4940 * testsuite/libgomp.c/pr66199-3.c: Same.
4941 * testsuite/libgomp.c/pr66199-4.c: Same.
4942 * testsuite/libgomp.c/pr66199-6.c: Same.
4943 * testsuite/libgomp.c/taskloop-1.c: Same.
4944 * testsuite/libgomp.c/taskloop-3.c: Same.
4945 * testsuite/libgomp.c/taskloop-4.c: Same.
4946 * testsuite/libgomp.fortran/aligned1.f03: Same.
4947 * testsuite/libgomp.fortran/condinc1.f: Same.
4948 * testsuite/libgomp.fortran/condinc3.f90: Same.
4949 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4950 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4951 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4952 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4953 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4954 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4955 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4956 * testsuite/libgomp.fortran/recursion1.f90: Same.
4957 * testsuite/libgomp.fortran/target2.f90: Same.
4958 * testsuite/libgomp.fortran/target5.f90: Same.
4959 * testsuite/libgomp.fortran/task3.f90: Same.
4960
7d6206fe
TV
49612017-09-28 Tom de Vries <tom@codesourcery.com>
4962
4963 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4964 vector_length(32) clause from acc parallel directive.
4965 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4966
84c8627c
TV
49672017-09-27 Tom de Vries <tom@codesourcery.com>
4968
4969 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4970 Remove acc_device_nvidia references.
4971
ebc6a85e
TV
49722017-09-16 Tom de Vries <tom@codesourcery.com>
4973
4974 PR c/81875
4975 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4976
82419efb
TV
49772017-09-14 Tom de Vries <tom@codesourcery.com>
4978
4979 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4980 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4981 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4982 * testsuite/libgomp.c/c.exp: Include test-cases from
4983 libgomp.c-c++-common.
4984 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4985 files.
4986
8b586510
JJ
49872017-09-14 Jakub Jelinek <jakub@redhat.com>
4988
4989 PR c++/81314
4990 * testsuite/libgomp.c++/pr81314.C: New test.
4991
9651fbaf
GP
49922017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4993
4994 * libgomp.texi (Top): www.openacc.org now uses https.
4995 (Enabling OpenACC): Ditto.
4996 (acc_get_num_devices): Ditto.
4997 (acc_set_device_type): Ditto.
4998 (acc_get_device_type): Ditto.
4999 (acc_set_device_num): Ditto.
5000 (acc_get_device_num): Ditto.
5001 (acc_async_test): Ditto.
5002 (acc_async_test_all): Ditto.
5003 (acc_wait): Ditto.
5004 (acc_wait_all): Ditto.
5005 (acc_wait_all_async): Ditto.
5006 (acc_wait_async): Ditto.
5007 (acc_init): Ditto.
5008 (acc_shutdown): Ditto.
5009 (acc_on_device): Ditto.
5010 (acc_malloc): Ditto.
5011 (acc_free): Ditto.
5012 (acc_copyin): Ditto.
5013 (acc_present_or_copyin): Ditto.
5014 (acc_create): Ditto.
5015 (acc_present_or_create): Ditto.
5016 (acc_copyout): Ditto.
5017 (acc_delete): Ditto.
5018 (acc_update_device): Ditto.
5019 (acc_update_self): Ditto.
5020 (acc_map_data): Ditto.
5021 (acc_unmap_data): Ditto.
5022 (acc_deviceptr): Ditto.
5023 (acc_hostptr): Ditto.
5024 (acc_is_present): Ditto.
5025 (acc_memcpy_to_device): Ditto.
5026 (acc_memcpy_from_device): Ditto.
5027 (acc_get_current_cuda_device): Ditto.
5028 (acc_get_current_cuda_context): Ditto.
5029 (acc_get_cuda_stream): Ditto.
5030 (acc_set_cuda_stream): Ditto.
5031 (ACC_DEVICE_TYPE): Ditto.
5032 (ACC_DEVICE_NUM): Ditto.
5033 (OpenACC Library Interoperability): Ditto.
5034
50aa16c3
JJ
50352017-08-09 Jakub Jelinek <jakub@redhat.com>
5036
5037 PR c/81687
5038 * testsuite/libgomp.c/pr81687-1.c: New test.
5039 * testsuite/libgomp.c/pr81687-2.c: New test.
5040
56b5041c
JJ
50412017-08-07 Jakub Jelinek <jakub@redhat.com>
5042
5043 PR c/69389
5044 * testsuite/libgomp.c/pr69389.c: New test.
5045 * testsuite/libgomp.c++/pr69389.C: New test.
5046
f4c222c0
TV
50472017-08-07 Tom de Vries <tom@codesourcery.com>
5048
5049 PR middle-end/78266
5050 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
5051 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
5052
a40ff0ae
JJ
50532017-07-27 Jakub Jelinek <jakub@redhat.com>
5054
5055 PR c/45784
5056 * testsuite/libgomp.c/pr45784.c: New test.
5057 * testsuite/libgomp.c++/pr45784.C: New test.
5058
3717fbe3
TV
50592017-07-19 Tom de Vries <tom@codesourcery.com>
5060
5061 * testsuite/libgomp.oacc-c/vec.c: New test.
5062
9607b014
TV
50632017-07-03 Tom de Vries <tom@codesourcery.com>
5064
5065 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
5066
dfb15f6b
TV
50672017-06-27 Tom de Vries <tom@codesourcery.com>
5068
5069 * plugin/plugin-nvptx.c (notify_var): New function.
5070 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
5071
22f1a037
TV
50722017-06-27 Tom de Vries <tom@codesourcery.com>
5073
5074 * env.c (parse_unsigned_long_1): Factor out of ...
5075 (parse_unsigned_long): ... here.
5076 (parse_int_1): Factor out of ...
5077 (parse_int): ... here.
5078 (parse_int_secure): New function.
5079 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
5080 * secure_getenv.h: Factor out of ...
5081 * plugin/plugin-hsa.c: ... here.
5082 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
5083
d54d1fc3
JJ
50842017-06-21 Jakub Jelinek <jakub@redhat.com>
5085
5086 PR c++/81130
5087 * testsuite/libgomp.c++/pr81130.C: New test.
5088
4f4b0ab8
RO
50892017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5090
5091 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
5092 default args.
5093 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
5094 dg-xfail-run-if default args.
5095
40ffd95f
BE
50962017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5097
5098 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
5099 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5100
01275e1e
JJ
51012017-05-30 Jakub Jelinek <jakub@redhat.com>
5102
5103 PR libgomp/80822
5104 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
5105 (gomp_affinity_init_level): Use it. Always analyze the core and thread
5106 sibling lists, depending on level just pick up what CPUs to put
5107 together into a place vs. whether add multiple ordered places.
5108
78672bd8
TS
51092017-05-24 Thomas Schwinge <thomas@codesourcery.com>
5110
7ce64403
TS
5111 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
5112 * libgomp.map (OACC_2.0.1): Add these.
5113 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
5114 for "acc_wait", and "acc_wait_all", respectively.
5115 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
5116 for "acc_wait", and "acc_wait_all", respectively.
5117 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
5118 * libgomp.texi (acc_wait, acc_wait_all): Update.
5119 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
5120 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
5121 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5122
318686c2
TS
5123 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
5124 acc_present_or_copyin and acc_present_or_create procedures,
5125 respectively.
5126 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
5127 generally different variants of OpenACC Runtime Library functions.
5128 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5129
a6745534
TS
5130 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
5131 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5132
9b94fbc7
TS
5133 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
5134 of preprocessor definitions.
5135 * libgomp.h (strong_alias): Guard by "#ifdef
5136 HAVE_ATTRIBUTE_ALIAS".
5137 * oacc-mem.c: Provide "acc_pcreate" as alias for
5138 "acc_present_or_create", and "acc_pcopyin" as alias for
5139 "acc_present_or_copyin".
5140 * libgomp.map: New version "OACC_2.0.1".
5141 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
5142 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
5143 its content into...
5144 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
5145 Extend testing.
5146
78672bd8
TS
5147 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
5148 when disabling nvptx offloading.
5149
0c36d0d5
TS
51502017-05-23 Thomas Schwinge <thomas@codesourcery.com>
5151
fd71a9a2
TS
5152 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
5153 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5154 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5155
0c36d0d5
TS
5156 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
5157 * testsuite/lib/libgomp.exp
5158 (check_effective_target_openacc_nvidia_accel_configured): New
5159 proc.
5160 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
5161 (check_effective_target_c++): New procs.
5162 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
5163 (check_effective_target_c++): Likewise.
5164
c24783c4
JJ
51652017-05-22 Jakub Jelinek <jakub@redhat.com>
5166
655e5265
JJ
5167 PR middle-end/80809
5168 * testsuite/libgomp.c/pr80809-2.c: New test.
5169 * testsuite/libgomp.c/pr80809-3.c: New test.
5170
e9e2ef9f
JJ
5171 PR middle-end/80809
5172 * testsuite/libgomp.c/pr80809-1.c: New test.
5173
c24783c4
JJ
5174 PR middle-end/80853
5175 * testsuite/libgomp.c/pr80853.c: New test.
5176
0da2f96a
TS
51772017-05-19 Thomas Schwinge <thomas@codesourcery.com>
5178
7fd549d2
TS
5179 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
5180 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
5181 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5182 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5183 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5184
0da2f96a
TS
5185 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
5186 Debug output for failure.
5187
62ffe920
RO
51882017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5189
5190 * testsuite/lib/libgomp.exp: Load scanlang.exp.
5191
f49215b1
JJ
51922017-04-27 Jakub Jelinek <jakub@redhat.com>
5193
5194 PR bootstrap/80531
5195 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
5196 bootstrap compare failures.
5197
2260d19d
AM
51982017-04-20 Alexander Monakov <amonakov@ispras.ru>
5199
5200 * testsuite/libgomp.c/target-36.c: New testcase.
5201
19929ba9
JJ
52022017-04-13 Jakub Jelinek <jakub@redhat.com>
5203
5204 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
5205 instead of char.
5206
fbc698e0
JJ
52072017-04-11 Jakub Jelinek <jakub@redhat.com>
5208
5209 PR libgomp/80394
5210 * testsuite/libgomp.c/pr80394.c: New test.
5211
c4060df4
JJ
52122017-04-04 Jakub Jelinek <jakub@redhat.com>
5213
5214 PR libgomp/79876
5215 * config/posix/thread-stacksize.h: New file.
5216 * config/darwin/thread-stacksize.h: New file.
5217 * config/nvptx/thread-stacksize.h: New file.
5218 * env.c: Include thread-stacksize.h.
5219 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
5220 instead of 0. Call pthread_attr_setstacksize even if
5221 GOMP_DEFAULT_STACKSIZE is non-zero.
5222
e02d868a
JJ
52232017-03-30 Jakub Jelinek <jakub@redhat.com>
5224
5225 * env.c (initialize_env): Initialize stacksize to 0.
5226
7ba8651e
CP
52272017-03-22 Cesar Philippidis <cesar@codesourcery.com>
5228
5229 PR c++/80029
5230 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
5231
eebc5e2d
JJ
52322017-03-08 Jakub Jelinek <jakub@redhat.com>
5233
5234 PR c/79940
5235 * testsuite/libgomp.c/pr79940.c: New test.
5236
1eb08f52
RO
52372017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5238
5239 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
5240 targets.
5241 Add __float128 options.
5242
b0f78ff3
JDA
52432017-02-11 John David Anglin <danglin@gcc.gnu.org>
5244
5245 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
5246 hppa*-*-* dg-skip-if directive.
5247
1bbe0d8f
JJ
52482017-02-09 Jakub Jelinek <jakub@redhat.com>
5249
5250 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
5251 dg-skip-if directive into a comment.
5252
02889d23
CLT
52532017-02-09 Nathan Sidwell <nathan@codesourcery.com>
5254 Chung-Lin Tang <cltang@codesourcery.com>
5255
5256 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
5257 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
5258 add additional case.
5259 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
5260 "openacc_nvidia_accel_selected".
5261 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
5262 Add num_workers(8) clause.
5263
5896a41d
JDA
52642017-02-08 John David Anglin <danglin@gcc.gnu.org>
5265
5266 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
5267 hppa*-*-*.
5268 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
5269 include complex.h on hppa*-*-hpux*.
5270 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5271
345a8c17
TS
52722017-02-02 Thomas Schwinge <thomas@codesourcery.com>
5273
e70ab10d
TS
5274 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
5275
345a8c17
TS
5276 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
5277 GOMP_OFFLOAD_openacc_exec. Adjust all users.
5278 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
5279 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
5280 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
5281 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
5282 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
5283 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
5284 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
5285 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
5286
dced339c
TS
52872017-01-31 Thomas Schwinge <thomas@codesourcery.com>
5288
5289 * libgomp-plugin.h: #include <stdbool.h>.
5290 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
5291 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
5292 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
5293 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
5294 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
5295 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
5296 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
5297 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
5298 (GOMP_OFFLOAD_openacc_register_async_cleanup)
5299 (GOMP_OFFLOAD_openacc_async_test)
5300 (GOMP_OFFLOAD_openacc_async_test_all)
5301 (GOMP_OFFLOAD_openacc_async_wait)
5302 (GOMP_OFFLOAD_openacc_async_wait_async)
5303 (GOMP_OFFLOAD_openacc_async_wait_all)
5304 (GOMP_OFFLOAD_openacc_async_wait_all_async)
5305 (GOMP_OFFLOAD_openacc_async_set_async)
5306 (GOMP_OFFLOAD_openacc_create_thread_data)
5307 (GOMP_OFFLOAD_openacc_destroy_thread_data)
5308 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
5309 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
5310 (GOMP_OFFLOAD_openacc_get_cuda_stream)
5311 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
5312 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
5313 these.
5314 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
5315 (GOMP_OFFLOAD_unload_image): Fix argument types.
5316
23749904
JJ
53172017-01-26 Jakub Jelinek <jakub@redhat.com>
5318
c1cadde1
JJ
5319 * testsuite/lib/libgomp.exp
5320 (check_effective_target_hsa_offloading_selected_nocache): Fix up
5321 check_compile invocation. Fix up removal of executable. Drop
5322 bogus "2>&1" argument.
5323
23749904
JJ
5324 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
5325 directive.
5326
53272017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5fd1486c
PJ
5328 Martin Jambor <mjambor@suse.cz>
5329
5330 * plugin/hsa.h: Moved to top level include.
5331 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
5332
73aa401e
JJ
53332017-01-21 Jakub Jelinek <jakub@redhat.com>
5334
5335 PR other/79046
5336 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
5337 of cat to get version from BASE-VER file.
5338 * testsuite/Makefile.in: Regenerated.
5339
b32e85fa
JJ
53402017-01-19 Jakub Jelinek <jakub@redhat.com>
5341
5342 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
5343 for _WIN64.
5344
3c36aa6b
JJ
53452017-01-17 Jakub Jelinek <jakub@redhat.com>
5346
d190d5c0
JJ
5347 * plugin/hsa.h: Add GCC runtime library exception.
5348 * plugin/hsa_ext_finalize.h: Likewise.
5349
2393d337
JJ
5350 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
5351 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
5352 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
5353 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
5354 plugin/include/cuda as include dir and -ldl instead of -lcuda as
5355 library to link ptx plugin against.
5356 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
5357 (CUDA_CALLS): Define.
5358 (cuda_lib, cuda_lib_inited): New variables.
5359 (init_cuda_lib): New function.
5360 (CUDA_CALL_PREFIX): Define.
5361 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
5362 (CUDA_CALL): Use FN instead of (FN).
5363 (CUDA_CALL_NOCHECK): Define.
5364 (cuda_error, fini_streams_for_device, select_stream_for_async,
5365 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
5366 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
5367 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
5368 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
5369 CUDA_CALL_NOCHECK.
5370 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
5371 CUDA_CALL_NOCHECK.
5372 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
5373 Use CUDA_CALL_NOCHECK.
5374 * plugin/cuda/cuda.h: New file.
5375 * config.h.in: Regenerated.
5376 * configure: Regenerated.
5377
3c36aa6b
JJ
5378 PR other/79046
5379 * configure.ac: Add GCC_BASE_VER.
5380 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
5381 get version from BASE-VER file.
5382 * testsuite/Makefile.in: Regenerated.
5383 * configure: Regenerated.
5384 * Makefile.in: Regenerated.
5385
c508bc2d
FXC
53862017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5387
5388 PR libgomp/60670
5389 * Makefile.am: Make fincludedir multilib-aware.
5390 * Makefile.in: Regenerate.
5391
c1a9c369
JJ
53922017-01-01 Jakub Jelinek <jakub@redhat.com>
5393
cbe34bb5
JJ
5394 Update copyright years.
5395
c1a9c369
JJ
5396 * libgomp.texi: Bump @copying's copyright year.
5397
e7a7f4be
SH
53982016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5399
5400 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5401 pthread_spinlock_t instead of gomp_mutex_t lock.
5402 (gomp_get_thread_pool): Likewise.
5403 (gomp_release_thread_pool): Likewise.
5404 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5405 Likewise.
5406
d313d52c
SH
54072016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5408
5409 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5410 thread pool in case nthreads == 1.
5411
630e3c3a
AM
54122016-11-30 Alexander Monakov <amonakov@ispras.ru>
5413
5414 * config/nvptx/env.c: Delete.
5415 * icv.c: Move definitions of ICV variables back ...
5416 * env.c: ...here. Do not compile environment-related functionality if
5417 LIBGOMP_OFFLOADED_ONLY is set.
5418
9e38af5c
AM
54192016-11-30 Alexander Monakov <amonakov@ispras.ru>
5420
5421 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5422 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5423 * configure: Regenerate.
5424 * config.h.in: Likewise.
5425
f96b7f1f
AM
54262016-11-30 Alexander Monakov <amonakov@ispras.ru>
5427
5428 * Makefile.in: Regenerate with automake-1.11.6.
5429 * aclocal.m4: Likewise.
5430 * configure: Likewise.
5431 * testsuite/Makefile.in: Likewise.
5432
6a6951b1
AM
54332016-11-28 Alexander Monakov <amonakov@ispras.ru>
5434
5435 * config/nvptx/critical.c: Delete to use generic implementation.
5436
c7ac071f
JH
54372016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5438
5439 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5440 ../../affinity.c as fallback.
5441 * config/nvptx/affinity.c: Delete to use fallback implementation.
5442
6103184e 54432016-11-23 Alexander Monakov <amonakov@ispras.ru>
92a285c1 5444 Jakub Jelinek <jakub@redhat.com>
6103184e
AM
5445 Dmitry Melnik <dm@ispras.ru>
5446
5447 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5448 * Makefile.in. Regenerate.
5449 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5450 (LIBGOMP_USE_PTHREADS): ...here; new define.
5451 * configure: Regenerate.
5452 * config.h.in: Likewise.
5453 * config/posix/affinity.c: Move to...
5454 * affinity.c: ...here (new file). Guard use of Pthreads-specific
5455 interface by LIBGOMP_USE_PTHREADS.
5456 * critical.c: Split out GOMP_atomic_{start,end} into...
5457 * atomic.c: ...here (new file).
5458 * env.c: Split out ICV definitions into...
5459 * icv.c: ...here (new file) and...
5460 * icv-device.c: ...here. New file.
5461 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5462 (gomp_destroy_lock_30): Ditto.
5463 (gomp_set_lock_30): Ditto.
5464 (gomp_unset_lock_30): Ditto.
5465 (gomp_test_lock_30): Ditto.
5466 (gomp_init_nest_lock_30): Ditto.
5467 (gomp_destroy_nest_lock_30): Ditto.
5468 (gomp_set_nest_lock_30): Ditto.
5469 (gomp_unset_nest_lock_30): Ditto.
5470 (gomp_test_nest_lock_30): Ditto.
5471 * lock.c: New.
5472 * config/nvptx/lock.c: New.
5473 * config/nvptx/bar.c: New.
5474 * config/nvptx/bar.h: New.
5475 * config/nvptx/doacross.h: New.
5476 * config/nvptx/error.c: New.
5477 * config/nvptx/icv-device.c: New.
5478 * config/nvptx/mutex.h: New.
5479 * config/nvptx/pool.h: New.
5480 * config/nvptx/proc.c: New.
5481 * config/nvptx/ptrlock.h: New.
5482 * config/nvptx/sem.h: New.
5483 * config/nvptx/simple-bar.h: New.
5484 * config/nvptx/target.c: New.
5485 * config/nvptx/task.c: New.
5486 * config/nvptx/team.c: New.
5487 * config/nvptx/time.c: New.
5488 * config/posix/simple-bar.h: New.
5489 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
5490 (gomp_num_teams_var): Declare.
5491 (struct gomp_thread_pool): Change threads_dock member to
5492 gomp_simple_barrier_t.
5493 [__nvptx__] (gomp_thread): New implementation.
5494 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5495 (gomp_thread_destructor): Ditto.
5496 (gomp_init_thread_affinity): Ditto.
5497 * team.c: Guard uses of Pthreads-specific interfaces by
5498 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
5499 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5500 * config/nvptx/alloc.c: Delete.
5501 * config/nvptx/barrier.c: Ditto.
5502 * config/nvptx/fortran.c: Ditto.
5503 * config/nvptx/iter.c: Ditto.
5504 * config/nvptx/iter_ull.c: Ditto.
5505 * config/nvptx/loop.c: Ditto.
5506 * config/nvptx/loop_ull.c: Ditto.
5507 * config/nvptx/ordered.c: Ditto.
5508 * config/nvptx/parallel.c: Ditto.
5509 * config/nvptx/priority_queue.c: Ditto.
5510 * config/nvptx/sections.c: Ditto.
5511 * config/nvptx/single.c: Ditto.
5512 * config/nvptx/splay-tree.c: Ditto.
5513 * config/nvptx/work.c: Ditto.
5514 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5515 -foffload=-lgfortran in addition to -lgfortran.
5516 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5517 * plugin/plugin-nvptx.c: Include <limits.h>.
5518 (struct targ_fn_descriptor): Add new fields.
5519 (struct ptx_device): Ditto. Set them...
5520 (nvptx_open_device): ...here.
5521 (nvptx_adjust_launch_bounds): New.
5522 (nvptx_host2dev): Allow NULL 'nvthd'.
5523 (nvptx_dev2host): Ditto.
5524 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5525 (link_ptx): Adjust log sizes.
5526 (nvptx_host2dev): Allow NULL 'nvthd'.
5527 (nvptx_dev2host): Ditto.
5528 (nvptx_set_clocktick): New. Use it...
5529 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
5530 fields.
5531 (GOMP_OFFLOAD_dev2dev): New.
5532 (nvptx_adjust_launch_bounds): New.
5533 (nvptx_stacks_size): New.
5534 (nvptx_stacks_alloc): New.
5535 (nvptx_stacks_free): New.
5536 (GOMP_OFFLOAD_run): New.
5537 (GOMP_OFFLOAD_async_run): New (stub).
5538
56b1c60e
MJ
55392016-11-23 Martin Jambor <mjambor@suse.cz>
5540
5541 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5542 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5543 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5544
b8d89b03 55452016-11-23 Martin Liska <mliska@suse.cz>
92a285c1 5546 Martin Jambor <mjambor@suse.cz>
b8d89b03
ML
5547
5548 * plugin/hsa.h: New file.
5549 * plugin/hsa_ext_finalize.h: New file.
5550 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
5551 header file unistd.h, and functions secure_getenv, __secure_getenv,
5552 getuid, geteuid, getgid and getegid.
5553 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5554 -D_GNU_SOURCE.
5555 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5556 Handle various cases of secure_getenv presence, add an implementation
5557 when we can test effective UID and GID.
5558 (struct hsa_runtime_fn_info): New structure.
5559 (hsa_runtime_fn_info hsa_fns): New variable.
5560 (hsa_runtime_lib): Likewise.
5561 (support_cpu_devices): Likewise.
5562 (init_enviroment_variables): Load newly introduced ENV
5563 variables.
5564 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5565 (hsa_fatal): Likewise.
5566 (DLSYM_FN): New macro.
5567 (init_hsa_runtime_functions): New function.
5568 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5569 structure. Depending on environment, also allow CPU devices.
5570 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5571 (get_kernarg_memory_region): Likewise.
5572 (GOMP_OFFLOAD_init_device): Likewise.
5573 (destroy_hsa_program): Likewise.
5574 (init_basic_kernel_info): New function.
5575 (GOMP_OFFLOAD_load_image): Use it.
5576 (create_and_finalize_hsa_program): Call hsa run-time functions via
5577 hsa_fns structure.
5578 (create_single_kernel_dispatch): Likewise.
5579 (release_kernel_dispatch): Likewise.
5580 (init_single_kernel): Likewise.
5581 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5582 (get_group_size): New function.
5583 (run_kernel): Likewise.
5584 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5585 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5586 structure.
5587 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5588 * testsuite/libgomp-test-support.exp.in: Likewise.
5589 * Makefile.in: Regenerated.
5590 * aclocal.m4: Likewise.
5591 * config.h.in: Likewise.
5592 * configure: Likewise.
5593 * testsuite/Makefile.in: Likewise.
5594
18d2ada8 55952016-11-15 Martin Jambor <mjambor@suse.cz>
92a285c1 5596 Alexander Monakov <amonakov@ispras.ru>
18d2ada8
MJ
5597
5598 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5599 mapping clauses to target constructs.
5600 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5601
84c1b9d3
MK
56022016-11-15 Matthias Klose <doko@ubuntu.com>
5603
5604 * configure: Regenerate.
5605
b4c3a85b
JJ
56062016-11-10 Jakub Jelinek <jakub@redhat.com>
5607
8ebd1b31
JJ
5608 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5609 * omp_lib.h.in (openmp_version): Likewise.
5610 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5611 of 201307.
5612 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5613
b4c3a85b
JJ
5614 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5615 (fib_wrapper): Add map(from: x) clause.
5616 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5617 (e_53_2): Likewise.
5618 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5619 (accum): Add map(tmp) clause.
5620 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5621 (accum): Add map(tofrom: tmp) clause.
5622 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5623 (gramSchmidt): Likewise.
5624 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5625 map(tofrom: sum) clause.
5626 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5627 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5628 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5629 only allowed on the loop iterator.
5630 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5631 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5632 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5633 * testsuite/libgomp.fortran/doacross1.f90: New test.
5634 * testsuite/libgomp.fortran/doacross3.f90: New test.
5635 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5636 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5637 * testsuite/libgomp.fortran/doacross2.f90: New test.
5638 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5639 #pragma omp atomic read.
5640 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5641 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5642
6668eb45
CP
56432016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5644 Nathan Sidwell <nathan@acm.org>
5645
5646 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5647 to determine default geometry.
5648 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5649 dimension.
5650
f10e37a1
JJ
56512016-11-01 Jakub Jelinek <jakub@redhat.com>
5652
5653 * hashtab.h: Use standard GPLv3 with runtime exception
5654 boilerplate.
5655
015c7760
AH
56562016-10-27 Aldy Hernandez <aldyh@redhat.com>
5657
5658 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5659 size when allocating new thread.
5660
20a1e5b8
MP
56612016-09-14 Marek Polacek <polacek@redhat.com>
5662
5663 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5664
1cad9284
JJ
56652016-08-19 Jakub Jelinek <jakub@redhat.com>
5666
5667 PR fortran/71014
5668 * testsuite/libgomp.fortran/pr71014.f90: New test.
5669
2c71d454
CLT
56702016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5671
5672 PR middle-end/70895
5673 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5674 firstprivate clauses.
5675 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5676 copy clauses.
5677 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5678 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5679 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5680 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5681 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5682 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5683 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5684 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5685 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5686 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5687 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5688 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5689
7c713714
CLT
56902016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5691
5692 PR fortran/70598
5693 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5694
5c934396
JJ
56952016-08-08 Jakub Jelinek <jakub@redhat.com>
5696
5697 PR c++/58706
5698 * testsuite/libgomp.c++/pr58706.C: New test.
5699
9ef64248
TS
57002016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5701
bbc79c0e
TS
5702 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5703 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5704 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5705 Likewise.
5706 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5707 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5708 Likewise.
5709 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5710
9ef64248
TS
5711 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5712 test, and don't hardcode -O0.
5713
c1311c86
NS
57142016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5715
5716 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5717
b1c9c068
CP
57182016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5719
5720 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5721 test.
5722
b4410f63
L
57232016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5724
5725 PR middle-end/71734
5726 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5727 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5728
a8dbab92
JJ
57292016-07-01 Jakub Jelinek <jakub@redhat.com>
5730
5731 PR fortran/71717
5732 * testsuite/libgomp.fortran/associate3.f90: New test.
5733
9b6a8d0f
JJ
57342016-06-17 Jakub Jelinek <jakub@redhat.com>
5735
5736 * testsuite/libgomp.c++/target-21.C: New test.
5737
283635f9
JJ
57382016-06-16 Jakub Jelinek <jakub@redhat.com>
5739
5740 * testsuite/libgomp.c++/target-20.C: New test.
5741
27d6ba88
TS
57422016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5743 Cesar Philippidis <cesar@codesourcery.com>
5744
5745 PR middle-end/71373
5746 * libgomp.oacc-c/nested-function-1.c: New file.
5747 * libgomp.oacc-c/nested-function-2.c: Likewise.
5748 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5749 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5750 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5751
4b1ffdb1
TS
57522016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5753
5754 PR c/71381
5755 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5756 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5757 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5758
d821b794
CLT
57592016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5760
5761 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5762 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5763
3616a8c5
CP
57642016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5765
5766 PR c/70688
5eed9a88 5767 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3616a8c5 5768
7211a097
JJ
57692016-05-26 Jakub Jelinek <jakub@redhat.com>
5770
5771 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5772 instead of invalid schedule(static, 0).
5773 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5774
b4557008
CLT
57752016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5776
5777 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5778 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5779 parameter, use to set async stream around call to gomp_unmap_vars,
5780 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5781 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5782 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5783 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5784 (event_add): Add int parameter, initialize 'val' field when
5785 adding new ptx_event struct.
5786 (nvptx_evec): Adjust event_add() call arguments.
5787 (nvptx_host2dev): Likewise.
5788 (nvptx_dev2host): Likewise.
5789 (nvptx_wait_async): Likewise.
5790 (nvptx_wait_all_async): Likewise.
5791 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5792 pass to event_add() call.
5793 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5794 parameter.
5795 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5796 call openacc.register_async_cleanup_func() hook.
5797 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5798 * target.c (gomp_copy_from_async): Delete function.
5799 (gomp_map_vars): Remove async_refcount.
5800 (gomp_unmap_vars): Likewise.
5801 (gomp_load_image_to_device): Likewise.
5802 (omp_target_associate_ptr): Likewise.
5803 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5804 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5805 (gomp_copy_from_async): Remove.
5806
6ce13072
CLT
58072016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5808
5809 * target.c (gomp_device_copy): New function.
5810 (gomp_copy_host2dev): Likewise.
5811 (gomp_copy_dev2host): Likewise.
5812 (gomp_free_device_memory): Likewise.
5813 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5814 (gomp_map_pointer): Likewise.
5815 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5816 NULL value from alloc_func plugin hook.
5817 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5818 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5819 (gomp_unmap_vars): Likewise.
5820 (gomp_update): Adjust to call gomp_copy_dev2host and
5821 gomp_copy_host2dev functions.
5822 (gomp_unload_image_from_device): Handle false value from
5823 unload_image_func plugin hook.
5824 (gomp_init_device): Handle false value from init_device_func
5825 plugin hook.
5826 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5827 (omp_target_free): Adjust to call gomp_free_device_memory.
5828 (omp_target_memcpy): Handle return values from host2dev_func,
5829 dev2host_func, and dev2dev_func plugin hooks.
5830 (omp_target_memcpy_rect_worker): Likewise.
5831 (gomp_target_fini): Handle false value from fini_device_func
5832 plugin hook.
5833 * libgomp.h (struct gomp_device_descr): Adjust return type of
5834 init_device_func, fini_device_func, unload_image_func, free_func,
5835 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5836 * oacc-init.c (acc_shutdown_1): Handle false value from
5837 fini_device_func plugin hook.
5838 * oacc-host.c (host_init_device): Change return type to bool.
5839 (host_fini_device): Likewise.
5840 (host_unload_image): Likewise.
5841 (host_free): Likewise.
5842 (host_dev2host): Likewise.
5843 (host_host2dev): Likewise.
5844 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5845 (acc_memcpy_to_device): Likewise.
5846 (acc_memcpy_from_device): Likewise.
5847 (delete_copyout): Add libfnname parameter, handle free_func
5848 hook fatal error case.
5849 (acc_delete): Adjust delete_copyout call.
5850 (acc_copyout): Likewise.
5851 (update_dev_host): Move gomp_mutex_unlock to after
5852 host2dev/dev2host hook calls.
5853
5854 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5855 to 'hsa_error_msg', for clarity.
5856 (hsa_fatal): Likewise.
5857 (hsa_error): New function.
5858 (init_hsa_context): Change return type to bool, adjust to return
5859 false on error.
5860 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5861 return value.
5862 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5863 return false on error.
5864 (get_agent_info): Adjust to return NULL on error.
5865 (destroy_hsa_program): Change return type to bool, adjust to
5866 return false on error.
5867 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5868 (destroy_module): Change return type to bool, adjust to
5869 return false on error.
5870 (GOMP_OFFLOAD_unload_image): Likewise.
5871 (GOMP_OFFLOAD_fini_device): Likewise.
5872 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5873 (GOMP_OFFLOAD_free): Change to return false when called.
5874 (GOMP_OFFLOAD_dev2host): Likewise.
5875 (GOMP_OFFLOAD_host2dev): Likewise.
5876 (GOMP_OFFLOAD_dev2dev): Likewise.
5877
5878 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5879 (CUDA_CALL): Likewise.
5880 (CUDA_CALL_ASSERT): Likewise.
5881 (map_init): Change return type to bool, use CUDA_CALL* macros.
5882 (map_fini): Likewise.
5883 (init_streams_for_device): Change return type to bool, adjust
5884 call to map_init.
5885 (fini_streams_for_device): Change return type to bool, adjust
5886 call to map_fini.
5887 (select_stream_for_async): Release stream_lock before calls to
5888 GOMP_PLUGIN_fatal, adjust call to map_init.
5889 (nvptx_init): Use CUDA_CALL* macros.
5890 (nvptx_attach_host_thread_to_device): Change return type to bool,
5891 use CUDA_CALL* macros.
5892 (nvptx_open_device): Use CUDA_CALL* macros.
5893 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5894 macros.
5895 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5896 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5897 (nvptx_exec): Use CUDA_CALL* macros.
5898 (nvptx_alloc): Use CUDA_CALL* macros.
5899 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5900 (nvptx_host2dev): Likewise.
5901 (nvptx_dev2host): Likewise.
5902 (nvptx_wait): Use CUDA_CALL* macros.
5903 (nvptx_wait_async): Likewise.
5904 (nvptx_wait_all): Likewise.
5905 (nvptx_wait_all_async): Likewise.
5906 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5907 use CUDA_CALL* macros, adjust call to map_fini.
5908 (GOMP_OFFLOAD_init_device): Change return type to bool,
5909 adjust code accordingly.
5910 (GOMP_OFFLOAD_fini_device): Likewise.
5911 (GOMP_OFFLOAD_load_image): Adjust calls to
5912 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5913 use CUDA_CALL* macros.
5914 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5915 return code.
5916 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5917 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5918 handle error return.
5919 (GOMP_OFFLOAD_dev2host): Likewise.
5920 (GOMP_OFFLOAD_host2dev): Likewise.
5921 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5922 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5923
e46c7770
CP
59242016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5925
5926 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5927 (acc_free): Likewise.
5928 (acc_memcpy_to_device): Likewise.
5929 (acc_memcpy_from_device): Likewise.
5930 (acc_deviceptr): Likewise.
5931 (acc_hostptr): Likewise.
5932 (acc_is_present): Likewise.
5933 (acc_map_data): Likewise.
5934 (acc_unmap_data): Likewise.
5935 (present_create_copy): Likewise.
5936 (delete_copyout): Likewise.
5937 (update_dev_host): Likewise.
5938 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5939 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5940 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5941 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5942 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5943 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5944 it only runs on nvptx targets.
5945 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5946 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5947 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5948 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5949 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5950 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5951 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5952 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5953 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5954 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5955 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5956 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5957 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5958 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5959 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5960 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5961 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5962 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5963 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5964 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5965 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5966 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5967 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5968
a5057543
MJ
59692016-05-23 Martin Jambor <mjambor@suse.cz>
5970
5971 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5972
e37288a6
CLT
59732016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5974
5975 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5976 to gomp_init_targets_once.
5977 (acc_set_device_type): Remove !cached_base_dev condition on call to
5978 gomp_init_targets_once, move call to before acc_device_lock acquire,
5979 to avoid deadlock.
5980 (acc_get_device_num): Remove !cached_base_dev condition on call to
5981 gomp_init_targets_once.
5982 (acc_set_device_num): Likewise.
5983
51d9ed48
MJ
59842016-05-16 Martin Jambor <mjambor@suse.cz>
5985
92a285c1 5986 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
51d9ed48 5987
5b37e866
NS
59882016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5989
5990 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5991 expected partitioning.
5992
e7ff0319
CP
59932016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5994
5995 PR middle-end/70626
5996 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5997 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5998 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5999
c2bd3b69
AM
60002016-04-21 Alexander Monakov <amonakov@ispras.ru>
6001
6002 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
6003 non-fatal.
6004
84311083
JJ
60052016-04-19 Jakub Jelinek <jakub@redhat.com>
6006
6007 PR middle-end/70680
6008 * testsuite/libgomp.c/pr70680-1.c: New test.
6009 * testsuite/libgomp.c/pr70680-2.c: New test.
6010
aadc043f
CP
60112016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6012
6013 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
6014 pass parameter variables to subroutines.
6015
e387fc64
CP
60162016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6017
6018 PR middle-end/70643
6019 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
6020
10c3c424
CP
60212016-04-13 Cesar Philippidis <cesar@codesourcery.com>
6022
6023 PR testsuite/68242
6024 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
6025 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6026
27f9add3
TS
60272016-04-12 Thomas Schwinge <thomas@codesourcery.com>
6028
58d32aeb
TS
6029 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
6030 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
6031 GOACC_declare prototype.
6032
d97633ef
TS
6033 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
6034 Merge this file, and...
6035 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
6036 ... this file, and...
6037 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
6038 ... this file, and...
6039 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
6040 ... this file, and...
6041 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
6042 ... this file, and...
6043 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
6044 ... this file, and...
6045 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
6046 ... this file, and...
6047 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
6048 ... this file, and...
6049 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
6050 ... this file, and...
6051 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
6052 ... this file, and...
6053 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
6054 ... this file, and...
6055 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
6056 ... this file, and...
6057 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
6058 ... this file into...
6059 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
6060 file.
6061
27f9add3
TS
6062 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6063 Make failure observable.
6064
21f3a236
JJ
60652016-04-12 Jakub Jelinek <jakub@redhat.com>
6066
6067 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
6068 field.
6069 * target.c (gomp_target_fallback_firstprivate,
6070 gomp_target_unshare_firstprivate): Removed.
6071 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
6072 before waiting for dependencies.
6073 (gomp_target_task_fn): Don't copy firstprivate vars here.
6074 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
6075 firstprivate_copies here.
6076 (gomp_create_target_task): Don't initialize firstprivate_copies field.
6077 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
6078 explicit/implicit firstprivate.
6079
c42cfb5c
CP
60802016-04-08 Cesar Philippidis <cesar@codesourcery.com>
6081
6082 PR lto/70289
6083 PR ipa/70348
6084 PR tree-optimization/70373
6085 PR middle-end/70533
6086 PR middle-end/70534
6087 PR middle-end/70535
6088 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
6089 test.
6090 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
6091 test.
6092 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
6093 test.
6094 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
6095 test.
6096 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
6097 test.
6098 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
6099 test.
6100 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
6101 test.
6102 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
6103 test.
6104 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
6105 test.
6106 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
6107 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
6108 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
6109 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
6110 test.
6111 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
6112 test.
6113 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
6114 test.
6115 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
6116 test.
6117 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
6118 coverage.
6119 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6120 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6121 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
6122 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
6123 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
6124 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
6125 coverage.
6126 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6127 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6128 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6129 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6130 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
6131 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
6132 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
6133 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
6134 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
6135 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6136 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6137 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6138 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6139 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6140 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
6141
2620c80d
TS
61422016-03-30 Thomas Schwinge <thomas@codesourcery.com>
6143 James Norris <jnorris@codesourcery.com>
6144 Nathan Sidwell <nathan@codesourcery.com>
6145 Julian Brown <julian@codesourcery.com>
6146 Cesar Philippidis <cesar@codesourcery.com>
6147 Chung-Lin Tang <cltang@codesourcery.com>
6148 Tom de Vries <tom@codesourcery.com>
6149
6150 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
6151 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6152 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6153 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
6154 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6155 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6156 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6157 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6158 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6159 XFAIL.
6160 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6161 Incorporate...
6162 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
6163 file.
6164 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
6165 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
6166 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
6167 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
6168 Likewise.
6169 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6170 Likewise.
6171 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6172 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
6173 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6174 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6175 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
6176 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
6177 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
6178 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
6179 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6180 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
6181 Likewise.
6182 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
6183 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6184 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
6185 file...
6186 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
6187 file into...
6188 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
6189 file. Update.
6190 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
6191 file.
6192 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
6193 Likewise.
6194 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
6195 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
6196 ... this new file. Update.
6197 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
6198 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
6199 ... this new file. Update.
6200 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
6201 file. Incorporate...
6202 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
6203 file, and...
6204 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
6205 file, and...
6206 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
6207 file.
6208 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
6209
ce83104b
TS
62102016-03-29 Thomas Schwinge <thomas@codesourcery.com>
6211
6212 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
6213 set-torture-options.
6214
6e0df3b7
TS
62152016-03-24 Thomas Schwinge <thomas@codesourcery.com>
6216
6217 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
6218 gcc-dg-runtest.
6219 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6220 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
6221 -fno-builtin-acc_on_device instead of -O0.
6222 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
6223 -O0.
6224 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6225 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
6226 Likewise.
6227 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6228 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6229 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6230 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6231 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6232 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6233 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6234 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6235 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6236 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6237 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6238 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6239 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6240 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6241 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6242 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6243 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6244 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
6245 Don't specify -O2.
6246 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
6247 Likewise.
6248 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
6249 Likewise.
6250
f9c8babb
ML
62512016-03-24 Martin Liska <mliska@suse.cz>
6252
6253 * plugin/plugin-hsa.c (packet_store_release): New function
6254 that is taken from the HSA runtime manual.
6255 (GOMP_OFFLOAD_run): Use the function.
6256
04833609
JJ
62572016-03-23 Jakub Jelinek <jakub@redhat.com>
6258
6259 PR c++/70376
6260 * testsuite/libgomp.c++/pr70376.C: New test.
6261
d79ee524
TV
62622016-03-23 Tom de Vries <tom@codesourcery.com>
6263
6264 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
6265 initialization of lresult and lvresult.
6266 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
6267
b6d1f2b5
JN
62682016-03-23 James Norris <jnorris@codesourcery.com>
6269 Daichi Fukuoka <dc-fukuoka@sgi.com>
6270
6271 PR libgomp/69414
6272 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
6273 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
6274 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6275 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
6276
7397fce2
ML
62772016-03-23 Martin Liska <mliska@suse.cz>
6278
6279 PR hsa/70337
6280 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
6281 argument just in case a dispatched kernel uses that argument.
6282
ee2e7d51
TS
62832016-03-16 Thomas Schwinge <thomas@codesourcery.com>
6284
6285 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
6286 -ftree-parallelize-loops/-fopenacc changes.
6287 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
6288 Likewise.
6289 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6290 Likewise.
6291 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
6292 Likewise.
6293 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
6294 Likewise.
6295 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
6296 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
6297
be9f7143
TS
62982016-03-13 Thomas Schwinge <thomas@codesourcery.com>
6299
6300 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
6301 always_ld_library_path the path to libgcc_s.
6302
f6c1032d
CP
63032016-03-10 Cesar Philippidis <cesar@codesourcery.com>
6304
6305 PR testsuite/70009
6306 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
6307
5a6452e6
TV
63082016-03-09 Tom de Vries <tom@codesourcery.com>
6309
6310 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
6311 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
6312 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
6313 Same.
6314 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
6315 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
6316 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
6317 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
6318
96a71bd5
MJ
63192016-03-07 Martin Jambor <mjambor@suse.cz>
6320
6321 * testsuite/lib/libgomp.exp
6322 (check_effective_target_hsa_offloading_selected_nocache): New.
6323 (check_effective_target_hsa_offloading_selected): Likewise.
6324 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6325 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
6326 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6327 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6328 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6329 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6330 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6331 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6332 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6333 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6334 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6335 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6336 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6337 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6338 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6339 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6340 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6341
02e0b5b2
MJ
63422016-03-07 Martin Jambor <mjambor@suse.cz>
6343
6344 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
6345 non-shared memory accelerators.
6346 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
6347 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
6348 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
6349 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
6350 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6351 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6352 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6353 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6354 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6355
45548f30
MJ
63562016-03-07 Martin Jambor <mjambor@suse.cz>
6357
6358 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
6359 ALWAYS_CFLAGS.
6360
da3d46cb
JJ
63612016-03-02 Jakub Jelinek <jakub@redhat.com>
6362
6363 PR libgomp/69555
6364 * testsuite/libgomp.c++/pr69555-1.C: New test.
6365 * testsuite/libgomp.c++/pr69555-2.C: New test.
6366
622174b2
KM
63672016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
6368 Martin Jambor <mjambor@suse.cz>
6369
6370 * testsuite/lib/libgomp.exp
6371 (check_effective_target_offload_device_shared_as): New proc.
6372 * testsuite/libgomp.c++/declare_target-1.C: New test.
6373
e6861a99
IV
63742016-02-25 Ilya Verbin <ilya.verbin@intel.com>
6375
6376 PR driver/68463
6377 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
6378
f99c3557
TS
63792016-02-23 Thomas Schwinge <thomas@codesourcery.com>
6380
6381 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
6382 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
6383 dims.
6384 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
6385 -ftree-parallelize-loops/-fopenacc changes.
6386 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
6387 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
6388 Likewise.
6389 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
6390 Likewise.
6391 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6392 Likewise.
6393 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6394 Likewise.
6395 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6396 Likewise.
6397 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6398 Likewise.
6399 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6400 Likewise.
6401 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6402 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6403 Likewise.
6404 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6405 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6406 Likewise.
6407 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6408 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6409 Likewise.
6410
d5ace3b5
CP
64112016-02-22 Cesar Philippidis <cesar@codesourcery.com>
6412
6413 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6414
f3609a89
JJ
64152016-02-19 Jakub Jelinek <jakub@redhat.com>
6416
6417 PR driver/69805
6418 * testsuite/libgomp.c/pr69805.c: New test.
6419
2175df99
TV
64202016-02-16 Tom de Vries <tom@codesourcery.com>
6421
6422 PR lto/67709
6423 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6424
17b6426c
TV
64252016-02-09 Tom de Vries <tom@codesourcery.com>
6426
6427 PR tree-optimization/69599
6428 * testsuite/libgomp.c/omp-nested-3.c: New test.
6429 * testsuite/libgomp.c/pr46032-2.c: New test.
6430 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6431 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6432
34df756c
TV
64332016-02-09 Tom de Vries <tom@codesourcery.com>
6434
6435 PR lto/69707
6436 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6437
5854ee30
AM
64382016-02-02 Alexander Monakov <amonakov@ispras.ru>
6439
6440 * testsuite/libgomp.c/target-31.c: Fix testcase.
6441
e70b6ad7
AM
64422016-02-02 Alexander Monakov <amonakov@ispras.ru>
6443
6444 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6445 clause.
6446 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6447 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6448 reduction and map clauses.
6449 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6450
bd78a45f
JN
64512016-02-02 James Norris <jnorris@codesourcery.com>
6452
6453 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6454
41d809d3
TS
64552016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6456
18f60146
TS
6457 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6458 * oacc-parallel.c (GOACC_host_data): Remove function definition.
6459
1a06f5e6
TS
6460 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6461 cases.
6462
033ff3d1
TS
6463 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6464 variables.
6465 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6466 (hsa_kmt_lib): Set variables.
6467 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6468 always_ld_library_path.
6469 * Makefile.in: Regenerate.
6470 * configure: Likewise.
6471 * testsuite/Makefile.in: Likewise.
6472
4a88d9b7
TS
6473 * plugin/configfrag.ac (offload_additional_options)
6474 (offload_additional_lib_paths): Don't amend for hsa offloading.
6475 * configure: Regenerate.
6476
41d809d3
TS
6477 * plugin/configfrag.ac: Don't configure for offloading target if
6478 we don't build the corresponding plugin.
6479 * configure: Regenerate.
6480
b6adbb9f
NS
64812016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6482
6483 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6484 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6485
8dfdb419
TV
64862016-01-26 Tom de Vries <tom@codesourcery.com>
6487
6488 PR tree-optimization/69110
6489 * testsuite/libgomp.c/pr69110.c: New test.
6490
02ef53f2
RB
64912016-01-25 Richard Biener <rguenther@suse.de>
6492
6493 PR lto/69393
6494 * testsuite/libgomp.c++/pr69393.C: New testcase.
6495
eb4048f2
IV
64962016-01-22 Ilya Verbin <ilya.verbin@intel.com>
6497
6498 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6499 function wasn't mapped to the device with non-shared memory.
6500
b235cdd5
IV
65012016-01-20 Ilya Verbin <ilya.verbin@intel.com>
6502
6503 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6504
b2b40051
MJ
65052016-01-19 Martin Jambor <mjambor@suse.cz>
6506 Martin Liska <mliska@suse.cz>
6507
6508 * plugin/Makefrag.am: Add HSA plugin requirements.
6509 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6510 (HSA_RUNTIME_LIB): Likewise.
6511 (HSA_RUNTIME_CPPFLAGS): Likewise.
6512 (HSA_RUNTIME_INCLUDE): New substitution.
6513 (HSA_RUNTIME_LIB): Likewise.
6514 (HSA_RUNTIME_LDFLAGS): Likewise.
6515 (hsa-runtime): New configure option.
6516 (hsa-runtime-include): Likewise.
6517 (hsa-runtime-lib): Likewise.
6518 (PLUGIN_HSA): New substitution variable.
6519 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6520 configure options.
6521 (PLUGIN_HSA_CPPFLAGS): Likewise.
6522 (PLUGIN_HSA_LDFLAGS): Likewise.
6523 (PLUGIN_HSA_LIBS): Likewise.
6524 Check that we have access to HSA run-time.
6525 * libgomp-plugin.h (offload_target_type): New element
6526 OFFLOAD_TARGET_TYPE_HSA.
6527 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6528 args.
6529 (bool gomp_create_target_task): Updated.
6530 (gomp_device_descr): Extra parameter of run_func and async_run_func,
6531 new field can_run_func.
6532 * libgomp_g.h (GOMP_target_ext): Update prototype.
6533 * oacc-host.c (host_run): Added a new parameter args.
6534 * target.c (calculate_firstprivate_requirements): New function.
6535 (copy_firstprivate_data): Likewise.
6536 (gomp_target_fallback_firstprivate): Use them.
6537 (gomp_target_unshare_firstprivate): New function.
6538 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6539 devices.
6540 (GOMP_target): Do host fallback for all shared memory devices. Do not
6541 pass any args to plugins.
6542 (GOMP_target_ext): Introduce device-specific argument parameter args.
6543 Allow host fallback if device shares memory. Do not remap data if
6544 device has shared memory.
6545 (gomp_target_task_fn): Likewise. Also treat shared memory devices
6546 like host fallback for mappings.
6547 (GOMP_target_data): Treat shared memory devices like host fallback.
6548 (GOMP_target_data_ext): Likewise.
6549 (GOMP_target_update): Likewise.
6550 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
6551 gomp_create_target_task.
6552 (GOMP_target_enter_exit_data): Likewise.
6553 (omp_target_alloc): Treat shared memory devices like host fallback.
6554 (omp_target_free): Likewise.
6555 (omp_target_is_present): Likewise.
6556 (omp_target_memcpy): Likewise.
6557 (omp_target_memcpy_rect): Likewise.
6558 (omp_target_associate_ptr): Likewise.
6559 (gomp_load_plugin_for_device): Also load can_run.
6560 * task.c (GOMP_PLUGIN_target_task_completion): Free
6561 firstprivate_copies.
6562 (gomp_create_target_task): Accept new argument args and store it to
6563 ttask.
6564 * plugin/plugin-hsa.c: New file.
6565
5d7804a9
TV
65662016-01-18 Tom de Vries <tom@codesourcery.com>
6567
6568 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6569 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6570 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6571 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6572 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6573 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6574 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6575 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6576 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6577 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6578 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6579 Same.
6580 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6581 Same.
6582 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6583 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6584 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6585 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6586 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6587 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6588 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6589 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6590 Same.
6591 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6592
cb11f3cf
JJ
65932016-01-15 Jakub Jelinek <jakub@redhat.com>
6594
6595 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6596
33a126a6
CP
65972016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6598
6599 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6600
cdf6119d
JN
66012016-01-12 James Norris <jnorris@codesourcery.com>
6602
6603 * libgomp.texi: Updates for OpenACC.
6604
0d58938e
AM
66052016-01-11 Alexander Monakov <amonakov@ispras.ru>
6606
6607 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6608
95918b49
L
66092016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6610
6611 PR fortran/66680
6612 * testsuite/libgomp.fortran/pr66680.f90: New test.
6613
8fc708b7
JJ
66142016-01-07 Jakub Jelinek <jakub@redhat.com>
6615
6616 PR middle-end/68960
6617 * testsuite/libgomp.c/pr68960.c: New test.
6618
e9b596c1
NS
66192016-01-06 Nathan Sidwell <nathan@acm.org>
6620
1a14faf2 6621 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
e9b596c1
NS
6622 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6623
21fa2a29
JJ
66242016-01-04 Jakub Jelinek <jakub@redhat.com>
6625
818ab71a
JJ
6626 Update copyright years.
6627
21fa2a29
JJ
6628 * libgomp.texi: Bump @copying's copyright year.
6629
9310efbc
NS
66302015-12-31 Nathan Sidwell <nathan@acm.org>
6631
6632 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6633 dg-additional-options syntax.
6634 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6635 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6636 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6637 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6638 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6639 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6640 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6641 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6642 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6643 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6644 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6645 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6646 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6647 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6648 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6649 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6650 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6651 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6652
4a38b02b
IV
66532015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6654
6655 * libgomp.h (REFCOUNT_LINK): Define.
6656 (struct splay_tree_key_s): Add link_key.
6657 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6658 Replace target address of the pointer with target address of newly
6659 mapped object in the splay tree. Set link pointer on target to the
6660 device address of the mapped object.
6661 (gomp_unmap_vars): Restore target address of the pointer in the splay
6662 tree for REFCOUNT_LINK objects after unmapping.
6663 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6664 declare target link" objects.
6665 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6666 "omp declare target link" objects, which were mapped for the image.
6667 (gomp_exit_data): Restore target address of the pointer in the splay
6668 tree for REFCOUNT_LINK objects after unmapping.
6669 * testsuite/libgomp.c/target-link-1.c: New file.
6670
d84ffc0a
IV
66712015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6672
6673 * libgomp.h (gomp_device_state): New enum.
6674 (struct gomp_device_descr): Replace is_initialized with state.
6675 (gomp_fini_device): Remove declaration.
6676 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6677 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6678 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6679 (acc_set_device_type): Use state instead of is_initialized.
6680 (acc_set_device_num): Likewise.
6681 * target.c (resolve_device): Use state instead of is_initialized.
6682 Do not initialize finalized device.
6683 (gomp_map_vars): Do nothing if device is finalized.
6684 (gomp_unmap_vars): Likewise.
6685 (gomp_update): Likewise.
6686 (GOMP_offload_register_ver): Use state instead of is_initialized.
6687 (GOMP_offload_unregister_ver): Likewise.
6688 (gomp_init_device): Likewise.
6689 (gomp_unload_device): Likewise.
6690 (gomp_fini_device): Remove.
6691 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6692 (GOMP_target): Go to host fallback if device is finalized.
6693 (GOMP_target_ext): Likewise.
6694 (gomp_exit_data): Do nothing if device is finalized.
6695 (gomp_target_task_fn): Go to host fallback if device is finalized.
6696 (gomp_target_fini): New static function.
6697 (gomp_target_init): Use state instead of is_initialized.
6698 Call gomp_target_fini at exit.
6699
76680678
TV
67002015-12-09 Tom de Vries <tom@codesourcery.com>
6701
6702 PR tree-optimization/68716
6703 * testsuite/libgomp.c/omp-nested-2.c: New test.
6704
ff7a55bf
TS
67052015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6706
6707 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6708 target openacc_nvidia_accel_selected.
6709 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6710 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6711 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6712 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6713
37d5ad46
JB
67142015-12-01 Julian Brown <julian@codesourcery.com>
6715 James Norris <James_Norris@mentor.com>
6716
6717 * oacc-parallel.c (GOACC_host_data): New function.
6718 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6719 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6720 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6721 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6722 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6723 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6724 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6725
db941d7e
CP
67262015-11-30 James Norris <jnorris@codesourcery.com>
6727 Cesar Philippidis <cesar@codesourcery.com>
6728
6729 libgomp/
6730 * libgomp.oacc-fortran/routine-5.f90: New test.
6731 * libgomp.oacc-fortran/routine-7.f90: New test.
6732 * libgomp.oacc-fortran/routine-9.f90: New test.
6733
e0ca27c5
TV
67342015-11-30 Tom de Vries <tom@codesourcery.com>
6735
6736 PR tree-optimization/46032
6737 * testsuite/libgomp.c/pr46032.c: New test.
6738
aec17bfe
JJ
67392015-11-27 Jakub Jelinek <jakub@redhat.com>
6740
8e4e4719
JJ
6741 PR libgomp/68579
6742 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6743 (gomp_create_target_task): Call it before freeing
6744 GOMP_TARGET_TASK_DATA tasks.
6745
aec17bfe
JJ
6746 PR c/63326
6747 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6748 in between case label and OpenMP standalone directives.
6749 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6750
6cfe90e6
DE
67512015-11-26 David Edelsohn <dje.gcc@gmail.com>
6752
6753 * configure: Regenerate.
6754
0e65fd7d
JJ
67552015-11-26 Jakub Jelinek <jakub@redhat.com>
6756
6757 * testsuite/libgomp.c/target-35.c: New test.
6758
dc7a8b4b
JN
67592015-11-22 James Norris <jnorris@codesourcery.com>
6760 Cesar Philippidis <cesar@codesourcery.com>
6761
6762 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6763 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6764 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6765 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6766 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6767
48a78aee
JJ
67682015-11-20 Jakub Jelinek <jakub@redhat.com>
6769
6770 PR middle-end/68221
6771 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6772 * testsuite/libgomp.c/reduction-12.c: Likewise.
6773 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6774 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6775
2d256816
NS
67762015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6777
6778 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6779 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6780 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6781 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6782 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6783 and fix.
6784 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6785 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6786
33f47f42
NS
67872015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6788
6789 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6790 worker & gang cases.
6791 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6792
3d7bfee0
CP
67932015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6794
6795 * config/nvptx/priority_queue.c: New file.
6796
00b9bd52
JJ
67972015-11-14 Jakub Jelinek <jakub@redhat.com>
6798
6799 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6800 sections.
6801
e4606348
JJ
68022015-11-14 Jakub Jelinek <jakub@redhat.com>
6803 Aldy Hernandez <aldyh@redhat.com>
6804 Ilya Verbin <ilya.verbin@intel.com>
6805
6806 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6807 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6808 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6809 iterators or IV by chunk size.
6810 * parallel.c (gomp_resolve_num_threads): Don't assume that
6811 if thr->ts.team is non-NULL, then pool must be non-NULL.
6812 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6813 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6814 GOMP_PLUGIN_target_task_completion.
6815 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6816 * Makefile.in: Regenerate.
6817 * libgomp.h: Shuffle prototypes and forward definitions around so
6818 priority queues can be defined.
6819 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6820 (enum gomp_target_task_state): New enum.
6821 (struct gomp_target_task): Add state, tgt, task and team fields.
6822 (gomp_create_target_task): Change return type to bool, add
6823 state argument.
6824 (gomp_target_task_fn): Change return type to bool.
6825 (struct gomp_device_descr): Add async_run_func.
6826 (struct gomp_task): Remove children, next_child, prev_child,
6827 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6828 Add pnode field.
6829 (struct gomp_taskgroup): Remove children.
6830 Add taskgroup_queue.
6831 (struct gomp_team): Change task_queue type to a priority queue.
6832 (splay_compare): Define inline.
6833 (priority_queue_offset): New.
6834 (priority_node_to_task): New.
6835 (task_to_priority_node): New.
6836 * oacc-mem.c: Do not include splay-tree.h.
6837 * priority_queue.c: New file.
6838 * priority_queue.h: New file.
6839 * splay-tree.c: Do not include splay-tree.h.
6840 (splay_tree_foreach_internal): New.
6841 (splay_tree_foreach): New.
6842 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6843 (splay_tree_callback): Define typedef.
6844 * target.c (splay_compare): Move to libgomp.h.
6845 (GOMP_target): Don't adjust *thr in any way around running offloaded
6846 task.
6847 (GOMP_target_ext): Likewise. Handle target nowait.
6848 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6849 return value from gomp_create_target_task, if false, fallthrough
6850 as if no dependencies exist.
6851 (gomp_target_task_fn): Change return type to bool, return true
6852 if the task should have another part scheduled later. Handle
6853 target nowait.
6854 (gomp_load_plugin_for_device): Initialize async_run.
6855 * task.c (gomp_init_task): Initialize children_queue.
6856 (gomp_clear_parent_in_list): New.
6857 (gomp_clear_parent_in_tree): New.
6858 (gomp_clear_parent): Handle priorities.
6859 (GOMP_task): Likewise.
6860 (priority_queue_move_task_first,
6861 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6862 New functions.
6863 (gomp_create_target_task): Use priority queues. Change return type
6864 to bool, add state argument, return false if for async
6865 {{enter,exit} data,update} constructs no dependencies need to be
6866 waited for, handle target nowait. Set task->fn to NULL instead of
6867 gomp_target_task_fn.
6868 (verify_children_queue): Remove.
6869 (priority_list_upgrade_task): New.
6870 (priority_queue_upgrade_task): New.
6871 (verify_task_queue): Remove.
6872 (priority_list_downgrade_task): New.
6873 (priority_queue_downgrade_task): New.
6874 (gomp_task_run_pre): Use priority queues.
6875 Abstract code out to priority_queue_downgrade_task.
6876 (gomp_task_run_post_handle_dependers): Use priority queues.
6877 (gomp_task_run_post_remove_parent): Likewise.
6878 (gomp_task_run_post_remove_taskgroup): Likewise.
6879 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6880 tasks specially.
6881 (GOMP_taskwait): Likewise.
6882 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6883 priority-queue_upgrade_task.
6884 (GOMP_taskgroup_start): Use priority queues.
6885 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6886 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6887 barrier.
6888 * taskloop.c (GOMP_taskloop): Handle priorities.
6889 * team.c (gomp_new_team): Call priority_queue_init.
6890 (free_team): Call priority_queue_free.
6891 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6892 team created for target nowait in implicit parallel region.
6893 (gomp_team_start): For nested check, test thr->ts.level instead of
6894 thr->ts.team != NULL.
6895 * testsuite/libgomp.c/doacross-3.c: New test.
6896 * testsuite/libgomp.c/ordered-5.c: New test.
6897 * testsuite/libgomp.c/priority.c: New test.
6898 * testsuite/libgomp.c/target-31.c: New test.
6899 * testsuite/libgomp.c/target-32.c: New test.
6900 * testsuite/libgomp.c/target-33.c: New test.
6901 * testsuite/libgomp.c/target-34.c: New test.
6902
1d1ab74f
NS
69032015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6904
c5a64cfe
NS
6905 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6906
1d1ab74f
NS
6907 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6908 loop is sequential.
6909
dd3c1b14
NS
69102015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6911
6912 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6913 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6914
6e232ba4
JN
69152015-11-12 James Norris <jnorris@codesourcery.com>
6916 Joseph Myers <joseph@codesourcery.com>
6917
6918 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6919 * oacc-parallel.c (GOACC_declare): New function.
6920 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6921 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6922 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6923 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6924 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6925
fffeedeb
NS
69262015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6927
6928 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6929
182190f2
NS
69302015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6931
6932 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6933 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6934
36fa0f5f
NS
69352015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6936
d350c40c
NS
6937 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6938 inadvertent commit.
6939
69402015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6941
36fa0f5f
NS
6942 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6943 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6944 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6945 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6946 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6947
66a5f0b4
TS
69482015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6949
6950 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6951 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6952
e01d41e5
JJ
69532015-11-05 Jakub Jelinek <jakub@redhat.com>
6954 Ilya Verbin <ilya.verbin@intel.com>
6955
6956 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6957 GOMP_loop_nonmonotonic_dynamic_start,
6958 GOMP_loop_nonmonotonic_guided_next,
6959 GOMP_loop_nonmonotonic_guided_start,
6960 GOMP_loop_ull_nonmonotonic_dynamic_next,
6961 GOMP_loop_ull_nonmonotonic_dynamic_start,
6962 GOMP_loop_ull_nonmonotonic_guided_next,
6963 GOMP_loop_ull_nonmonotonic_guided_start,
6964 GOMP_parallel_loop_nonmonotonic_dynamic,
6965 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6966 (GOMP_target_41): Renamed to ...
6967 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6968 arguments.
6969 (GOMP_target_data_41): Renamed to ...
6970 (GOMP_target_data_ext): ... this.
6971 (GOMP_target_update_41): Renamed to ...
6972 (GOMP_target_update_ext): ... this.
6973 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6974 GOMP_target_data_ext and GOMP_target_update_ext instead of
6975 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6976 Export GOMP_loop_nonmonotonic_dynamic_next,
6977 GOMP_loop_nonmonotonic_dynamic_start,
6978 GOMP_loop_nonmonotonic_guided_next,
6979 GOMP_loop_nonmonotonic_guided_start,
6980 GOMP_loop_ull_nonmonotonic_dynamic_next,
6981 GOMP_loop_ull_nonmonotonic_dynamic_start,
6982 GOMP_loop_ull_nonmonotonic_guided_next,
6983 GOMP_loop_ull_nonmonotonic_guided_start,
6984 GOMP_parallel_loop_nonmonotonic_dynamic and
6985 GOMP_parallel_loop_nonmonotonic_guided.
6986 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6987 GOMP_parallel_loop_nonmonotonic_guided,
6988 GOMP_loop_nonmonotonic_dynamic_start,
6989 GOMP_loop_nonmonotonic_guided_start,
6990 GOMP_loop_nonmonotonic_dynamic_next,
6991 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6992 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6993 GOMP_loop_ull_nonmonotonic_guided_start,
6994 GOMP_loop_ull_nonmonotonic_dynamic_next,
6995 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6996 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6997 functions.
6998 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6999 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
7000 Use gomp_map_val function.
7001 (gomp_target_fallback_firstprivate): New static function.
7002 (GOMP_target_41): Renamed to ...
7003 (GOMP_target_ext): ... this. Add num_teams and thread_limit
7004 arguments. Move firstprivate fallback handling into a new
7005 function.
7006 (GOMP_target_data_41): Renamed to ...
7007 (GOMP_target_data_ext): ... this.
7008 (GOMP_target_update_41): Renamed to ...
7009 (GOMP_target_update_ext): ... this.
7010 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
7011 gomp_map_0len_lookup instead of gomp_map_lookup.
7012 (omp_target_is_present): Use gomp_map_0len_lookup instead of
7013 gomp_map_lookup.
7014 * testsuite/libgomp.c/target-28.c: Likewise.
7015 * testsuite/libgomp.c/monotonic-1.c: New test.
7016 * testsuite/libgomp.c/monotonic-2.c: New test.
7017 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
7018 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
7019 * testsuite/libgomp.c/pr66199-5.c: New test.
7020 * testsuite/libgomp.c/pr66199-6.c: New test.
7021 * testsuite/libgomp.c/pr66199-7.c: New test.
7022 * testsuite/libgomp.c/pr66199-8.c: New test.
7023 * testsuite/libgomp.c/pr66199-9.c: New test.
7024 * testsuite/libgomp.c/reduction-11.c: New test.
7025 * testsuite/libgomp.c/reduction-12.c: New test.
7026 * testsuite/libgomp.c/reduction-13.c: New test.
7027 * testsuite/libgomp.c/reduction-14.c: New test.
7028 * testsuite/libgomp.c/reduction-15.c: New test.
7029 * testsuite/libgomp.c/target-12.c (main): Adjust for
7030 omp_target_is_present change for one-past-last element.
7031 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
7032 the same var is both mapped and privatized.
7033 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
7034 handling of zero-length array sections.
7035 * testsuite/libgomp.c/target-28.c: New test.
7036 * testsuite/libgomp.c/target-29.c: New test.
7037 * testsuite/libgomp.c/target-30.c: New test.
7038 * testsuite/libgomp.c/target-teams-1.c: New test.
7039 * testsuite/libgomp.c++/member-6.C: New test.
7040 * testsuite/libgomp.c++/member-7.C: New test.
7041 * testsuite/libgomp.c++/monotonic-1.C: New test.
7042 * testsuite/libgomp.c++/monotonic-2.C: New test.
7043 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
7044 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
7045 * testsuite/libgomp.c++/pr66199-3.C: New test.
7046 * testsuite/libgomp.c++/pr66199-4.C: New test.
7047 * testsuite/libgomp.c++/pr66199-5.C: New test.
7048 * testsuite/libgomp.c++/pr66199-6.C: New test.
7049 * testsuite/libgomp.c++/pr66199-7.C: New test.
7050 * testsuite/libgomp.c++/pr66199-8.C: New test.
7051 * testsuite/libgomp.c++/pr66199-9.C: New test.
7052 * testsuite/libgomp.c++/reduction-11.C: New test.
7053 * testsuite/libgomp.c++/reduction-12.C: New test.
7054 * testsuite/libgomp.c++/target-13.C: New test.
7055 * testsuite/libgomp.c++/target-14.C: New test.
7056 * testsuite/libgomp.c++/target-15.C: New test.
7057 * testsuite/libgomp.c++/target-16.C: New test.
7058 * testsuite/libgomp.c++/target-17.C: New test.
7059 * testsuite/libgomp.c++/target-18.C: New test.
7060 * testsuite/libgomp.c++/target-19.C: New test.
7061
ccc8282b
NS
70622015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7063
7064 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
7065 and reduction copy.
7066 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7067 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7068 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7069 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7070 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
7071 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7072 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7073 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7074 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7075 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
7076 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7077 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7078 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7079 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
7080
5d6823a2
NS
70812015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7082
7083 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
7084 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
7085 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
7086 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
7087 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
7088 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
7089 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
7090 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
7091
5c06742f
NS
70922015-11-03 Nathan Sidwell <nathan@codesourcery.com>
7093
7094 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
7095 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
7096 (GOMP_OFFLOAD_openacc_parallel): Likewise.
7097 * oacc-host.c (host_openacc_exec): Likewise.
7098 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
7099
4bf9e5a8
TS
71002015-11-03 Julian Brown <julian@codesourcery.com>
7101 Thomas Schwinge <thomas@codesourcery.com>
7102
7103 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
7104 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7105 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
7106 Likewise.
7107 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
7108 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
7109
71102015-11-03 James Norris <jnorris@codesourcery.com>
7111
7112 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
7113 file.
7114 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
7115 Likewise.
7116 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
7117 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
7118 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7119 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
7120 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7121
a0e701d8
NS
71222015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7123
7124 * openacc.h (enum acc_device_t): Reformat. Ensure layout
7125 compatibility.
7126 (enum acc_async_t): Reformat.
7127 (acc_on_device): Declare compatible with builtin and provide C++
7128 wrapper.
7129 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
7130
41e977ac
TS
71312015-10-29 Thomas Schwinge <thomas@codesourcery.com>
7132 Cesar Philippidis <cesar@codesourcery.com>
7133
7134 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
7135 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
7136 ... this. Add a description of the test at the top of the file.
7137 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
7138 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
7139 ... this. Add a description of the test at the top of the file.
7140
e3091406
NS
71412015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7142
7143 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
7144 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
7145 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
7146 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
7147 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
7148 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
7149
a1c1908b
NS
71502015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7151
7152 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
7153 dimensions.
7154
b3962a4a
TS
71552015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7156
7157 PR testsuite/68063
7158 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
7159
88bae6f4
TS
71602015-10-27 James Norris <jnorris@codesourcery.com>
7161
7162 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
7163 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
7164
8baa7864
TS
71652015-10-26 Thomas Schwinge <thomas@codesourcery.com>
7166
bdeb752c
TS
7167 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
7168 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7169
ecd4fd43
TS
7170 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
7171 acc_device_nvidia usage.
7172 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7173 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7174 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7175
aa8b7d30
TS
7176 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
7177 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
7178
7c8f138d
TS
7179 PR libgomp/66518
7180 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
7181
8baa7864
TS
7182 PR libgomp/65437
7183 PR libgomp/66518
7184 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
7185 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
7186
88ebcde5
TV
71872015-10-23 Tom de Vries <tom@codesourcery.com>
7188
7189 PR testsuite/68063
7190 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
7191
9ef83c04
NS
71922015-10-20 Nathan Sidwell <nathan@codesourcery.com>
7193
7194 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
7195 vector_length.
7196 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7197
3837c6d6
IV
71982015-10-14 Ilya Verbin <ilya.verbin@intel.com>
7199 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
7200
7201 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
7202 to 0 when mapnum is 0.
7203
ac8a1965
SH
72042015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
7205
7206 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
7207 Cast to int from int32_t.
7208
d9a6bd32
JJ
72092015-10-13 Jakub Jelinek <jakub@redhat.com>
7210 Aldy Hernandez <aldyh@redhat.com>
7211 Ilya Verbin <ilya.verbin@intel.com>
7212
7213 * config/linux/affinity.c (omp_get_place_num_procs,
7214 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7215 * config/linux/doacross.h: New file.
7216 * config/posix/affinity.c (omp_get_place_num_procs,
7217 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
7218 * config/posix/doacross.h: New file.
7219 * env.c: Include gomp-constants.h.
7220 (struct gomp_task_icv): Rename run_sched_modifier to
7221 run_sched_chunk_size.
7222 (gomp_max_task_priority_var): New variable.
7223 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
7224 (handle_omp_display_env): Change _OPENMP value from 201307 to
7225 201511. Print OMP_MAX_TASK_PRIORITY.
7226 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
7227 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
7228 chunk_size and run_sched_modifier to run_sched_chunk_size.
7229 (omp_get_max_task_priority, omp_get_initial_device,
7230 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
7231 omp_get_partition_place_nums): New functions.
7232 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
7233 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
7234 to chunk_size.
7235 (omp_get_num_places_, omp_get_place_num_procs_,
7236 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
7237 omp_get_place_proc_ids_8_, omp_get_place_num_,
7238 omp_get_partition_num_places_, omp_get_partition_place_nums_,
7239 omp_get_partition_place_nums_8_, omp_get_initial_device_,
7240 omp_get_max_task_priority_): New functions.
7241 * libgomp_g.h (GOMP_loop_doacross_static_start,
7242 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
7243 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
7244 GOMP_loop_ull_doacross_dynamic_start,
7245 GOMP_loop_ull_doacross_guided_start,
7246 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
7247 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
7248 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
7249 GOMP_target_data_41, GOMP_target_update_41,
7250 GOMP_target_enter_exit_data): New prototypes.
7251 (GOMP_task): Add prototype argument.
7252 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
7253 (struct gomp_doacross_work_share): New type.
7254 (struct gomp_work_share): Add doacross field.
7255 (struct gomp_task_icv): Rename run_sched_modifier to
7256 run_sched_chunk_size.
7257 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
7258 GOMP_TASK_UNDEFERRED. Add comments.
7259 (struct gomp_task_depend_entry): Add comments.
7260 (struct gomp_task): Likewise.
7261 (struct gomp_taskgroup): Likewise.
7262 (struct gomp_target_task): New type.
7263 (struct gomp_team): Add comment.
7264 (gomp_get_place_proc_ids_8, gomp_doacross_init,
7265 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
7266 gomp_create_target_task, gomp_target_task_fn): New prototypes.
7267 (struct target_var_desc): New type.
7268 (struct target_mem_desc): Adjust comment. Use struct
7269 target_var_desc instead of splay_tree_key for list.
7270 (REFCOUNT_INFINITY): Define.
7271 (struct splay_tree_key_s): Remove copy_from field.
7272 (struct gomp_device_descr): Add dev2dev_func field.
7273 (enum gomp_map_vars_kind): New enum.
7274 (gomp_map_vars): Add one argument.
7275 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
7276 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
7277 omp_get_place_num_procs, omp_get_place_num_procs_,
7278 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
7279 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
7280 omp_get_place_num_, omp_get_partition_num_places,
7281 omp_get_partition_num_places_, omp_get_partition_place_nums,
7282 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
7283 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
7284 omp_target_free, omp_target_is_present, omp_target_memcpy,
7285 omp_target_memcpy_rect, omp_target_associate_ptr and
7286 omp_target_disassociate_ptr.
7287 (GOMP_4.0.2): Renamed to ...
7288 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
7289 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
7290 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
7291 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7292 GOMP_loop_doacross_static_start, GOMP_doacross_post,
7293 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
7294 GOMP_loop_ull_doacross_guided_start,
7295 GOMP_loop_ull_doacross_runtime_start,
7296 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
7297 GOMP_doacross_ull_wait.
7298 * libgomp.texi: Document omp_get_max_task_priority.
7299 Rename modifier argument to chunk_size for omp_set_schedule and
7300 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
7301 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
7302 to run_sched_chunk_size renaming.
7303 (GOMP_loop_ordered_runtime_start): Likewise.
7304 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7305 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
7306 GOMP_parallel_loop_runtime_start): New functions.
7307 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
7308 to run_sched_chunk_size renaming.
7309 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
7310 GOMP_loop_doacross_guided_start): New functions or aliases.
7311 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
7312 run_sched_modifier to run_sched_chunk_size renaming.
7313 (GOMP_loop_ull_ordered_runtime_start): Likewise.
7314 (gomp_loop_ull_doacross_static_start,
7315 gomp_loop_ull_doacross_dynamic_start,
7316 gomp_loop_ull_doacross_guided_start,
7317 GOMP_loop_ull_doacross_runtime_start): New functions.
7318 (GOMP_loop_ull_doacross_static_start,
7319 GOMP_loop_ull_doacross_dynamic_start,
7320 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
7321 * oacc-mem.c (acc_map_data, present_create_copy,
7322 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
7323 to gomp_map_vars.
7324 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
7325 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
7326 instead of false to gomp_map_vars.
7327 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
7328 * omp.h.in (omp_lock_hint_t): New type.
7329 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7330 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7331 omp_get_place_num, omp_get_partition_num_places,
7332 omp_get_partition_place_nums, omp_get_initial_device,
7333 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
7334 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
7335 omp_target_associate_ptr, omp_target_disassociate_ptr): New
7336 prototypes.
7337 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
7338 (omp_lock_hint_none, omp_lock_hint_uncontended,
7339 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7340 omp_lock_hint_speculative): New parameters.
7341 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7342 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7343 omp_get_place_num, omp_get_partition_num_places,
7344 omp_get_partition_place_nums, omp_get_initial_device,
7345 omp_get_max_task_priority): New interfaces.
7346 (omp_set_schedule, omp_get_schedule): Rename modifier argument
7347 to chunk_size.
7348 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
7349 (omp_lock_hint_none, omp_lock_hint_uncontended,
7350 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
7351 omp_lock_hint_speculative): New parameters.
7352 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
7353 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
7354 omp_get_place_num, omp_get_partition_num_places,
7355 omp_get_partition_place_nums, omp_get_initial_device,
7356 omp_get_max_task_priority): New functions and subroutines.
7357 * ordered.c: Include stdarg.h and string.h.
7358 (MAX_COLLAPSED_BITS): Define.
7359 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
7360 gomp_doacross_ull_init, GOMP_doacross_ull_post,
7361 GOMP_doacross_ull_wait): New functions.
7362 * target.c: Include errno.h.
7363 (resolve_device): If device is not initialized, call
7364 gomp_init_device on it.
7365 (gomp_map_lookup): New function.
7366 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
7367 Don't bump refcount if REFCOUNT_INFINITY. Handle
7368 GOMP_MAP_ALWAYS_TO_P.
7369 (get_kind): Rename is_openacc argument to short_mapkind.
7370 (gomp_map_pointer): Use gomp_map_lookup.
7371 (gomp_map_fields_existing): New function.
7372 (gomp_map_vars): Rename is_openacc argument to short_mapkind
7373 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
7374 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
7375 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
7376 Adjust for tgt->list changed type and copy_from living in there.
7377 (gomp_copy_from_async): Adjust for tgt->list changed type and
7378 copy_from living in there.
7379 (gomp_unmap_vars): Likewise.
7380 (gomp_update): Likewise. Rename is_openacc argument to
7381 short_mapkind. Don't fail if object is not mapped.
7382 (gomp_load_image_to_device): Initialize refcount to
7383 REFCOUNT_INFINITY.
7384 (gomp_target_fallback): New function.
7385 (gomp_get_target_fn_addr): Likewise.
7386 (GOMP_target): Adjust gomp_map_vars caller, use
7387 gomp_get_target_fn_addr and gomp_target_fallback.
7388 (GOMP_target_41): New function.
7389 (gomp_target_data_fallback): New function.
7390 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
7391 (GOMP_target_data_41): New function.
7392 (GOMP_target_update): Adjust gomp_update caller.
7393 (GOMP_target_update_41): New function.
7394 (gomp_exit_data, GOMP_target_enter_exit_data,
7395 gomp_target_task_fn, omp_target_alloc, omp_target_free,
7396 omp_target_is_present, omp_target_memcpy,
7397 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7398 omp_target_associate_ptr, omp_target_disassociate_ptr,
7399 gomp_load_plugin_for_device): New functions.
7400 * task.c: Include gomp-constants.h. Include taskloop.c
7401 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7402 (gomp_task_handle_depend): New function.
7403 (GOMP_task): Use it. Add priority argument. Use
7404 gomp-constant.h constants instead of hardcoded numbers.
7405 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7406 (gomp_create_target_task): New function.
7407 (verify_children_queue, verify_taskgroup_queue,
7408 verify_task_queue): New functions.
7409 (gomp_task_run_pre): Call verify_*_queue functions.
7410 If an upcoming tied task is about to leave the sibling or
7411 taskgroup queues in an invalid state, adjust appropriately.
7412 Remove taskgroup argument. Add comments.
7413 (gomp_task_run_post_handle_dependers): Add comments.
7414 (gomp_task_run_post_remove_parent): Likewise.
7415 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7416 (GOMP_taskwait): Likewise. Add comments.
7417 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7418 problem such that the first non parent_depends_on task does not
7419 end up at the end of the children queue.
7420 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7421 GOMP_TASK_UNDEFERRED.
7422 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7423 * taskloop.c: New file.
7424 * testsuite/lib/libgomp.exp
7425 (check_effective_target_offload_device_nonshared_as): New proc.
7426 * testsuite/libgomp.c/affinity-2.c: New test.
7427 * testsuite/libgomp.c/doacross-1.c: New test.
7428 * testsuite/libgomp.c/doacross-2.c: New test.
7429 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7430 Add map clause to target.
7431 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7432 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7433 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7434 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7435 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7436 Likewise.
7437 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7438 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7439 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7440 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7441 not defined. Use those where needed.
7442 * testsuite/libgomp.c/for-4.c: New test.
7443 * testsuite/libgomp.c/for-5.c: New test.
7444 * testsuite/libgomp.c/for-6.c: New test.
7445 * testsuite/libgomp.c/linear-1.c: New test.
7446 * testsuite/libgomp.c/ordered-4.c: New test.
7447 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7448 only allowed on the loop iterator.
7449 * testsuite/libgomp.c/pr66199-3.c: New test.
7450 * testsuite/libgomp.c/pr66199-4.c: New test.
7451 * testsuite/libgomp.c/reduction-7.c: New test.
7452 * testsuite/libgomp.c/reduction-8.c: New test.
7453 * testsuite/libgomp.c/reduction-9.c: New test.
7454 * testsuite/libgomp.c/reduction-10.c: New test.
7455 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7456 map(tofrom:s).
7457 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7458 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7459 * testsuite/libgomp.c/target-11.c: New test.
7460 * testsuite/libgomp.c/target-12.c: New test.
7461 * testsuite/libgomp.c/target-13.c: New test.
7462 * testsuite/libgomp.c/target-14.c: New test.
7463 * testsuite/libgomp.c/target-15.c: New test.
7464 * testsuite/libgomp.c/target-16.c: New test.
7465 * testsuite/libgomp.c/target-17.c: New test.
7466 * testsuite/libgomp.c/target-18.c: New test.
7467 * testsuite/libgomp.c/target-19.c: New test.
7468 * testsuite/libgomp.c/target-20.c: New test.
7469 * testsuite/libgomp.c/target-21.c: New test.
7470 * testsuite/libgomp.c/target-22.c: New test.
7471 * testsuite/libgomp.c/target-23.c: New test.
7472 * testsuite/libgomp.c/target-24.c: New test.
7473 * testsuite/libgomp.c/target-25.c: New test.
7474 * testsuite/libgomp.c/target-26.c: New test.
7475 * testsuite/libgomp.c/target-27.c: New test.
7476 * testsuite/libgomp.c/taskloop-1.c: New test.
7477 * testsuite/libgomp.c/taskloop-2.c: New test.
7478 * testsuite/libgomp.c/taskloop-3.c: New test.
7479 * testsuite/libgomp.c/taskloop-4.c: New test.
7480 * testsuite/libgomp.c++/ctor-13.C: New test.
7481 * testsuite/libgomp.c++/doacross-1.C: New test.
7482 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7483 Replace offload_device with offload_device_nonshared_as.
7484 * testsuite/libgomp.c++/for-12.C: New test.
7485 * testsuite/libgomp.c++/for-13.C: New test.
7486 * testsuite/libgomp.c++/for-14.C: New test.
7487 * testsuite/libgomp.c++/linear-1.C: New test.
7488 * testsuite/libgomp.c++/member-1.C: New test.
7489 * testsuite/libgomp.c++/member-2.C: New test.
7490 * testsuite/libgomp.c++/member-3.C: New test.
7491 * testsuite/libgomp.c++/member-4.C: New test.
7492 * testsuite/libgomp.c++/member-5.C: New test.
7493 * testsuite/libgomp.c++/ordered-1.C: New test.
7494 * testsuite/libgomp.c++/reduction-5.C: New test.
7495 * testsuite/libgomp.c++/reduction-6.C: New test.
7496 * testsuite/libgomp.c++/reduction-7.C: New test.
7497 * testsuite/libgomp.c++/reduction-8.C: New test.
7498 * testsuite/libgomp.c++/reduction-9.C: New test.
7499 * testsuite/libgomp.c++/reduction-10.C: New test.
7500 * testsuite/libgomp.c++/reference-1.C: New test.
7501 * testsuite/libgomp.c++/simd14.C: New test.
7502 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7503 * testsuite/libgomp.c++/target-5.C: New test.
7504 * testsuite/libgomp.c++/target-6.C: New test.
7505 * testsuite/libgomp.c++/target-7.C: New test.
7506 * testsuite/libgomp.c++/target-8.C: New test.
7507 * testsuite/libgomp.c++/target-9.C: New test.
7508 * testsuite/libgomp.c++/target-10.C: New test.
7509 * testsuite/libgomp.c++/target-11.C: New test.
7510 * testsuite/libgomp.c++/target-12.C: New test.
7511 * testsuite/libgomp.c++/taskloop-1.C: New test.
7512 * testsuite/libgomp.c++/taskloop-2.C: New test.
7513 * testsuite/libgomp.c++/taskloop-3.C: New test.
7514 * testsuite/libgomp.c++/taskloop-4.C: New test.
7515 * testsuite/libgomp.c++/taskloop-5.C: New test.
7516 * testsuite/libgomp.c++/taskloop-6.C: New test.
7517 * testsuite/libgomp.c++/taskloop-7.C: New test.
7518 * testsuite/libgomp.c++/taskloop-8.C: New test.
7519 * testsuite/libgomp.c++/taskloop-9.C: New test.
7520 * testsuite/libgomp.fortran/affinity1.f90: New test.
7521 * testsuite/libgomp.fortran/affinity2.f90: New test.
7522
1f600fea
TV
75232015-10-13 Tom de Vries <tom@codesourcery.com>
7524
7525 PR tree-optimization/67476
7526 * testsuite/libgomp.c/autopar-3.c: New test.
7527 * testsuite/libgomp.c/autopar-4.c: New test.
7528 * testsuite/libgomp.c/autopar-5.c: New test.
7529 * testsuite/libgomp.c/autopar-6.c: New test.
7530 * testsuite/libgomp.c/autopar-7.c: New test.
7531 * testsuite/libgomp.c/autopar-8.c: New test.
7532
058a654b
JN
75332015-10-12 James Norris <jnorris@codesourcery.com>
7534
7535 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7536 initializer.
7537
9e531d37
DM
75382015-10-09 David Malcolm <dmalcolm@redhat.com>
7539
7540 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7541 using load_gcc_lib.
7542
113020dc
TS
75432015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7544
7545 * oacc-ptx.h: Remove file, moving its content into...
7546 * config/nvptx/fortran.c: ... here...
7547 * config/nvptx/oacc-init.c: ..., here...
7548 * config/nvptx/oacc-parallel.c: ..., and here.
7549 * config/nvptx/openacc.f90: New file.
7550 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7551 (link_ptx): Don't link in predefined bits of PTX code.
7552
cc3cd79b
NS
75532015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7554 Bernd Schmidt <bernds@codesourcery.com>
7555
7556 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7557 (struct targ_ptx_obj): New.
7558 (nvptx_tdata): Move earlier, change data format.
7559 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
7560 objects.
7561 (GOMP_OFFLOAD_load_image): Adjust.
7562
4e2a5450
TS
75632015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7564
7565 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7566 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7567 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7568 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7569 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7570 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7571 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7572 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7573 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7574 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7575 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7576 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7577 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7578 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7579 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7580 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7581 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7582 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7583 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7584 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7585 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7586 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7587 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7588 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7589 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7590 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7591 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7592 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7593 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7594 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7595 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7596 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7597 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7598 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7599 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7600 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7601 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7602 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7603 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7604 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7605 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7606 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7607 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7608 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7609 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7610 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7611 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7612 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7613 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7614 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7615 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7616 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7617 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7618 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7619 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7620 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7621 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7622 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7623 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7624 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7625 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7626 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7627 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7628
164453bb
NS
76292015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7630
7631 * oacc-init.c (acc_on_device): Force optimization level.
7632
a12a0437
NS
76332015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7634
7635 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7636 (cuda_errlist): Delete.
7637 (cuda_error): Reimplement.
7638
3e32ee19
NS
76392015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7640
7641 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7642 array.
7643 * libgomp.map (GOACC_parallel_keyed): New.
7644 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7645 all callers.
7646 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7647 and take keyed varargs list. Adjust call to exec_func.
7648 (GOACC_parallel): Force host fallback.
7649 * libgomp_g.h (GOACC_parallel): Remove.
7650 (GOACC_parallel_keyed): Declare.
7651 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
93d90219 7652 (struct targ_gn_descriptor): Replace name field with launch field.
3e32ee19
NS
7653 (nvptx_exec): Lose separate geometry args, take array. Process
7654 dynamic dimensions and adjust.
7655 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7656 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7657 data.
7658 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7659 passing.
7660 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7661 passing.
7662
6bb4c3e2
CLT
76632015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7664
7665 PR libgomp/67141
7666 * oacc-int.h (goacc_host_init): Add declaration.
7667 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7668 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7669
74032f47 76702015-09-08 Aditya Kumar <hiraditya@msn.com>
34b18169 7671 Sebastian Pop <s.pop@samsung.com>
74032f47 7672
93d90219 7673 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
74032f47
AK
7674 match o/p.
7675 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7676 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7677 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7678 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7679 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7680
97875f4a
JJ
76812015-09-03 Jakub Jelinek <jakub@redhat.com>
7682
7683 * configure.tgt: Add missing ;; in between nvptx and rtems
7684 snippets.
7685
06441dd5
SH
76862015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7687
7688 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7689 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7690 (gomp_thread_pool_reservoir): Add priority member.
7691 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7692 priority.
7693 (parse_thread_pools): Likewise.
7694 * team.c (gomp_team_start): Call configuration provided
7695 gomp_adjust_thread_attr(). Destroy thread attributes if
7696 necessary.
7697 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7698
66c59f92
SH
76992015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7700
7701 * config/posix/pool.h: New.
7702 * config/rtems/pool.h: Likewise.
7703 * config/rtems/proc.c: Likewise.
7704 * libgomp.h (gomp_thread_destructor): Declare.
7705 * team.c: Include configuration provided "pool.h".
7706 (gomp_get_thread_pool): Define in configuration.
7707 (gomp_team_end): Call configuration defined
7708 gomp_release_thread_pool().
7709
13c41b2e
SH
77102015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7711
7712 * config/rtems/bar.c: New.
7713 * config/rtems/bar.h: Likewise.
7714 * config/rtems/mutex.c: Likewise.
7715 * config/rtems/mutex.h: Likewise.
7716 * config/rtems/sem.c: Likewise.
7717 * config/rtems/sem.h: Likewise.
7718 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7719 <sys/lock.h> header file.
7720 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7721 supported by Newlib.
7722 * configure: Regenerate.
7723
7892ec67
SH
77242015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7725
7726 * team.c (gomp_new_thread_pool): Delete and move content to ...
7727 (gomp_get_thread_pool): ... new function. Allocate and
7728 initialize thread pool on demand.
7729 (get_last_team): Use gomp_get_thread_pool().
7730 (gomp_team_start): Delete thread pool initialization.
7731
1b96e9a4
TV
77322015-09-03 Tom de Vries <tom@codesourcery.com>
7733
7734 PR tree-optimization/65637
7735 * testsuite/libgomp.c/autopar-2.c: New test.
7736
3ff2d74e
TV
77372015-08-29 Tom de Vries <tom@codesourcery.com>
7738
7739 PR tree-optimization/46193
7740 * testsuite/libgomp.c/pr46193.c: New test.
7741
2a21ff19
NS
77422015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7743
7744 libgomp/
7745 * libgomp.map: Add 4.0.2 version.
7746 * target.c (offload_image_descr): Add version field.
7747 (gomp_load_image_to_device): Add version argument. Adjust plugin
7748 call. Improve load mismatch diagnostic.
7749 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7750 call.
7751 (GOMP_offload_regster): Make stub function, move bulk to ...
7752 (GOMP_offload_register_ver): ... here. Process version argument.
7753 (GOMP_offload_unregister): Make stub function, move bulk to ...
7754 (GOMP_offload_unregister_ver): ... here. Process version argument.
7755 (gomp_init_device): Process version field.
7756 (gomp_unload_device): Process version field.
7757 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7758 macros. Check plugin version.
7759 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7760 loader and unloader types.
7761 * oacc-host.c: Include gomp-constants.h.
7762 (host_version): New.
7763 (host_load_image, host_unload_image): Adjust.
7764 (host_dispatch): Add host_version.
7765 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7766 (GOMP_OFFLOAD_version): New.
7767 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7768 (GOMP_OFFLOAD_unload_image): Likewise.
7769 * plugin/plugin-host.c: Include gomp-constants.h.
7770 (GOMP_OFFLOAD_version): New.
7771 (GOMP_OFFLOAD_load_image): Add version arg.
7772 (GOMP_OFFLOAD_unload_image): Likewise.
7773
1358a747
TV
77742015-08-24 Tom de Vries <tom@codesourcery.com>
7775
7776 PR tree-optimization/65468
7777 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7778
6be5c241
TV
77792015-08-24 Tom de Vries <tom@codesourcery.com>
7780
7781 PR tree-optimization/65468
7782 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7783
bfe7ac89
JV
77842015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7785
7786 PR libgomp/66761
7787 PR libgomp/67303
7788 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7789 (gomp_iter_guided_next): Idem.
7790 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7791 (gomp_iter_ull_guided_next): Idem.
7792 * config/linux/wait.h (do_spin): Idem.
7793
b97e78b7
TS
77942015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7795
7796 * libgomp-plugin.h (enum offload_target_type): Remove
7797 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7798 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7799 * openacc.h (enum acc_device_t): Likewise.
7800 * openacc_lib.h: Likewise.
7801 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7802 (acc_on_device): Just use __builtin_acc_on_device.
7803 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7804 of acc_on_device builtin.
7805 * plugin/plugin-host.h: Remove file.
7806 * plugin/plugin-host.c: Likewise, but salvage some content into...
7807 * oacc-host.c: ... this file.
7808 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7809 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7810 * Makefile.in: Regenerate.
7811 * configure: Likewise.
7812 * testsuite/lib/libgomp.exp
7813 (check_effective_target_openacc_host_nonshm_selected): Remove.
7814 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7815 ACC_DEVICE_TYPE=host_nonshm.
7816 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7817 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7818 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7819 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7820 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7821 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7822
44a7d18d
TS
78232015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7824 Jakub Jelinek <jakub@redhat.com>
7825
7826 * config/nvptx/affinity.c: New file.
7827 * config/nvptx/alloc.c: Likewise.
7828 * config/nvptx/bar.c: Likewise.
7829 * config/nvptx/barrier.c: Likewise.
7830 * config/nvptx/critical.c: Likewise.
7831 * config/nvptx/env.c: Likewise.
7832 * config/nvptx/error.c: Likewise.
7833 * config/nvptx/fortran.c: Likewise.
7834 * config/nvptx/iter.c: Likewise.
7835 * config/nvptx/iter_ull.c: Likewise.
7836 * config/nvptx/libgomp-plugin.c: Likewise.
7837 * config/nvptx/lock.c: Likewise.
7838 * config/nvptx/loop.c: Likewise.
7839 * config/nvptx/loop_ull.c: Likewise.
7840 * config/nvptx/mutex.c: Likewise.
7841 * config/nvptx/oacc-async.c: Likewise.
7842 * config/nvptx/oacc-cuda.c: Likewise.
7843 * config/nvptx/oacc-host.c: Likewise.
7844 * config/nvptx/oacc-init.c: Likewise.
7845 * config/nvptx/oacc-mem.c: Likewise.
7846 * config/nvptx/oacc-parallel.c: Likewise.
7847 * config/nvptx/oacc-plugin.c: Likewise.
7848 * config/nvptx/omp-lock.h: Likewise.
7849 * config/nvptx/ordered.c: Likewise.
7850 * config/nvptx/parallel.c: Likewise.
7851 * config/nvptx/proc.c: Likewise.
7852 * config/nvptx/ptrlock.c: Likewise.
7853 * config/nvptx/sections.c: Likewise.
7854 * config/nvptx/sem.c: Likewise.
7855 * config/nvptx/single.c: Likewise.
7856 * config/nvptx/splay-tree.c: Likewise.
7857 * config/nvptx/target.c: Likewise.
7858 * config/nvptx/task.c: Likewise.
7859 * config/nvptx/team.c: Likewise.
7860 * config/nvptx/time.c: Likewise.
7861 * config/nvptx/work.c: Likewise.
7862 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7863 * configure: Regenerate.
7864 * configure.tgt (config_path): Set to "nvptx" for target
7865 nvptx*-*-*.
7866
96a2d174
TS
78672015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7868
7869 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7870
9ebddeb0
NS
78712015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7872
7873 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7874 (cuda_errlist): Constify.
7875 (errmsg): Move into ...
7876 (cuda_error): ... here. Make smaller.
7877 (_XSTR, _STR): Delete.
7878 (cuda_synames): Delete.
7879 (verify_device_library): Delete.
7880 (nvptx_init): Don't call it.
7881
12efb1d7
TV
78822015-07-28 Tom de Vries <tom@codesourcery.com>
7883
7884 * testsuite/libgomp.c/uns-outer-4.c: New test.
7885
710ee218
CP
78862015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7887
7888 * testsuite/libgomp.c/pr66714.c: New test.
7889
27c4ac7d
MB
78902015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7891
7892 PR libgomp/66950
7893 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7894 (fib_ref): New function.
7895 (fib): Correct corner cases in the recursion.
7896 (main): Replace the non-simd loop with fib_ref call.
7897 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7898 subroutine.
7899 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7900 for the last array element value. Replace the non-simd loop with
7901 fib_ref call. Remove redundant b_ref array. Remove the comparison
7902 of the last array element with according Fibonacci sequence element.
7903 (fib): Correct corner cases in the recursion.
7904
22be2349
NS
79052015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7906
7907 * target.c (gomp_offload_image_to_device): Rename to ...
7908 (gomp_load_image_to_device): ... here.
7909 (GOMP_offload_register): Adjust call.
7910 (gomp_init_device): Likewise.
7911 (gomp_unload_image_from_device): New. Broken out of ...
7912 (GOMP_offload_unregister): ... here. Call it.
7913 (gomp_unload_device): New.
7914 * libgomp.h (gomp_unload_device): Declare.
7915 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7916 mem maps.
7917
f3e9a059
NS
79182015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7919
a091118d
NS
7920 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7921 wait=-specific if.
7922 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7923 !=0 condition.
7924 (goacc_waits): Move !num_waits handling to ...
7925 (GOACC_wait): ... here, the only caller that might have zero waits.
7926
f3e9a059
NS
7927 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7928 (struct ptx_image_data): Move earlier, add fns field.
7929 (struct ptx_device): Add images and image_lock fields.
7930 (ptx_images, ptx_image_lock): Delete.
7931 (nvptx_open_device): Initialize images and image_lock fields.
7932 (nvptx_close_device): Destroy image_lock.
7933 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7934 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7935 fields.
7936
afb2d80b
NS
79372015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7938
896c28a7
NS
7939 * target.c (GOMP_offload_register): Use int for device type arg.
7940 (GOMP_offload_unregister): Likewise.
7941
ebe4a560
NS
7942 * target.c (struct_offload_image_descr): Constify host_table.
7943 (gomp_offload_image_to_device): Likewise.
7944 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7945
afb2d80b
NS
7946 * libgomp.h (gomp_device_descr): Constify target data arguments.
7947 * target.c (struct offload_image_descr): Constify target_data.
7948 (gomp_offload_image_to_device): Likewise.
7949 (GOMP_offload_register): Likewise.
93d90219 7950 (GOMP_offload_unregister): Likewise.
afb2d80b
NS
7951 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7952 GOMP_OFFLOAD_unload_image): Constify target data.
7953 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7954 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7955
a4cb876d
NS
79562015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7957
7958 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7959 Workaround driver library const error.
7960 (struct nvptx_tdata, nvptx_tdata_t): New.
7961 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7962 type.
7963
28ef6a27
MB
79642015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7965
7966 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7967 of EPS parameter from integer to real.
7968 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7969 type of EPS parameter from integer to real.
7970
6dba0113
SH
79712015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7972
7973 * team.c (get_last_team): New.
7974 (gomp_new_team): Recycle last non-nested team if possible.
7975 (gomp_team_end): Move team work share list free lock destruction
7976 to ...
7977 (free_team): ... here.
7978
4c1cb4da
MB
79792015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7980
7981 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7982 and ref from int to double. Replaced their comparison with
7983 an inequality of their difference and EPS.
7984 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7985 comparison of pri and a reference number with an inequality of their
7986 difference and EPS.
7987 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7988 the comparison of sum and sum_ref with an inequality of their
7989 difference and EPS.
7990 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7991 the comparison of pri and a reference number with an inequality of
7992 their difference and EPS.
7993
343587dc
MB
79942015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7995
7996 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7997 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7998 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7999 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
8000 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
8001 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
8002 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
8003 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
8004 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
8005 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
8006 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
8007 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
8008 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
8009 variables.
8010 (vec_mult): Likewise. Add #pragma omp taskwait.
8011 (main): Adjust caller.
8012 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
8013 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
8014 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
8015 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
8016 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
8017 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
8018 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
8019 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
8020 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
8021 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
8022 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
8023 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
8024 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
8025 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
8026 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
8027 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
8028 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
8029 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
8030 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
8031 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
8032 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
8033 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
8034 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
8035 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
8036 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
8037 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
8038 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
8039 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
8040 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
8041 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
8042 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
8043 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
8044 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
8045 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
8046 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
8047 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
8048 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
8049 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
8050 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
8051 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
8052 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
8053 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
8054 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
8055 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
8056 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
8057 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
8058 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
8059 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
8060 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
8061 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
8062 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
8063 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
8064 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
8065 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
8066 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
8067 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
8068 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
8069 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
8070 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
8071 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
8072 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
8073 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
8074 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
8075 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
8076 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
8077 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
8078 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
8079 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
8080 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
8081 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
8082 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
8083 (vec_mult): Add !$omp taskwait.
8084 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
8085 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
8086 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
8087 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
8088 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
8089 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
8090 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
8091 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
8092 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
8093 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
8094 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
8095 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
8096 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
8097 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
8098 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
8099 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
8100 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
8101 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
8102 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
8103 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
8104 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
8105 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
8106 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
8107 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
8108 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
8109 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
8110 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
8111 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
8112 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
8113 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
8114 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
8115 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
8116 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
8117 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
8118 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
8119 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
8120 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
8121 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
8122 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
8123 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
8124 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
8125 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
8126 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
8127 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
8128 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
8129 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
8130 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
8131 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
8132 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
8133 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
8134 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
8135 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
8136 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
8137 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
8138 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
8139 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
8140 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
8141 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
8142 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
8143 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
8144 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
8145 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
8146 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
8147 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
8148 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
8149 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
8150 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
8151
9f620bf1
TV
81522015-07-10 Tom de Vries <tom@codesourcery.com>
8153
8154 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
8155 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
8156
a92defda
TS
81572015-07-08 Thomas Schwinge <thomas@codesourcery.com>
8158
8159 PR libgomp/65099
8160 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
8161 in a 64-bit configuration.
8162 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
8163 offloading testing if no such device is available.
8164 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8165 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8166
cadb53a5
TV
81672015-07-08 Tom de Vries <tom@codesourcery.com>
8168
8169 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
8170 second call to f.
8171 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8172
712cb0bb
TV
81732015-07-07 Tom de Vries <tom@codesourcery.com>
8174
8175 PR tree-optimization/66642
8176 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
8177 iteration count case.
8178 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
8179 function, factor out of ...
8180 (main): ... here. Test low iteration count case.
8181
e5210c77
SH
81822015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
8183
8184 * libgomp.h (gomp_thread_pool): Comment last_team field.
8185
f70360e7
UB
81862015-07-02 Uros Bizjak <ubizjak@gmail.com>
8187
8188 * testsuite/libgomp.c++/pr66702-1.C: Require
8189 vect_simd_clones effective target.
8190 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
8191
b451c271
TV
81922015-06-30 Tom de Vries <tom@codesourcery.com>
8193
8194 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8195 already set. Use DEFAULT_CFLAGS in dg-runtest.
8196 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
8197 "-O2".
8198
f8e89d9f
TV
81992015-06-30 Tom de Vries <tom@codesourcery.com>
8200
8201 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
8202 already set. Use DEFAULT_CFLAGS in dg-runtest.
8203 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
8204 * testsuite/libgomp.c++/pr64824.C: Same.
8205 * testsuite/libgomp.c++/pr64868.C: Same.
8206 * testsuite/libgomp.c++/pr66199-1.C: Same.
8207 * testsuite/libgomp.c++/pr66199-2.C: Same.
8208 * testsuite/libgomp.c++/target-2.C: Same.
8209 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
8210 -std=<standard> option.
8211 * testsuite/libgomp.c++/udr-11.C: Same.
8212 * testsuite/libgomp.c++/udr-12.C: Same.
8213 * testsuite/libgomp.c++/udr-13.C: Same.
8214 * testsuite/libgomp.c++/udr-14.C: Same.
8215 * testsuite/libgomp.c++/udr-15.C: Same.
8216 * testsuite/libgomp.c++/udr-16.C: Same.
8217 * testsuite/libgomp.c++/udr-17.C: Same.
8218 * testsuite/libgomp.c++/udr-18.C: Same.
8219 * testsuite/libgomp.c++/udr-19.C: Same.
8220 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
8221 * testsuite/libgomp.c++/simd-1.C: Same.
8222 * testsuite/libgomp.c++/simd-2.C: Same.
8223 * testsuite/libgomp.c++/simd-3.C: Same.
8224 * testsuite/libgomp.c++/simd-4.C: Same.
8225 * testsuite/libgomp.c++/simd-5.C: Same.
8226 * testsuite/libgomp.c++/simd-6.C: Same.
8227 * testsuite/libgomp.c++/simd-7.C: Same.
8228 * testsuite/libgomp.c++/simd-8.C: Same.
8229 * testsuite/libgomp.c++/simd-9.C: Same.
8230 * testsuite/libgomp.c++/simd10.C: Same.
8231 * testsuite/libgomp.c++/simd11.C: Same.
8232 * testsuite/libgomp.c++/simd12.C: Same.
8233 * testsuite/libgomp.c++/simd13.C: Same.
8234
3446fe48
JJ
82352015-06-30 Jakub Jelinek <jakub@redhat.com>
8236
8237 PR middle-end/66702
8238 * testsuite/libgomp.c++/pr66702-1.C: New test.
8239 * testsuite/libgomp.c++/pr66702-2.C: New test.
8240
8a36714a
TV
82412015-06-30 Tom de Vries <tom@codesourcery.com>
8242
8243 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
8244 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
8245 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
8246 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
8247
4f75d608
TV
82482015-06-30 Tom de Vries <tom@codesourcery.com>
8249
8250 PR tree-optimization/66652
8251 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
8252 using restrict pointers.
8253 (main): Add arguments to calls to f.
8254 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8255
6d9d1eeb
AT
82562015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
8257
8258 * configure.ac: Fix check for header <sys/sysctl.h>.
8259 * configure: Regenerate.
8260 * config.h.in: Likewise.
8261
1222f22b
TV
82622015-06-23 Tom de Vries <tom@codesourcery.com>
8263
8264 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
8265 abort.
8266 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
8267
d7efbbf6
TS
82682015-06-19 Thomas Schwinge <thomas@codesourcery.com>
8269
bfcd036f
TS
8270 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
8271 acc_device_nvidia.
8272
d7efbbf6
TS
8273 PR libgomp/66518
8274 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
8275 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8276
d7bfc710
TV
82772015-06-15 Tom de Vries <tom@codesourcery.com>
8278
8279 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
8280 dg-additional-options for any remaining options.
8281 * testsuite/libgomp.c/atomic-2.c: Same.
8282 * testsuite/libgomp.c/atomic-4.c: Same.
8283 * testsuite/libgomp.c/atomic-5.c: Same.
8284 * testsuite/libgomp.c/atomic-6.c: Same.
8285 * testsuite/libgomp.c/autopar-1.c: Same.
8286 * testsuite/libgomp.c/copyin-1.c: Same.
8287 * testsuite/libgomp.c/copyin-2.c: Same.
8288 * testsuite/libgomp.c/copyin-3.c: Same.
8289 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
8290 * testsuite/libgomp.c/nestedfn-5.c: Same.
8291 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
8292 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
8293 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
8294 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8295 * testsuite/libgomp.c/pr32362-1.c: Same.
8296 * testsuite/libgomp.c/pr32362-2.c: Same.
8297 * testsuite/libgomp.c/pr32362-3.c: Same.
8298 * testsuite/libgomp.c/pr39591-1.c: Same.
8299 * testsuite/libgomp.c/pr39591-2.c: Same.
8300 * testsuite/libgomp.c/pr39591-3.c: Same.
8301 * testsuite/libgomp.c/pr58392.c: Same.
8302 * testsuite/libgomp.c/pr58756.c: Same.
8303 * testsuite/libgomp.c/simd-1.c: Same.
8304 * testsuite/libgomp.c/simd-10.c: Same.
8305 * testsuite/libgomp.c/simd-11.c: Same.
8306 * testsuite/libgomp.c/simd-12.c: Same.
8307 * testsuite/libgomp.c/simd-13.c: Same.
8308 * testsuite/libgomp.c/simd-14.c: Same.
8309 * testsuite/libgomp.c/simd-15.c: Same.
8310 * testsuite/libgomp.c/simd-2.c: Same.
8311 * testsuite/libgomp.c/simd-3.c: Same.
8312 * testsuite/libgomp.c/simd-4.c: Same.
8313 * testsuite/libgomp.c/simd-5.c: Same.
8314 * testsuite/libgomp.c/simd-6.c: Same.
8315 * testsuite/libgomp.c/simd-7.c: Same.
8316 * testsuite/libgomp.c/simd-8.c: Same.
8317 * testsuite/libgomp.c/simd-9.c: Same.
8318
fb5b5352
TV
83192015-06-15 Tom de Vries <tom@codesourcery.com>
8320
8321 * testsuite/libgomp.c/pr35625.c: Fix typo.
8322
ca431bef
TV
83232015-06-15 Tom de Vries <tom@codesourcery.com>
8324
8325 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
8326 in dg-options.
8327 * testsuite/libgomp.c/atomic-3.c: Same.
8328 * testsuite/libgomp.c/debug-1.c: Same.
8329 * testsuite/libgomp.c/nqueens-1.c: Same.
8330 * testsuite/libgomp.c/pr26171.c: Same.
8331 * testsuite/libgomp.c/pr48591.c: Same.
8332 * testsuite/libgomp.c/pr64824.c: Same.
8333 * testsuite/libgomp.c/pr64868.c: Same.
8334 * testsuite/libgomp.c/pr66133.c: Same.
8335 * testsuite/libgomp.c/pr66199-1.c: Same.
8336 * testsuite/libgomp.c/pr66199-2.c: Same.
8337 * testsuite/libgomp.c/target-8.c: Same.
8338
0d8a9e20
TV
83392015-06-15 Tom de Vries <tom@codesourcery.com>
8340
8341 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
8342 -std={gnu99,c99}.
8343 * testsuite/libgomp.c/for-1.c: Same.
8344 * testsuite/libgomp.c/for-2.c: Same.
8345 * testsuite/libgomp.c/for-3.c: Same.
8346 * testsuite/libgomp.c/pr35625.c: Same.
8347 * testsuite/libgomp.c/pr39154.c: Same.
8348 * testsuite/libgomp.c/simd-16.c: Same.
8349 * testsuite/libgomp.c/simd-17.c: Same.
8350
a6860be9
TV
83512015-06-13 Tom de Vries <tom@codesourcery.com>
8352
8353 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
8354
ab3306d2
TV
83552015-06-13 Tom de Vries <tom@codesourcery.com>
8356
8357 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
8358 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8359 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
8360 (N): Define.
8361 (main): Use N instead of hardcoded constants.
8362
7c82d827
TV
83632015-06-05 Tom de Vries <tom@codesourcery.com>
8364
8365 merge from gomp4 branch:
8366 2015-05-28 Tom de Vries <tom@codesourcery.com>
8367
8368 PR tree-optimization/65443
8369 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
8370 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
8371 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
8372
c469078d
BRF
83732015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8374
8375 * testsuite/libgomp.graphite/bounds.c: Adjust for
8376 cleanup-tree-dump removal.
8377 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
8378 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8379 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8380 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8381 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8382 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8383 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8384 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8385 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8386 * testsuite/libgomp.graphite/pr41118.c: Likewise.
8387
bb3caa35
UB
83882015-05-28 Uros Bizjak <ubizjak@gmail.com>
8389
8390 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
8391 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8392 (futex_wake) [!__x86_64__]: Ditto.
8393
9fb5fd44
JB
83942015-05-28 Julian Brown <julian@codesourcery.com>
8395
8396 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8397 function comment. Only call gomp_fatal if new argument is true.
8398 (acc_dev_num_out_of_range): New function.
8399 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8400 acc_dev_num_out_of_range as appropriate.
8401 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
bb3caa35
UB
8402 (acc_get_device_num, acc_set_device_num): Update calls to
8403 resolve_device.
9fb5fd44
JB
8404 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8405 output.
8406
32eaed93
JB
84072015-05-28 Julian Brown <julian@codesourcery.com>
8408
8409 PR libgomp/65742
32eaed93
JB
8410 * oacc-init.c (plugin/plugin-host.h): Include.
8411 (acc_on_device): Check whether we're in an offloaded region for
8412 host_nonshm
8413 plugin. Don't use __builtin_acc_on_device.
8414 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8415 nonshm_exec flag in thread-local data.
8416 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8417 data for host_nonshm plugin.
8418 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8419 for host_nonshm plugin.
8420 * plugin/plugin-host.h: New.
8421
ea023bcf
UB
84222015-05-27 Uros Bizjak <ubizjak@gmail.com>
8423
8ed501f1
UB
8424 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8425
84262015-05-27 Uros Bizjak <ubizjak@gmail.com>
8427
8428 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8429 Declare as int.
8430 (FUTEX_PRIVATE_FLAG): Remove L suffix.
8431 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8432 Declare as int.
8433
84342015-05-27 Uros Bizjak <ubizjak@gmail.com>
8435
bb3caa35 8436 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
ea023bcf 8437
1716efeb
CLT
84382015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
8439
8440 * target.c (gomp_map_pointer): New function abstracting out
8441 GOMP_MAP_POINTER handling.
8442 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8443 gomp_map_pointer().
8444
41b37d5e
JJ
84452015-05-19 Jakub Jelinek <jakub@redhat.com>
8446
8447 PR middle-end/66199
8448 * testsuite/libgomp.c/pr66199-1.c: New test.
8449 * testsuite/libgomp.c/pr66199-2.c: New test.
8450 * testsuite/libgomp.c++/pr66199-1.C: New test.
8451 * testsuite/libgomp.c++/pr66199-2.C: New test.
8452 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8453 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8454
c8319826
JB
84552015-05-19 Julian Brown <julian@codesourcery.com>
8456
8457 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8458 on cuInit failure.
8459
b37dddbc
JJ
84602015-05-13 Jakub Jelinek <jakub@redhat.com>
8461
8462 PR middle-end/66133
8463 * testsuite/libgomp.c/pr66133.c: New test.
8464
55fba601
MH
84652015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8466
8467 * Makefile.in: Regenerated with automake-1.11.6.
8468 * aclocal.m4: Likewise.
8469 * config.h.in: Likewise.
8470 * configure: Likewise.
8471 * testsuite/Makefile.in: Likewise.
8472
1be0899d
JM
84732015-05-08 Jason Merrill <jason@redhat.com>
8474
8475 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8476 _Complex.
8477
8478 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8479
d2463960
JB
84802015-05-06 Julian Brown <julian@codesourcery.com>
8481
8482 * oacc-init.c (acc_device_lock): Add explanatory comment.
8483 (resolve_device): Add comment about locking requirement.
8484 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8485 gomp_init_device and gomp_fini_device calls.
8486 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8487 (acc_get_device_num, acc_set_device_num): Add locking around
8488 resolve_device and gomp_init_device calls.
8489
e38fdba4
JB
84902015-05-06 Julian Brown <julian@codesourcery.com>
8491
8492 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8493 goacc_thread_lock on error paths.
8494 * oacc-mem.c (lookup_host): Remove locking from function. Note
8495 locking requirement for caller in function comment.
8496 (lookup_dev): Likewise.
8497 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8498 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8499 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8500 Add locking.
8501
ae8ffbbb
TS
85022015-05-05 Thomas Schwinge <thomas@codesourcery.com>
8503
8504 PR testsuite/65205
8505 PR libgomp/65993
8506 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8507 don't expect "0x" prefix for "%p" format specifier, don't expect
8508 "(nil)" for NULL pointer.
8509 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8510 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8511 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8512 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8513 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8514 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8515 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8516 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8517 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8518 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8519 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8520 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8521 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8522 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8523 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8524 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8525 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8526 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8527 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8528 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8529 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8530 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8531 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8532 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8533 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8534 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8535 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8536 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8537 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8538 accurately specify what we're looking for.
8539 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8540 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8541 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8542 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8543 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8544
1309f1d2
JN
85452015-04-30 James Norris <jnorris@codesourcery.com>
8546
8547 PR testsuite/65205
8548 * testsuite/lib/libgomp.exp
8549 (check_effective_target_openacc_host_selected)
8550 (check_effective_target_openacc_host_nonshm_selected): New
8551 procedures.
8552 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8553 dg-shouldfail.
8554 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8555 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8556 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8557 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8558 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8559 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8560 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8561 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8562 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8563 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8564 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8565 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8566 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8567 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8568 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8569 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8570 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8571 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8572 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8573 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8574 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8575 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8576 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8577 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8578 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8579 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8580 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8581 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8582 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8583 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8584 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8585 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8586 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8587 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8588 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8589 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8590 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8591 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8592 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8593 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8594 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8595 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8596 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8597
d93bdab5
JB
85982015-04-08 Julian Brown <julian@codesourcery.com>
8599
8600 * libgomp.h (target_mem_desc: Remove mem_map field.
8601 (acc_dispatch_t): Remove open_device_func, close_device_func,
8602 get_device_num_func, set_device_num_func, target_data members.
8603 Change create_thread_data_func argument to device number instead of
8604 generic pointer.
8605 * oacc-async.c (assert.h): Include.
8606 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8607 (acc_wait_all, acc_wait_all_async): Use current host thread's
8608 active device, not base_dev.
8609 * oacc-cuda.c (acc_get_current_cuda_device)
8610 (acc_get_current_cuda_context, acc_get_cuda_stream)
8611 (acc_set_cuda_stream): Likewise.
8612 * oacc-host.c (host_dispatch): Don't set open_device_func,
8613 close_device_func, get_device_num_func or set_device_num_func.
8614 * oacc-init.c (base_dev, init_key): Remove.
8615 (cached_base_dev): New.
8616 (name_of_acc_device_t): New.
8617 (acc_init_1): Initialise default-numbered device, not zeroth.
8618 (acc_shutdown_1): Close all devices of a given type.
8619 (goacc_destroy_thread): Don't use base_dev.
8620 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8621 (goacc_attach_host_thread_to_device): New.
8622 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8623 (acc_get_num_devices): Don't use base_dev.
8624 (acc_set_device_type): Reimplement.
8625 (acc_get_device_type): Don't use base_dev.
8626 (acc_get_device_num): Tweak logic.
8627 (acc_set_device_num): Likewise.
8628 (acc_on_device): Use acc_get_device_type.
8629 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8630 (goacc_lazy_initialize): Reimplement with acc_init and
8631 goacc_attach_host_thread_to_device.
8632 * oacc-int.h (goacc_thread): Add base_dev field.
8633 (base_dev): Remove extern declaration.
8634 (goacc_attach_host_thread_to_device): Add prototype.
8635 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8636 base_dev.
8637 (acc_free): Likewise.
8638 (acc_memcpy_to_device): Likewise.
8639 (acc_memcpy_from_device): Likewise.
8640 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8641 goacc_lazy_initialize (throughout).
8642 (GOACC_parallel): Use tgt_offset to locate target functions.
8643 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8644 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8645 (gomp_load_plugin_for_device): Remove open_device, close_device,
8646 get_device_num, set_device_num openacc hook initialisation. Don't set
8647 openacc.target_data.
8648 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8649 (GOMP_OFFLOAD_openacc_close_device)
8650 (GOMP_OFFLOAD_openacc_get_device_num)
8651 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8652 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8653 to int.
8654 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8655 (instantiated_devices, ptx_dev_lock): New.
8656 (struct ptx_image_data): New.
8657 (ptx_devices, ptx_images, ptx_image_lock): New.
8658 (fini_streams_for_device): Reorder cuStreamDestroy call.
8659 (nvptx_get_num_devices): Remove forward declaration.
8660 (nvptx_init): Change return type to bool.
8661 (nvptx_fini): Remove.
8662 (nvptx_attach_host_thread_to_device): New.
8663 (nvptx_open_device): Return struct ptx_device* instead of void*.
8664 (nvptx_close_device): Change argument type to struct ptx_device*,
8665 return type to void.
8666 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8667 (kernel_target_data, kernel_host_table): Remove static globals.
8668 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8669 (GOMP_OFFLOAD_init_device): Reimplement.
8670 (GOMP_OFFLOAD_fini_device): Likewise.
8671 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8672 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8673 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8674 (GOMP_OFFLOAD_openacc_open_device)
8675 (GOMP_OFFLOAD_openacc_close_device)
8676 (GOMP_OFFLOAD_openacc_set_device_num)
8677 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8678 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8679 (device number).
8680
8681 testsuite/
8682 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8683
a51df54e
IV
86842015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8685
8686 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8687 * libgomp.h (struct gomp_memory_mapping): Remove.
8688 (struct target_mem_desc): Change type of mem_map from
8689 gomp_memory_mapping * to splay_tree_s *.
8690 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8691 Add load_image_func, unload_image_func.
8692 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8693 Remove offload_regions_registered.
8694 (gomp_init_tables): Remove.
8695 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8696 to splay_tree_s *.
8697 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8698 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8699 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8700 offload_regions_registered.
8701 Initialize load_image_func, unload_image_func, mem_map.root.
8702 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8703 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8704 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8705 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8706 gomp_memory_mapping *. Use dev's lock and splay_tree.
8707 (lookup_dev): Use dev's lock.
8708 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8709 (acc_is_present): Likewise.
8710 (acc_map_data): Likewise.
8711 (acc_unmap_data): Likewise. Use dev's lock.
8712 (present_create_copy): Likewise.
8713 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8714 (update_dev_host): Likewise.
8715 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8716 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8717 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8718 (GOMP_OFFLOAD_get_table): Remove
8719 (GOMP_OFFLOAD_load_image): New function.
8720 (GOMP_OFFLOAD_unload_image): New function.
8721 * target.c (register_lock): New mutex for offload image registration.
8722 (num_devices): Do not guard with PLUGIN_SUPPORT.
8723 (gomp_realloc_unlock): New static function.
8724 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8725 before gomp_fatal.
8726 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8727 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8728 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8729 mem_map's.
8730 (gomp_unmap_vars): Likewise.
8731 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8732 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8733 (gomp_offload_image_to_device): New static function.
8734 (GOMP_offload_register): Add mutex lock.
8735 Call gomp_offload_image_to_device for all initialized devices.
8736 Replace gomp_realloc with gomp_realloc_unlock.
8737 (GOMP_offload_unregister): New function.
8738 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8739 get_table_func from the plugin with calls to init_device_func and
8740 gomp_offload_image_to_device.
8741 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8742 to splay_tree_s *.
8743 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8744 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8745 (GOMP_target_data): Do not call gomp_init_tables.
8746 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8747 (gomp_load_plugin_for_device): Replace register_image and get_table
8748 with load_image and unload_image in DLSYM ().
8749 (gomp_register_images_for_device): Remove function.
8750 (gomp_target_init): Do not initialize current_device.mem_map.*,
8751 current_device.offload_regions_registered.
8752 Remove call to gomp_register_images_for_device.
8753 Do not free offload_images and num_offload_images.
8754
6c384511
JJ
87552015-03-30 Jakub Jelinek <jakub@redhat.com>
8756
8757 PR fortran/65597
8758 * testsuite/libgomp.fortran/pr65597.f90: New test.
8759
3e8165a5
TV
87602015-03-27 Tom de Vries <tom@codesourcery.com>
8761
8762 PR testsuite/65594
8763 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8764 (init, check): New function.
8765 (foo): Change return type to void.
8766 (main): Call init and check.
8767
4d688c9a
TV
87682015-03-27 Tom de Vries <tom@codesourcery.com>
8769
8770 PR testsuite/65594
8771 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8772 (foo): Use M for non-inner loops to scale down test-case.
8773
01c0b3b0
KT
87742015-03-25 Kai Tietz <ktietz@redhat.com>
8775
8776 PR libgomp/64972
8777 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8778 (GOACC_data_start): Likewise.
8779 * target.c (gomp_map_vars): Likewise.
8780
844d9a76
JDA
87812015-03-21 John David Anglin <danglin@gcc.gnu.org>
8782
8783 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8784 hppa*-*-hpux*.
8785
9b65e171
JJ
87862015-03-19 Jakub Jelinek <jakub@redhat.com>
8787
8788 * testsuite/libgomp.c/target-10.c: New test.
8789 * testsuite/libgomp.c++/target-4.C: New test.
8790
db397e2e
IV
87912015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8792
8793 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8794 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8795
cd93945d
SH
87962015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8797
8798 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8799 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8800 (pthread.h): Check for this header file.
8801 * configure: Regenerate.
8802
05deba9f
TV
88032015-02-25 Tom de Vries <tom@codesourcery.com>
8804
8805 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8806 (check_reduction_op, check_reduction_macro, max, min):
8807 Declare.
8808 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8809 function.
8810 (main): Use new functions.
8811
196904d8
IT
88122015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8813
8814 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8815 char * for variables holding dlerror return values.
8816 (DLSYM_OPT): Ditto.
8817
a2818955
TS
88182015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8819
8820 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8821
26f93312
TS
88222015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8823 Cesar Philippidis <cesar@codesourcery.com>
8824
8825 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8826 GOACC_ctaid, and GOACC_nctaid routines.
8827
fa01ffcc
JJ
88282015-02-11 Jakub Jelinek <jakub@redhat.com>
8829
8830 PR c/64824
8831 * testsuite/libgomp.c/atomic-18.c: New test.
8832 * testsuite/libgomp.c++/atomic-16.C: New test.
8833
4886ec8e
JJ
88342015-02-04 Jakub Jelinek <jakub@redhat.com>
8835
8836 PR c/64824
8837 PR c/64868
8838 * testsuite/libgomp.c/pr64824.c: New test.
8839 * testsuite/libgomp.c/pr64868.c: New test.
8840 * testsuite/libgomp.c++/pr64824.C: New test.
8841 * testsuite/libgomp.c++/pr64868.C: New test.
8842
02d3e45e
DE
88432015-02-01 David Edelsohn <dje.gcc@gmail.com>
8844
8845 PR libgomp/64635
8846 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8847 Link with -lpthread.
8848 * config/aix/plugin-suffix.h: Delete.
8849
b5f7a6ca
JH
88502015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8851
8852 PR libgomp/64635
8853 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8854 (*-*-darwin*): Use config_path "bsd darwin posix".
8855 (*-*-hpux*): Use config_path "hpux posix".
8856 * target.c: Add include of plugin-suffix.h and use
8857 SONAME_SUFFIX macro.
8858 * config/aix/plugin-suffix.h: New file.
8859 * config/darwin/plugin-suffix.h: New file.
8860 * config/hpux/plugin-suffix.h: New file.
8861 * config/posix/plugin-suffix.h: New file.
8862
b8910447
JJ
88632015-01-23 Jakub Jelinek <jakub@redhat.com>
8864
8865 PR middle-end/64734
8866 * libgomp.c/pr64734.c: New test.
8867
a0c88d06
TV
88682015-01-23 Tom de Vries <tom@codesourcery.com>
8869
8870 PR libgomp/64672
8871 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8872
1506ae0e
TV
88732015-01-23 Tom de Vries <tom@codesourcery.com>
8874
8875 PR libgomp/64707
8876 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8877 dg-options.
8878
128b26dc
TS
88792015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8880
bed62c21 8881 PR libgomp/64625
128b26dc
TS
8882 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8883 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8884 formal parameter. Update all users.
8885 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8886 Document unused formal parameter.
8887
6e36114c
TS
88882015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8889
8890 * oacc-parallel.c: Don't include <alloca.h>.
8891 (GOACC_parallel): Use gomp_alloca instead of alloca.
8892
973e9808
GP
88932015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8894
8895 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8896
41dbbb37
TS
88972015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8898 James Norris <jnorris@codesourcery.com>
8899 Tom de Vries <tom@codesourcery.com>
8900 Julian Brown <julian@codesourcery.com>
8901 Cesar Philippidis <cesar@codesourcery.com>
8902 Nathan Sidwell <nathan@codesourcery.com>
8903 Tobias Burnus <burnus@net-b.de>
8904
8905 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8906 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8907 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8908 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8909 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8910 Include $(top_srcdir)/plugin/Makefrag.am.
8911 (nodist_libsubinclude_HEADERS): Add openacc.h.
8912 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8913 openacc.f90, openacc.mod, openacc_kinds.mod.
8914 (omp_lib.mod): Generalize into...
8915 (%.mod): ... this new rule.
8916 (openacc_kinds.mod, openacc.mod): New rules.
8917 * plugin/configfrag.ac: New file.
8918 * configure.ac: Move plugin/offloading support into it. Include
8919 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8920 * plugin/Makefrag.am: New file.
8921 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8922 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8923 export.
8924 (libgomp-test-support.exp): New rule.
8925 (all-local): Depend on it.
8926 * Makefile.in: Regenerate.
8927 * testsuite/Makefile.in: Regenerate.
8928 * config.h.in: Likewise.
8929 * configure: Likewise.
8930 * configure.tgt: Harden shell syntax.
8931 * env.c: Include "oacc-int.h".
8932 (parse_acc_device_type): New function.
8933 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8934 variables.
8935 (initialize_env): Initialize those. Call
8936 goacc_runtime_initialize.
8937 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8938 (gomp_fatal): Call gomp_vfatal.
8939 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8940 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8941 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8942 (splay_tree_node, splay_tree, splay_tree_key)
8943 (struct target_mem_desc, struct splay_tree_key_s)
8944 (struct gomp_memory_mapping, struct acc_dispatch_t)
8945 (struct gomp_device_descr, gomp_acc_insert_pointer)
8946 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8947 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8948 (gomp_free_memmap, gomp_fini_device): New declarations.
8949 (gomp_vdebug, gomp_debug): New macros.
8950 Include "splay-tree.h".
8951 * libgomp.map (OACC_2.0): New symbol version. Use for
8952 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8953 acc_set_device_type_h_, acc_get_device_type,
8954 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8955 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8956 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8957 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8958 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8959 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8960 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8961 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8962 acc_copyin_array_h_, acc_present_or_copyin,
8963 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8964 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8965 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8966 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8967 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8968 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8969 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8970 acc_update_device, acc_update_device_32_h_,
8971 acc_update_device_64_h_, acc_update_device_array_h_,
8972 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8973 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8974 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8975 acc_is_present_64_h_, acc_is_present_array_h_,
8976 acc_memcpy_to_device, acc_memcpy_from_device,
8977 acc_get_current_cuda_device, acc_get_current_cuda_context,
8978 acc_get_cuda_stream, acc_set_cuda_stream.
8979 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8980 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8981 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8982 GOACC_get_num_threads.
8983 (GOMP_PLUGIN_1.0): New symbol version. Use for
8984 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8985 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8986 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8987 GOMP_PLUGIN_acc_thread.
8988 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8989 environment variable.
8990 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8991 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8992 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8993 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8994 (splay_tree_remove): New declarations.
8995 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8996 (splay_tree_remove, splay_tree_lookup): Move into...
8997 * splay-tree.c: ... this new file.
8998 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8999 (splay_tree_node, splay_tree, splay_tree_key)
9000 (struct target_mem_desc, struct splay_tree_key_s)
9001 (struct gomp_device_descr): Don't declare.
9002 (num_devices_openmp): New variable.
9003 (gomp_get_num_devices ): Use it.
9004 (gomp_init_targets_once): New function.
9005 (gomp_get_num_devices ): Use it.
9006 (get_kind, gomp_copy_from_async, gomp_free_memmap)
9007 (gomp_fini_device, gomp_register_image_for_device): New functions.
9008 (gomp_map_vars): Add devaddrs parameter.
9009 (gomp_update): Add mm parameter.
9010 (gomp_init_device): Move most of it into...
9011 (gomp_init_tables): ... this new function.
9012 (gomp_register_images_for_device): Remove function.
9013 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
9014 Make them hidden instead of static.
9015 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
9016 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
9017 (GOMP_target_end_data, GOMP_target_update)
9018 (gomp_load_plugin_for_device, gomp_target_init): Update for
9019 OpenACC changes.
9020 * oacc-async.c: New file.
9021 * oacc-cuda.c: Likewise.
9022 * oacc-host.c: Likewise.
9023 * oacc-init.c: Likewise.
9024 * oacc-int.h: Likewise.
9025 * oacc-mem.c: Likewise.
9026 * oacc-parallel.c: Likewise.
9027 * oacc-plugin.c: Likewise.
9028 * oacc-plugin.h: Likewise.
9029 * oacc-ptx.h: Likewise.
9030 * openacc.f90: Likewise.
9031 * openacc.h: Likewise.
9032 * openacc_lib.h: Likewise.
9033 * plugin/plugin-host.c: Likewise.
9034 * plugin/plugin-nvptx.c: Likewise.
9035 * libgomp-plugin.c: Likewise.
9036 * libgomp-plugin.h: Likewise.
9037 * libgomp_target.h: Remove file after merging content into the
9038 former file. Update all users.
9039 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
9040 (offload_targets_s, offload_targets_s_openacc): New variables.
9041 (check_effective_target_openacc_nvidia_accel_present)
9042 (check_effective_target_openacc_nvidia_accel_selected): New
9043 procedures.
9044 (libgomp_init): Update for OpenACC changes.
9045 * testsuite/libgomp-test-support.exp.in: New file.
9046 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9047 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9048 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9049 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
9050 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
9051 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9052 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
9053 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
9054 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
9055 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
9056 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
9057 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
9058 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
9059 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9060 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
9061 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
9062 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
9063 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
9064 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
9065 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
9066 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
9067 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9068 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9069 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
9070 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9071 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9072 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9073 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9074 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9075 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9076 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9077 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
9078 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
9079 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
9080 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
9081 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9082 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9083 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9084 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
9085 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
9086 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
9087 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
9088 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9089 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9090 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9091 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
9092 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9093 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9094 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9095 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9096 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9097 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
9098 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9099 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9100 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9101 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9102 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9103 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9104 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9105 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
9106 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9107 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
9108 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9109 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9110 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9111 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
9112 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
9113 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9114 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9115 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9116 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
9117 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9118 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9119 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9120 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
9121 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
9122 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9123 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9124 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
9125 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
9126 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
9127 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
9128 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9129 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9130 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9131 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
9132 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
9133 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9134 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9135 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
9136 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
9137 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
9138 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
9139 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9140 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9141 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9142 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9143 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
9144 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9145 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9146 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
9147 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
9148 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
9149 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9150 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
9151 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
9152 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
9153 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
9154 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
9155 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9156 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
9157 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9158 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9159 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
9160 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
9161 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9162 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
9163 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9164 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
9165 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
9166 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
9167 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
9168 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9169 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
9170 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
9171 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
9172 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
9173 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
9174 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
9175 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
9176 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
9177 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
9178 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9179 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
9180 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9181 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9182 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9183 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9184 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9185 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
9186 Likewise.
9187 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
9188 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
9189 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
9190 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
9191 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
9192 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9193 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9194 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9195 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9196 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9197 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9198 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9199 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9200 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
9201 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
9202 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
9203 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
9204 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
9205 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
9206 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
9207 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
9208 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9209 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9210 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9211 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9212 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9213 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9214 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9215 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9216 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9217 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9218 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9219 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9220 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9221 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9222 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9223 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9224 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9225 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9226 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9227 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9228 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9229 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9230 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9231 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9232 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9233 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9234 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9235 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9236 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9237 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9238 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9239 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9240 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9241 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9242 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9243 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9244 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9245 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9246 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9247
f1f3453e
TS
92482015-01-10 Thomas Schwinge <thomas@codesourcery.com>
9249 Julian Brown <julian@codesourcery.com>
9250 David Malcolm <dmalcolm@redhat.com>
9251
9252 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
9253 to "GNU Offloading and Multi Processing Runtime Library". Change
9254 all users.
9255 * configure: Regenerate.
9256 * libgomp.texi: Update.
9257
f9a0eca4
TS
92582015-01-08 Thomas Schwinge <thomas@codesourcery.com>
9259
b335ef4e
TS
9260 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
9261 "$tgt_dir/lib32".
9262 * configure: Regenerate.
9263
f9a0eca4
TS
9264 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
9265 "intelmic" in $offload_targets.
9266
b67cd4e3
JJ
92672015-01-05 Jakub Jelinek <jakub@redhat.com>
9268
5624e564
JJ
9269 Update copyright years.
9270
b67cd4e3
JJ
9271 * libgomp.texi: Bump @copying's copyright year.
9272
3b41b583
KT
92732014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9274
9275 * testsuite/lib/libgomp.exp: Load target-utils.exp.
93d90219 9276 Move load of target-supports.exp earlier.
3b41b583 9277
2354caec
IV
92782014-12-10 Ilya Verbin <ilya.verbin@intel.com>
9279
9280 * testsuite/libgomp.c/target-9.c: New test.
9281
f50eecba
VR
92822014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
9283
9284 * config.h.in: Regenerate.
9285 * configure: Regenerate.
9286 * configure.ac: Add GCC_CHECK_EMUTLS.
9287 * libgomp.h: Add check for USE_EMUTLS: this case
9288 is equal to HAVE_TLS.
9289 * team.c: Likewise.
9290
68bc9270
UB
92912014-12-03 Uros Bizjak <ubizjak@gmail.com>
9292
9293 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
9294
476ff787
AT
92952014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
9296 Ilya Verbin <ilya.verbin@intel.com>
9297
9298 * testsuite/libgomp.c/target-critical-1.c: New test.
9299
31a30e62
JJ
93002014-11-26 Jakub Jelinek <jakub@redhat.com>
9301
9302 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
68bc9270 9303 to dg-options unless expensive testing is on.
31a30e62
JJ
9304 (TESTITERS): Define to N if not defined.
9305 (main): Use TESTITERS instead of N.
9306 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
9307 dg-additional-options depending on whether expensive testing is on.
9308 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
9309 Decrease N to 100000 and CHUNKSZ to 10000.
9310
3f9e8f13
JJ
93112014-11-24 Jakub Jelinek <jakub@redhat.com>
9312
9313 PR fortran/63938
31a30e62
JJ
9314 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
9315 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3f9e8f13 9316
c8451a46
SE
93172014-11-21 Steve Ellcey <sellcey@imgtec.com>
9318
9319 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
9320
a699d672
L
93212014-11-21 H.J. Lu <hongjiu.lu@intel.com>
9322
9323 PR bootstrap/63784
9324 * configure: Regenerated.
9325
4a19f719
UB
93262014-11-19 Uros Bizjak <ubizjak@gmail.com>
9327
9328 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
9329 vect_simd_clones effective target.
9330 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9331
b1bf6c52
JJ
93322014-11-14 Jakub Jelinek <jakub@redhat.com>
9333
9334 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
9335 of 32 as block_size.
9336 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
9337 instead of 32 as block_size.
9338
d64ae614
AT
93392014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9340 Ilya Verbin <ilya.verbin@intel.com>
9341
9342 * Makefile.in: Regenerate.
9343 * configure: Regenerate.
9344 * configure.ac: Set up offload_additional_options,
9345 offload_additional_lib_paths and offload_targets.
9346 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
9347 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
9348 * testsuite/Makefile.in: Regenerate.
9349 * testsuite/lib/libgomp.exp (libgomp_init): Append
9350 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
9351 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
9352 build directory to LD_LIBRARY_PATH for intelmic offload targets.
9353
122d7303
AT
93542014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
9355 Ilya Verbin <ilya.verbin@intel.com>
9356 Kirill Yukhin <kirill.yukhin@intel.com>
9357 Ilya Tocar <ilya.tocar@intel.com>
9358
9359 * testsuite/lib/libgomp.exp
9360 (check_effective_target_offload_device): New.
9361 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
9362 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
9363 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
9364 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
9365 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
9366 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
9367 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
9368 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
9369 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
9370 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
9371 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
9372 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
9373 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
9374 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
9375 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
9376 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
9377 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
9378 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
9379 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
9380 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
9381 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
9382 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
9383 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
9384 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
9385 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
9386 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
9387 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
9388 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
9389 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
9390 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
9391 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9392 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9393 * testsuite/libgomp.c/target-7.c: Fix test.
9394 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9395 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9396 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9397 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9398 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9399 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9400 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9401 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9402 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9403 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9404 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9405 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9406 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9407 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9408 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9409 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9410 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9411 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9412 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9413 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9414 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9415 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9416 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9417 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9418 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9419 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9420 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9421 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9422 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9423 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9424 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9425
1df3f842
JJ
94262014-11-13 Jakub Jelinek <jakub@redhat.com>
9427 Ilya Verbin <ilya.verbin@intel.com>
9428 Thomas Schwinge <thomas@codesourcery.com>
9429 Andrey Turetskiy <andrey.turetskiy@intel.com>
9430
9431 * libgomp.map (GOMP_4.0.1): New symbol version.
9432 Add GOMP_offload_register.
9433 * libgomp_target.h: New file.
9434 * splay-tree.h: New file.
9435 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9436 (gomp_target_init): New forward declaration.
9437 (gomp_is_initialized): New static variable.
9438 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9439 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9440 New structures.
9441 (offload_images, num_offload_images, devices, num_devices): New static
9442 variables.
9443 (splay_compare): New static function.
9444 (struct gomp_device_descr): New structure.
9445 (gomp_get_num_devices): Call gomp_target_init.
9446 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9447 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9448 (GOMP_offload_register): New function.
9449 (GOMP_target): Arrange for host callback to be performed in a separate
9450 initial thread and contention group, inheriting ICVs from
9451 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
9452 Add device initialization and lookup for target function in splay tree.
9453 (GOMP_target_data): Add device initialization and call gomp_map_vars.
9454 (GOMP_target_end_data): Call gomp_unmap_vars.
9455 (GOMP_target_update): Add device initialization and call gomp_update.
9456 (gomp_load_plugin_for_device, gomp_register_images_for_device)
9457 (gomp_target_init): New static functions.
9458
85c64bbe
BS
94592014-11-13 Bernd Schmidt <bernds@codesourcery.com>
9460 Thomas Schwinge <thomas@codesourcery.com>
9461 Ilya Verbin <ilya.verbin@intel.com>
9462 Andrey Turetskiy <andrey.turetskiy@intel.com>
9463
9464 * config.h.in: Regenerate.
9465 * configure: Regenerate.
9466 * configure.ac: Check for libdl, required for plugin support.
9467 (PLUGIN_SUPPORT): Define if plugins are supported.
9468 (enable_offload_targets): Support Intel MIC targets.
9469 (OFFLOAD_TARGETS): List of target names suitable for offloading.
9470
ebf6d33b
FXC
94712014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9472
9473 PR target/63610
9474 * configure: Regenerate.
9475
8c768629
RO
94762014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9477
9478 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9479
c1d62412
MP
94802014-10-06 Marek Polacek <polacek@redhat.com>
9481
9482 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9483 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9484 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9485 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9486
44a0c6cb
MP
94872014-10-06 Marek Polacek <polacek@redhat.com>
9488
9489 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9490 * testsuite/libgomp.c/nqueens-1.c: Likewise.
9491 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9492 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9493 * testsuite/libgomp.c/pr36802-2.c: Likewise.
9494 * testsuite/libgomp.c/pr36802-3.c: Likewise.
9495 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9496 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9497 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9498 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9499 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9500 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9501 * testsuite/libgomp.c/omp-single-1.c: Likewise.
9502 * testsuite/libgomp.c/omp-single-2.c: Likewise.
9503 * testsuite/libgomp.c/omp_matvec.c: Likewise.
9504 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9505 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9506 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
9507 declarations.
9508
5771c391
JJ
95092014-10-03 Jakub Jelinek <jakub@redhat.com>
9510
9511 PR libgomp/61200
9512 * testsuite/libgomp.c/pr61200.c: New test.
9513
bce16b88
JJ
95142014-09-18 Jakub Jelinek <jakub@redhat.com>
9515
9516 PR c++/63248
9517 * testsuite/libgomp.c++/pr63248.C: New test.
9518
3696163c
JJ
95192014-08-04 Jakub Jelinek <jakub@redhat.com>
9520
9521 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9522 is not zero, but taskgroup->children is NULL and there are
9523 any task->children, schedule those instead of waiting.
9524 * testsuite/libgomp.c/depend-6.c: New test.
9525 * testsuite/libgomp.c/depend-7.c: New test.
9526 * testsuite/libgomp.c/depend-8.c: New test.
9527 * testsuite/libgomp.c/depend-9.c: New test.
9528 * testsuite/libgomp.c/depend-10.c: New test.
9529
0494285a
JJ
95302014-08-01 Jakub Jelinek <jakub@redhat.com>
9531
9532 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9533 (struct gomp_taskwait): New type.
9534 (struct gomp_task): Add taskwait and parent_depends_on, remove
9535 in_taskwait and taskwait_sem fields.
9536 (gomp_finish_task): Don't destroy taskwait_sem.
9537 * task.c (gomp_init_task): Don't init in_taskwait, instead init
9538 taskwait and parent_depends_on.
9539 (GOMP_task): For if (0) tasks with depend clause that depend on
9540 earlier tasks don't defer them, instead call
9541 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9542 Initialize redundant_out field, for redundant out entries just
9543 move them at the end of linked list instead of removing them
9544 completely, and set redundant_out flag instead of redundant.
9545 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9546 that task.
9547 (gomp_task_run_post_handle_dependers): If parent is in
9548 gomp_task_maybe_wait_for_dependencies and newly runnable task
9549 is not parent_depends_on, queue it in parent->children linked
9550 list after all runnable tasks with parent_depends_on set.
9551 Adjust for addition of taskwait indirection.
9552 (gomp_task_run_post_remove_parent): If parent is in
9553 gomp_task_maybe_wait_for_dependencies and task to be removed
9554 is parent_depends_on, decrement n_depend and if needed awake
9555 parent. Adjust for addition of taskwait indirection.
9556 (GOMP_taskwait): Adjust for addition of taskwait indirection.
9557 (gomp_task_maybe_wait_for_dependencies): New function.
9558 * testsuite/libgomp.c/depend-5.c: New test.
9559
60ab4b44
TB
95602014-07-13 Tobias Burnus <burnus@net-b.de>
9561
9562 * testsuite/libgomp.fortran/pr34020.f90: Make compile
0494285a 9563 with TS 18508/Fortran 2015.
60ab4b44 9564
773ec47f
MP
95652014-07-06 Marek Polacek <polacek@redhat.com>
9566
9567 PR c/6940
9568 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9569
f707da16
JJ
95702014-07-03 Jakub Jelinek <jakub@redhat.com>
9571
9572 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9573 matches regex $lang_source_re, add $lang_include_flags to options.
9574 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9575 * testsuite/libgomp.c++/c++.exp: Likewise.
9576 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9577 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9578 ALWAYS_CFLAGS.
9579 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9580
07b6c044
TS
95812014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9582
9583 * testsuite/libgomp.fortran/fortran.exp: Explain
9584 gfortran-dg-runtest usage.
9585
da6f124d
JJ
95862014-06-25 Jakub Jelinek <jakub@redhat.com>
9587
9588 * testsuite/libgomp.fortran/simd5.f90: New test.
9589 * testsuite/libgomp.fortran/simd6.f90: New test.
9590 * testsuite/libgomp.fortran/simd7.f90: New test.
9591
b46ebd6c
JJ
95922014-06-24 Jakub Jelinek <jakub@redhat.com>
9593
56ad0e38
JJ
9594 * testsuite/libgomp.c/for-2.c: Define SC to static for
9595 #pragma omp for simd testing.
9596 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9597 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9598 SC macro.
9599 * testsuite/libgomp.c/simd-14.c: New test.
9600 * testsuite/libgomp.c/simd-15.c: New test.
9601 * testsuite/libgomp.c/simd-16.c: New test.
9602 * testsuite/libgomp.c/simd-17.c: New test.
9603 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9604 #pragma omp for simd testing.
9605 * testsuite/libgomp.c++/simd10.C: New test.
9606 * testsuite/libgomp.c++/simd11.C: New test.
9607 * testsuite/libgomp.c++/simd12.C: New test.
9608 * testsuite/libgomp.c++/simd13.C: New test.
9609
b46ebd6c
JJ
9610 * testsuite/libgomp.fortran/aligned1.f03: New test.
9611 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9612 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9613 tasks with !$omp parallel !$omp single.
9614 * testsuite/libgomp.fortran/target8.f90: New test.
9615 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9616 not to use trim in the combiner, instead call elemental function.
9617 (fn): New elemental function.
9618 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9619 Make elemental.
9620 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9621 omp_in): Likewise.
9622 * testsuite/libgomp.fortran/udr12.f90: New test.
9623 * testsuite/libgomp.fortran/udr13.f90: New test.
9624 * testsuite/libgomp.fortran/udr14.f90: New test.
9625 * testsuite/libgomp.fortran/udr15.f90: New test.
9626
f014c653
JJ
96272014-06-18 Jakub Jelinek <jakub@redhat.com>
9628
9629 * omp_lib.f90.in (openmp_version): Set to 201307.
9630 * omp_lib.h.in (openmp_version): Likewise.
9631 * testsuite/libgomp.c/target-8.c: New test.
9632 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9633 and inbranch clauses.
9634 * testsuite/libgomp.fortran/depend-3.f90: New test.
9635 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9636 openmp_version.
9637 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9638 * testsuite/libgomp.fortran/target1.f90: New test.
9639 * testsuite/libgomp.fortran/target2.f90: New test.
9640 * testsuite/libgomp.fortran/target3.f90: New test.
9641 * testsuite/libgomp.fortran/target4.f90: New test.
9642 * testsuite/libgomp.fortran/target5.f90: New test.
9643 * testsuite/libgomp.fortran/target6.f90: New test.
9644 * testsuite/libgomp.fortran/target7.f90: New test.
9645
92d28cbb
JJ
96462014-06-10 Jakub Jelinek <jakub@redhat.com>
9647
9648 PR fortran/60928
9649 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9650 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9651 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9652 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9653 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9654 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9655 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9656 * testsuite/libgomp.fortran/associate1.f90: New test.
9657 * testsuite/libgomp.fortran/associate2.f90: New test.
9658 * testsuite/libgomp.fortran/procptr1.f90: New test.
9659
5f23671d
JJ
96602014-06-06 Jakub Jelinek <jakub@redhat.com>
9661
9662 * testsuite/libgomp.fortran/simd1.f90: New test.
9663 * testsuite/libgomp.fortran/udr1.f90: New test.
9664 * testsuite/libgomp.fortran/udr2.f90: New test.
9665 * testsuite/libgomp.fortran/udr3.f90: New test.
9666 * testsuite/libgomp.fortran/udr4.f90: New test.
9667 * testsuite/libgomp.fortran/udr5.f90: New test.
9668 * testsuite/libgomp.fortran/udr6.f90: New test.
9669 * testsuite/libgomp.fortran/udr7.f90: New test.
9670 * testsuite/libgomp.fortran/udr8.f90: New test.
9671 * testsuite/libgomp.fortran/udr9.f90: New test.
9672 * testsuite/libgomp.fortran/udr10.f90: New test.
9673 * testsuite/libgomp.fortran/udr11.f90: New test.
9674
0389fbb5
UB
96752014-05-27 Uros Bizjak <ubizjak@gmail.com>
9676
9677 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9678 vect_simd_clones effective target.
9679 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9680
decaaec8
JJ
96812014-05-21 Jakub Jelinek <jakub@redhat.com>
9682
9683 PR middle-end/61252
9684 * testsuite/libgomp.c++/simd-9.C: New test.
9685
72832460
UB
96862014-05-18 Uros Bizjak <ubizjak@gmail.com>
9687
9688 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9689 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9690 texts according to their @menu entry positions.
9691
dd2fc525
JJ
96922014-05-11 Jakub Jelinek <jakub@redhat.com>
9693
9694 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9695 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9696 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9697 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9698 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9699 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9700 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9701 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9702 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9703 * testsuite/libgomp.fortran/depend-1.f90: New test.
9704 * testsuite/libgomp.fortran/depend-2.f90: New test.
9705 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9706 * testsuite/libgomp.fortran/simd1.f90: New test.
9707 * testsuite/libgomp.fortran/simd2.f90: New test.
9708 * testsuite/libgomp.fortran/simd3.f90: New test.
9709 * testsuite/libgomp.fortran/simd4.f90: New test.
9710 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9711
95782571
JJ
97122014-05-02 Jakub Jelinek <jakub@redhat.com>
9713
9714 * testsuite/libgomp.c/simd-10.c: New test.
9715 * testsuite/libgomp.c/simd-11.c: New test.
9716 * testsuite/libgomp.c/simd-12.c: New test.
9717 * testsuite/libgomp.c/simd-13.c: New test.
9718
f7468577
JJ
97192014-04-24 Jakub Jelinek <jakub@redhat.com>
9720
42056eac
JJ
9721 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9722 atomic type clauses in any order and optional comma in between.
9723 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9724 * testsuite/libgomp.c/atomic-17.c: Likewise.
9725
f7468577
JJ
9726 * testsuite/libgomp.c/simd-7.c: New test.
9727 * testsuite/libgomp.c/simd-8.c: New test.
9728 * testsuite/libgomp.c/simd-9.c: New test.
9729 * testsuite/libgomp.c/loop-16.c: New test.
9730
ab18f2f5
RH
97312014-04-02 Richard Henderson <rth@redhat.com>
9732
9733 * config/linux/futex.h (futex_wait): Get error value from errno.
9734 (futex_wake): Likewise.
9735
8bcc90b0
JJ
97362014-03-25 Jakub Jelinek <jakub@redhat.com>
9737
9738 PR c++/60331
9739 * testsuite/libgomp.c++/udr-11.C: New test.
9740 * testsuite/libgomp.c++/udr-12.C: New test.
9741 * testsuite/libgomp.c++/udr-13.C: New test.
9742 * testsuite/libgomp.c++/udr-14.C: New test.
9743 * testsuite/libgomp.c++/udr-15.C: New test.
9744 * testsuite/libgomp.c++/udr-16.C: New test.
9745 * testsuite/libgomp.c++/udr-17.C: New test.
9746 * testsuite/libgomp.c++/udr-18.C: New test.
9747 * testsuite/libgomp.c++/udr-19.C: New test.
9748
18d73c7f
RS
97492014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9750
9751 Update copyright years
9752
f9030485
RS
97532014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9754
9755 * hashtab.h: Use the standard form for the copyright notice.
9756
98db73df
TB
97572014-01-02 Tobias Burnus <burnus@net-b.de>
9758
9759 * libgomp.texi: Bump @copying's copyright year.
9760
ae246f7f
AT
97612013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9762
93d90219 9763 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
ae246f7f
AT
9764 alloca () with __builtin_alloca ().
9765 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9766 * testsuite/libgomp.c/lock-3.c: Likewise.
9767 * testsuite/libgomp.c/pr48591.c: Likewise.
9768
fa00a5fe
JJ
97692013-12-17 Jakub Jelinek <jakub@redhat.com>
9770
9771 PR testsuite/59534
9772 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9773 comparisons.
9774
e9792e1d
JJ
97752013-12-16 Jakub Jelinek <jakub@redhat.com>
9776
9777 PR libgomp/58756
9778 * testsuite/libgomp.c/pr58756.c: New test.
9779
cab37c89
JJ
97802013-12-12 Jakub Jelinek <jakub@redhat.com>
9781
9782 PR libgomp/59467
9783 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9784 !$omp parallel.
9785
de14871c
TS
97862013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9787
1707a5de
TS
9788 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9789 ALWAYS_CFLAGS.
9790 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9791 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9792 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9793 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9794 Likewise.
9795
70f05c43
TS
9796 * libgomp_g.h: Include <stddef.h> for size_t.
9797
de14871c
TS
9798 * libgomp.spec.in: Update comment about libgomp's dependencies.
9799 * configure.ac: Likewise.
9800 * configure: Regenerate.
9801
83fd6c5b
TB
98022013-10-16 Tobias Burnus <burnus@net-b.de>
9803
9804 * libgomp.texi: (Runtime Library Routines): Update references for
9805 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9806 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9807 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9808 (Environment Variables): Update references for OpenMP 4.0. Add
9809 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9810 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9811 order.
9812
c8673881
JJ
98132013-10-14 Jakub Jelinek <jakub@redhat.com>
9814
9815 * env.c (parse_bind_var): Initialize value to avoid
9816 (false positive) warning.
9817
f89163fd
JJ
98182013-10-12 Jakub Jelinek <jakub@redhat.com>
9819
9820 PR libgomp/58691
9821 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9822 to check variable.
9823 (gomp_init_num_threads): Move i variable declaration into
9824 #ifdef CPU_ALLOC_SIZE block.
9825 * config/linux/affinity.c (gomp_affinity_init_level): Test
9826 gomp_places_list_len == 0 rather than gomp_places_list == 0
9827 when checking for topology reading error.
9828 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9829 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9830 gomp_places_list, only parse env var and always return false.
9831 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9832 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9833 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9834 and either of these variables were parsed correctly into a places
9835 list.
9836
1d340638
TS
98372013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9838 Jakub Jelinek <jakub@redhat.com>
9839
9840 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9841 of 5 loopfn matches.
9842 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9843 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9844 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9845 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9846 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9847 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9848 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9849 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9850
71a81c21
TS
98512013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9852
bd87f731
TS
9853 * Makefile.am (omp_lib.mod): Streamline rule.
9854 * Makefile.in: Regenerate.
9855
f5745bed
TS
9856 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9857 exceptions.
9858
b5512c66
TS
9859 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9860 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9861 * testsuite/libgomp.fortran/lib2.f: Likewise.
9862 * testsuite/libgomp.fortran/lib3.f: Likewise.
9863
451c19c4
TS
9864 * configure.ac: Typo fix.
9865 * configure: Regenerate.
9866
86a6016d
TS
9867 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9868 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9869
71a81c21
TS
9870 * omp.h.in: Don't touch the user's namespace.
9871
acf0174b
JJ
98722013-10-11 Jakub Jelinek <jakub@redhat.com>
9873 Tobias Burnus <burnus@net-b.de>
9874 Richard Henderson <rth@redhat.com>
9875
9876 * target.c: New file.
9877 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9878 * Makefile.in: Regenerated.
9879 * libgomp_g.h (GOMP_task): Add depend argument.
9880 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9881 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9882 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9883 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9884 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9885 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9886 GOMP_taskgroup_start, GOMP_taskgroup_end,
9887 GOMP_parallel_sections): New prototypes.
9888 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9889 (omp_is_initial_device_): New function.
9890 (ULP, STR1, STR2, ialias_redirect): Removed.
9891 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9892 omp_set_default_device_8_, omp_get_default_device_,
9893 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9894 functions.
9895 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9896 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9897 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9898 @@GOMP_4.0.
9899 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9900 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9901 omp_set_default_device, omp_set_default_device_,
9902 omp_set_default_device_8_, omp_get_default_device,
9903 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9904 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9905 omp_get_team_num_): Export @@OMP_4.0.
9906 * team.c (struct gomp_thread_start_data): Add place field.
9907 (gomp_thread_start): Clear thr->thread_pool and
9908 thr->task before returning. Use gomp_team_barrier_wait_final
9909 instead of gomp_team_barrier_wait. Initialize thr->place.
9910 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9911 team_cancelled and task_queued_count fields.
9912 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9913 before calling pthread_exit.
9914 (gomp_free_thread): No longer static. Use
9915 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9916 (gomp_team_start): Add flags argument. Set
9917 thr->thread_pool->threads_busy to nthreads immediately after creating
9918 new pool. Use gomp_managed_threads_lock instead of
9919 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9920 (gomp_team_end): Use gomp_managed_threads_lock instead of
9921 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9922 of gomp_team_barrier_wait. If team->team_cancelled, call
93d90219 9923 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
acf0174b
JJ
9924 rather than thr->ts.work_share.
9925 (initialize_team): Don't call gomp_sem_init here.
9926 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9927 caller.
9928 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9929 * env.c (gomp_global_icv): Add default_device_var, target_data and
9930 bind_var initializers.
9931 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9932 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9933 gomp_places_list_len): New variables.
9934 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9935 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9936 sized places.
9937 (gomp_cancel_var): New global variable.
9938 (parse_int): New function.
9939 (handle_omp_display_env): New function.
9940 (initialize_env): Use it. Initialize default_device_var.
9941 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9942 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9943 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9944 been successfully parsed (and call gomp_init_affinity in that case).
9945 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9946 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9947 omp_get_team_num, omp_is_initial_device): New functions.
9948 * libgomp.h: Include stdlib.h.
9949 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9950 Define.
9951 (struct target_mem_desc): Forward declare.
9952 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9953 and thread_limit_var fields.
9954 (gomp_get_num_devices): New prototype.
9955 (gomp_cancel_var): New extern decl.
9956 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9957 team_cancelled and task_queued_count fields. Add comments about
9958 task_{,queued_,running_}count.
9959 (gomp_cancel_kind): New enum.
9960 (gomp_work_share_end_cancel): New prototype.
9961 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9962 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9963 and depend fields.
9964 (struct gomp_taskgroup): New type.
9965 (struct gomp_task_depend_entry,
9966 struct gomp_dependers_vec): New types.
9967 (gomp_finish_task): Free depend_hash if non-NULL.
9968 (struct gomp_team_state): Add place_partition_off
9969 and place_partition_len fields.
9970 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9971 gomp_places_list_len): New extern decls.
9972 (struct gomp_thread): Add place field.
9973 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9974 (gomp_init_thread_affinity): Add place argument.
9975 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9976 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9977 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9978 gomp_affinity_init_level, gomp_affinity_print_place): New
9979 prototypes.
9980 (gomp_team_start): Add flags argument.
9981 (gomp_thread_limit_var, gomp_remaining_threads_count,
9982 gomp_remaining_threads_lock): Remove.
9983 (gomp_managed_threads_lock): New variable.
9984 (struct gomp_thread_pool): Add threads_busy field.
9985 (gomp_free_thread): New prototype.
9986 * task.c: Include hashtab.h.
9987 (hash_entry_type): New typedef.
9988 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9989 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9990 copy_ctors_done and taskgroup fields.
9991 (GOMP_task): Add depend argument, handle depend clauses. If
9992 gomp_team_barrier_cancelled or if it's taskgroup has been
9993 cancelled, don't queue or start new tasks. Set copy_ctors_done
9994 field if needed. Initialize taskgroup field. If copy_ctors_done
9995 and already cancelled, don't discard the task. If taskgroup is
9996 non-NULL, enqueue the task into taskgroup queue. Increment
9997 num_children field in taskgroup. Increment task_queued_count.
9998 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9999 gomp_task_run_post_remove_taskgroup): New inline functions.
10000 (gomp_task_run_post_handle_depend_hash,
10001 gomp_task_run_post_handle_dependers,
10002 gomp_task_run_post_handle_depend): New functions.
10003 (GOMP_taskwait): Use them. If more than one new tasks
10004 have been queued, wake other threads if needed.
10005 (gomp_barrier_handle_tasks): Likewise. If
10006 gomp_team_barrier_cancelled, don't start any new tasks, just free
10007 all tasks.
10008 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
10009 * omp_lib.f90.in
10010 (omp_proc_bind_kind, omp_proc_bind_false,
10011 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10012 omp_proc_bind_spread): New params.
10013 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10014 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10015 omp_get_team_num, omp_is_initial_device): New interfaces.
10016 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
10017 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
10018 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
10019 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
10020 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
10021 useless use omp_lib_kinds.
10022 * omp.h.in (omp_proc_bind_t): New typedef.
10023 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10024 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10025 omp_get_team_num, omp_is_initial_device): New prototypes.
10026 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
10027 through to gomp_team_start.
10028 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
10029 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
10030 Adjust gomp_parallel_loop_start callers.
10031 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
10032 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
10033 GOMP_loop_end_cancel): New functions.
10034 (GOMP_parallel_end): Add ialias_redirect.
10035 * hashtab.h: New file.
10036 * libgomp.texi (Environment Variables): Minor cleanup,
10037 update section refs to OpenMP 4.0rc2.
10038 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
10039 environment variables.
10040 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
10041 team->work_shares_to_free to thr->ts.work_share before calling
10042 free_work_share.
10043 (gomp_work_share_end_cancel): New function.
10044 * config/linux/proc.c: Include errno.h.
10045 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
10046 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
10047 sizeof (cpu_set_t) to determine number of iterations. Fix up check
10048 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
10049 gomp_cpuset_size is sizeof (cpu_set_t).
10050 (gomp_init_num_threads): Initialize gomp_cpuset_size,
10051 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
10052 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
10053 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
10054 contain any logical CPUs.
10055 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
10056 is NULL. Use gomp_cpusetp instead of &cpuset and pass
10057 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
10058 pthread_getaffinity_np. Check gomp_places_list instead of
10059 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
10060 * config/linux/bar.c (gomp_barrier_wait_end,
10061 gomp_barrier_wait_last): Use BAR_* defines.
10062 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
10063 from state where needed. Set work_share_cancelled to 0 on last
10064 thread.
10065 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
10066 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
10067 functions.
10068 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
10069 Add cpusetsize argument.
10070 (gomp_cpuset_size, gomp_cpusetp): Declare.
10071 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
10072 (affinity_counter): Remove.
10073 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
10074 if CPU_ALLOC_SIZE isn't defined.
10075 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
10076 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
10077 bind current thread to the first place.
10078 (gomp_init_thread_affinity): Rewritten. Add place argument, just
10079 pthread_setaffinity_np to gomp_places_list[place].
10080 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10081 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10082 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10083 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
10084 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10085 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10086 (gomp_barrier_t): Add awaited_final field.
10087 (gomp_barrier_init): Initialize awaited_final field.
10088 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
10089 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
10090 prototypes.
10091 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
10092 defines.
10093 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
10094 gomp_team_barrier_cancelled): New inline functions.
10095 (gomp_barrier_last_thread,
10096 gomp_team_barrier_set_task_pending,
10097 gomp_team_barrier_clear_task_pending,
10098 gomp_team_barrier_set_waiting_for_tasks,
10099 gomp_team_barrier_waiting_for_tasks,
10100 gomp_team_barrier_done): Use BAR_* defines.
10101 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
10102 (gomp_barrier_wait_end): Use BAR_* defines.
10103 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
10104 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
10105 Use BAR_* defines.
10106 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
10107 gomp_team_barrier_cancel): New functions.
10108 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
10109 argument.
10110 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
10111 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
10112 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
10113 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
10114 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
10115 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
10116 (gomp_barrier_t): Add cancellable field.
10117 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
10118 gomp_team_barrier_cancel): New prototypes.
10119 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
10120 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
10121 gomp_team_barrier_cancelled): New inline functions.
10122 (gomp_barrier_wait_start, gomp_barrier_last_thread,
10123 gomp_team_barrier_set_task_pending,
10124 gomp_team_barrier_clear_task_pending,
10125 gomp_team_barrier_set_waiting_for_tasks,
10126 gomp_team_barrier_waiting_for_tasks,
10127 gomp_team_barrier_done): Use BAR_* defines.
10128 * barrier.c (GOMP_barrier_cancel): New function.
10129 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
10130 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
10131 omp_proc_bind_spread): New params.
10132 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
10133 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
10134 omp_get_team_num, omp_is_initial_device): New externals.
10135 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
10136 New functions.
10137 (gomp_resolve_num_threads): Adjust for thread_limit now being in
10138 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10139 infinity. If not nested, just return minimum of max_num_threads
10140 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
10141 to the returned value. Otherwise, don't update atomically
10142 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
10143 (GOMP_parallel_end): Adjust for thread_limit now being in
10144 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
10145 infinity. Adjust threads_busy in the pool rather than
10146 gomp_remaining_threads_count. Remember team->nthreads and call
10147 gomp_team_end before adjusting threads_busy, if not nested
10148 afterwards, just set it to 1 non-atomically. Add ialias.
10149 (GOMP_parallel_start): Adjust gomp_team_start caller.
10150 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
10151 * testsuite/libgomp.c/affinity-1.c: New test.
10152 * testsuite/libgomp.c/atomic-15.c: New test.
10153 * testsuite/libgomp.c/atomic-16.c: New test.
10154 * testsuite/libgomp.c/atomic-17.c: New test.
10155 * testsuite/libgomp.c/cancel-for-1.c: New test.
10156 * testsuite/libgomp.c/cancel-for-2.c: New test.
10157 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
10158 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
10159 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
10160 * testsuite/libgomp.c/cancel-sections-1.c: New test.
10161 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
10162 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
10163 * testsuite/libgomp.c/depend-1.c: New test.
10164 * testsuite/libgomp.c/depend-2.c: New test.
10165 * testsuite/libgomp.c/depend-3.c: New test.
10166 * testsuite/libgomp.c/depend-4.c: New test.
10167 * testsuite/libgomp.c/for-1.c: New test.
10168 * testsuite/libgomp.c/for-1.h: New file.
10169 * testsuite/libgomp.c/for-2.c: New test.
10170 * testsuite/libgomp.c/for-2.h: New file.
10171 * testsuite/libgomp.c/for-3.c: New test.
10172 * testsuite/libgomp.c/pr58392.c: New test.
10173 * testsuite/libgomp.c/simd-1.c: New test.
10174 * testsuite/libgomp.c/simd-2.c: New test.
10175 * testsuite/libgomp.c/simd-3.c: New test.
10176 * testsuite/libgomp.c/simd-4.c: New test.
10177 * testsuite/libgomp.c/simd-5.c: New test.
10178 * testsuite/libgomp.c/simd-6.c: New test.
10179 * testsuite/libgomp.c/target-1.c: New test.
10180 * testsuite/libgomp.c/target-2.c: New test.
10181 * testsuite/libgomp.c/target-3.c: New test.
10182 * testsuite/libgomp.c/target-4.c: New test.
10183 * testsuite/libgomp.c/target-5.c: New test.
10184 * testsuite/libgomp.c/target-6.c: New test.
10185 * testsuite/libgomp.c/target-7.c: New test.
10186 * testsuite/libgomp.c/taskgroup-1.c: New test.
10187 * testsuite/libgomp.c/thread-limit-1.c: New test.
10188 * testsuite/libgomp.c/thread-limit-2.c: New test.
10189 * testsuite/libgomp.c/thread-limit-3.c: New test.
10190 * testsuite/libgomp.c/udr-1.c: New test.
10191 * testsuite/libgomp.c/udr-2.c: New test.
10192 * testsuite/libgomp.c/udr-3.c: New test.
10193 * testsuite/libgomp.c++/affinity-1.C: New test.
10194 * testsuite/libgomp.c++/atomic-10.C: New test.
10195 * testsuite/libgomp.c++/atomic-11.C: New test.
10196 * testsuite/libgomp.c++/atomic-12.C: New test.
10197 * testsuite/libgomp.c++/atomic-13.C: New test.
10198 * testsuite/libgomp.c++/atomic-14.C: New test.
10199 * testsuite/libgomp.c++/atomic-15.C: New test.
10200 * testsuite/libgomp.c++/cancel-for-1.C: New test.
10201 * testsuite/libgomp.c++/cancel-for-2.C: New test.
10202 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
10203 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
10204 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
10205 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
10206 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
10207 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
10208 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
10209 * testsuite/libgomp.c++/cancel-test.h: New file.
10210 * testsuite/libgomp.c++/for-9.C: New test.
10211 * testsuite/libgomp.c++/for-10.C: New test.
10212 * testsuite/libgomp.c++/for-11.C: New test.
10213 * testsuite/libgomp.c++/simd-1.C: New test.
10214 * testsuite/libgomp.c++/simd-2.C: New test.
10215 * testsuite/libgomp.c++/simd-3.C: New test.
10216 * testsuite/libgomp.c++/simd-4.C: New test.
10217 * testsuite/libgomp.c++/simd-5.C: New test.
10218 * testsuite/libgomp.c++/simd-6.C: New test.
10219 * testsuite/libgomp.c++/simd-7.C: New test.
10220 * testsuite/libgomp.c++/simd-8.C: New test.
10221 * testsuite/libgomp.c++/target-1.C: New test.
10222 * testsuite/libgomp.c++/target-2.C: New test.
10223 * testsuite/libgomp.c++/target-2-aux.cc: New file.
10224 * testsuite/libgomp.c++/target-3.C: New test.
10225 * testsuite/libgomp.c++/taskgroup-1.C: New test.
10226 * testsuite/libgomp.c++/udr-1.C: New test.
10227 * testsuite/libgomp.c++/udr-2.C: New test.
10228 * testsuite/libgomp.c++/udr-3.C: New test.
10229 * testsuite/libgomp.c++/udr-4.C: New test.
10230 * testsuite/libgomp.c++/udr-5.C: New test.
10231 * testsuite/libgomp.c++/udr-6.C: New test.
10232 * testsuite/libgomp.c++/udr-7.C: New test.
10233 * testsuite/libgomp.c++/udr-8.C: New test.
10234 * testsuite/libgomp.c++/udr-9.C: New test.
10235
bd599dea
JJ
102362013-09-20 Jakub Jelinek <jakub@redhat.com>
10237
10238 PR testsuite/57605
10239 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
10240 ALWAYS_CFLAGS.
10241
3cbe17f7
AM
102422013-09-20 Alan Modra <amodra@gmail.com>
10243
10244 * configure: Regenerate.
10245
4befd127
JJ
102462013-09-19 Jakub Jelinek <jakub@redhat.com>
10247
10248 * testsuite/libgomp.c/sections-2.c: New test.
10249
946c8f7b
MS
102502013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10251
10252 * testsuite/libgomp.fortran/strassen.f90:
10253 Add dg-skip-if aarch64_tiny.
10254
1ef3b58e
IS
102552013-06-20 Iain Sandoe <iain@codesourcery.com>
10256 Cesar Philippidis <cesar@codesourcery.com>
10257
10258 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
10259 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
10260 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
10261 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10262 * testsuite/libgomp.graphite/graphite.exp: Likewise.
10263 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
10264 Use dg-runtest rather than gfortran-dg-runtest.
10265
9275f73a
TS
102662013-06-10 Thomas Schwinge <thomas@codesourcery.com>
10267
10268 * testsuite/libgomp.c/icv-2.c: Extend current handling of
10269 Linux-based x86 systems to cover all GNU systems.
10270 * testsuite/libgomp.c/lock-3.c: Likewise.
10271 * testsuite/libgomp.c/pr48591.c: Likewise.
10272
492992e2
TS
102732013-06-06 Thomas Schwinge <thomas@codesourcery.com>
10274
48df3acb
TS
10275 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
10276 GNU/Hurd, as done for Linux-based systems.
10277
492992e2
TS
10278 * config/posix/ptrlock.h: Fix comment.
10279
4fed6b25
TB
102802013-05-27 Tobias Burnus <burnus@net-b.de>
10281
10282 PR fortran/57423
10283 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
10284 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
10285 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
10286 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
10287 omp_destroy_nest_lock): Correct arguments to match the one in
10288 the OpenMP spec.
10289 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
10290 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
10291 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
10292 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
10293
5a0f4dd3
JJ
102942013-05-16 Jakub Jelinek <jakub@redhat.com>
10295
10296 * testsuite/libgomp.c/loop-13.c: New test.
10297 * testsuite/libgomp.c/loop-14.c: New test.
10298 * testsuite/libgomp.c/loop-15.c: New test.
10299 * testsuite/libgomp.c++/loop-13.C: New test.
10300 * testsuite/libgomp.c++/loop-14.C: New test.
10301 * testsuite/libgomp.c++/loop-15.C: New test.
10302
6d840d99
JJ
103032013-02-06 Jakub Jelinek <jakub@redhat.com>
10304
10305 PR middle-end/56217
10306 * testsuite/libgomp.c++/pr56217.C: New test.
10307
bed8d8a6
AM
103082013-02-01 Alan Modra <amodra@gmail.com>
10309
10310 * task.c (GOMP_task, GOMP_taskwait): Comment.
10311
3b35cd04
DV
103122013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
10313 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
10314
10315 PR libgomp/55561
10316 * config/linux/wait.h (do_spin): Use atomic load for addr.
10317 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
10318 for intptr and ptrlock.
10319 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
10320 for ptrlock.
10321
9a647288
AM
103222013-01-22 Alan Modra <amodra@gmail.com>
10323
10324 PR libgomp/51376
10325 PR libgomp/56073
10326 * task.c (GOMP_task): Revert 2011-12-09 change.
10327 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
10328 barrier to read task->children..
10329 (gomp_barrier_handle_tasks): ..and matching atomic store with
10330 release barrier here when setting parent->children to NULL.
10331
f34dea03
JJ
103322013-01-16 Jakub Jelinek <jakub@redhat.com>
10333 Tobias Burnus <burnus@net-b.de>
10334
10335 PR driver/55884
10336 * testsuite/libgomp.fortran/fortran.exp: Use
10337 -fintrinsic-modules-path= instead of
10338 -fintrinsic-modules-path.
10339
8129609c
RS
103402013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
10341
10342 Update copyright years.
10343
aa86bf1e
TB
103442012-12-19 Tobias Burnus <burnus@net-b.de>
10345
10346 * testsuite/libgomp.fortran/fortran.exp: Set
10347 -fintrinsic-modules-path.
10348
2865ea66
TB
103492012-12-19 Tobias Burnus <burnus@net-b.de>
10350
10351 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
10352 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
10353
4c5ba8d0
JJ
103542012-11-21 Jakub Jelinek <jakub@redhat.com>
10355
10356 PR libgomp/55411
10357 * team.c (gomp_free_thread): Decrease gomp_managed_threads
10358 if pool had any threads_used.
10359
e9f958c2
JH
103602012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
10361
10362 * testsuite/libgomp.c++/pr24455.C: Use
10363 -Wl,-undefined,dynamic_lookup on darwin.
10364
a57d75dc
DE
103652012-11-07 David Edelsohn <dje.gcc@gmail.com>
10366
10367 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
10368
c6c08485
DH
103692012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
10370
10371 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
10372
c1f37c00
IB
103732012-10-23 Ian Bolton <ian.bolton@arm.com>
10374 Jim MacArthur <jim.macarthur@arm.com>
10375 Marcus Shawcroft <marcus.shawcroft@arm.com>
10376 Nigel Stephens <nigel.stephens@arm.com>
10377 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10378 Richard Earnshaw <rearnsha@arm.com>
10379 Sofiane Naci <sofiane.naci@arm.com>
10380 Stephen Thomas <stephen.thomas@arm.com>
10381 Tejas Belagod <tejas.belagod@arm.com>
10382 Yufeng Zhang <yufeng.zhang@arm.com>
10383
10384 * configure.tgt: Add AArch64.
10385
7c424acd
JM
103862012-10-04 Jason Merrill <jason@redhat.com>
10387
10388 * testsuite/libgomp.c++/tls-init1.C: New.
10389
6608378b
DE
103902012-09-14 David Edelsohn <dje.gcc@gmail.com>
10391
10392 * configure: Regenerated.
10393
c24dbebb
CLT
103942012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
10395
10396 * config/linux/mips/futex.h (sys_futex0): Change to static
10397 function with noinline, nomips16 attributes under MIPS16. Adjust
10398 asm statement to place 'li v0,SYS_futex' immediately before
10399 syscall insn.
10400
3d3949df
SL
104012012-07-04 Sandra Loosemore <sandra@codesourcery.com>
10402
10403 * libgomp.texi (Library Index): Renamed from "Index" to prevent
10404 conflict with index.html on case-insensitive file systems.
10405
68a12ef3
UB
104062012-07-03 Uros Bizjak <ubizjak@gmail.com>
10407
10408 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10409 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10410
33ad93b9 104112012-07-02 Richard Guenther <rguenther@suse.de>
68a12ef3
UB
10412 Michael Matz <matz@suse.de>
10413 Tobias Grosser <tobias@grosser.es>
10414 Sebastian Pop <sebpop@gmail.com>
33ad93b9
RG
10415
10416 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10417 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10418 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10419 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10420
e6fdc918
AS
104212012-06-28 Andreas Schwab <schwab@linux-m68k.org>
10422
10423 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10424
62e0a1ed
RG
104252012-06-22 Richard Guenther <rguenther@suse.de>
10426
10427 Merge from graphite branch
10428 2012-01-13 Tobias Grosser <tobias@grosser.es>
10429
10430 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10431 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10432
26127932
JJ
104332012-06-07 Jakub Jelinek <jakub@redhat.com>
10434
10435 PR middle-end/53580
10436 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10437 use GOMP_barrier () call instead.
10438 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10439 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10440 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10441 call GOMP_barrier instead.
10442 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10443
43fa5db5
JJ
104442012-06-06 Jakub Jelinek <jakub@redhat.com>
10445
10446 PR libgomp/52993
10447 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10448 argument to memset call.
10449
e6d5f8c9
L
104502012-05-16 H.J. Lu <hongjiu.lu@intel.com>
10451
10452 * configure: Regenerated.
10453
559d990c
MLI
104542012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10455
10456 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10457
b9c23a61
L
104582012-03-31 H.J. Lu <hongjiu.lu@intel.com>
10459
10460 PR bootstrap/52812
10461 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10462
c140ddf3
JJ
104632012-03-22 Jakub Jelinek <jakub@redhat.com>
10464
10465 PR middle-end/52547
10466 * testsuite/libgomp.c/pr52547.c: New test.
10467
6a26a74d
BRF
104682012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10469
10470 * testsuite/lib/libgomp.exp: load fortran-modules.exp
10471
b24513a1
RO
104722012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10473
10474 * configure.tgt (mips-sgi-irix6*): Remove.
10475
5c30094f
RO
104762012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10477
10478 * configure.tgt (alpha*-dec-osf*): Remove.
10479
10480 * config/osf/sem.h: Remove.
10481 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10482
a339c9d6
EB
104832012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10484
10485 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10486
cc2de92d
RO
104872012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10488
10489 PR libstdc++/52188
10490 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10491 Remove ENABLE_SYMVERS_SOL2.
10492 * configure: Regenerate.
10493 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10494 (PREPROCESS): New variable.
10495 (libgomp.ver): New target.
10496 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10497 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10498 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10499 Use libgomp.ver.
10500 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10501 * Makefile.in: Regenerate.
10502
dd552284
WL
105032012-02-14 Walter Lee <walt@tilera.com>
10504
10505 * configure.tgt: Handle tilegx and tilepro.
10506 * config/linux/tile/futex.h: New file.
10507
31432e21
RG
105082012-02-08 Richard Guenther <rguenther@suse.de>
10509
10510 PR tree-optimization/46886
10511 * testsuite/libgomp.c/pr46886.c: New testcase.
10512
b9264b5f
MK
105132012-01-25 Matthias Klose <doko@ubuntu.com>
10514
10515 * config/linux/arm: Remove empty directory.
10516 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10517
fbf7be80
AM
105182011-12-09 Alan Modra <amodra@gmail.com>
10519
10520 PR libgomp/51376
10521 * task.c (GOMP_taskwait): Don't access task->children outside of
10522 task_lock mutex region.
10523 (GOMP_task): Likewise.
10524
5de62d00
JJ
105252011-12-06 Jakub Jelinek <jakub@redhat.com>
10526
10527 PR libgomp/51132
10528 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10529 to file scope.
10530 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10531 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10532 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10533 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10534 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10535
45608a43
AM
105362011-12-02 Alan Modra <amodra@gmail.com>
10537
10538 * config/linux/affinity.c: Use atomic rather than sync builtin.
10539 * config/linux/lock.c: Likewise.
10540 * config/linux/ptrlock.h: Likewise.
10541 * config/linux/ptrlock.c: Likewise.
10542 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10543 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10544 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10545 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10546 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10547 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10548 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10549 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10550 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10551 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10552
ab6dd406
AM
105532011-11-30 Alan Modra <amodra@gmail.com>
10554
10555 PR libgomp/51298
10556 * config/linux/bar.h: Use atomic rather than sync builtins.
10557 * config/linux/bar.c: Likewise. Add missing acquire
10558 synchronisation on generation field.
10559 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10560 double unlock.
10561
b40c885f
AM
105622011-11-30 Alan Modra <amodra@gmail.com>
10563
10564 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10565 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10566 * config/linux/mutex.h: Use atomic rather than sync builtins.
10567 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
10568 * config/linux/omp-lock.h: Comment fix.
10569 * config/linux/arm/mutex.h: Delete.
10570 * config/linux/powerpc/mutex.h: Delete.
10571 * config/linux/ia64/mutex.h: Delete.
10572 * config/linux/mips/mutex.h: Delete.
10573
3e348fcc
AM
105742011-11-30 Alan Modra <amodra@gmail.com>
10575
10576 PR libgomp/51249
10577 * config/linux/sem.h: Rewrite.
10578 * config/linux/sem.c: Rewrite.
10579
cef86eb2
RH
105802011-11-28 Richard Henderson <rth@redhat.com>
10581
10582 * libgomp.h (enum memmodel): New.
10583
c6084f68
AT
105842011-11-21 Andreas Tobler <andreast@fgznet.ch>
10585
10586 * configure: Regenerate.
10587
06fe026c
MK
105882011-10-10 Matthias Klose <doko@ubuntu.com>
10589
10590 * config/posix95: Remove empty directory.
10591
a6c975bd
JJ
105922011-08-26 Jakub Jelinek <jakub@redhat.com>
10593
10594 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10595
c26dffff
JJ
105962011-08-19 Jakub Jelinek <jakub@redhat.com>
10597
10598 PR fortran/49792
10599 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10600 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10601
ddaad3c8
RO
106022011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10603
10604 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10605
98d03683
RO
106062011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10607
10608 PR libgomp/49965
10609 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10610
e0b23d9f
UB
106112011-08-03 Uros Bizjak <ubizjak@gmail.com>
10612
10613 * config/linux/proc.h: New.
10614 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10615 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10616 (gomp_init_num_threads): Update call to cpuset_popcount.
10617 (get_num_procs): Ditto.
10618 * config/linux/affinity.c (gomp_init_affinity): Call
10619 gomp_cpuset_popcount.
10620
20906c66
JJ
106212011-08-02 Jakub Jelinek <jakub@redhat.com>
10622
10623 PR fortran/42041
10624 PR fortran/46752
10625 * omp.h.in (omp_in_final): New prototype.
10626 * omp_lib.f90.in (omp_in_final): New interface.
10627 (omp_integer_kind, omp_logical_kind): Remove
10628 and replace all its uses in the module with 4.
10629 (openmp_version): Change to 201107.
10630 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10631 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10632 kind for the parameters.
10633 (omp_in_final): New external.
10634 (openmp_version): Change to 201107.
10635 * task.c (omp_in_final): New function.
10636 (gomp_init_task): Initialize final_task.
10637 (GOMP_task): Remove unused attribute from flags. Handle final
10638 tasks.
10639 (GOMP_taskyield): New function.
10640 (omp_in_final): Return true if if (false) or final (true) task
10641 or descendant of final (true).
10642 * fortran.c (omp_in_final_): New function.
10643 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10644 (GOMP_3.0): Export GOMP_taskyield.
10645 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10646 variables.
10647 (parse_unsigned_long_list): New function.
10648 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10649 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10650 even if parse_affinity returned false.
10651 * config/linux/affinity.c (gomp_init_affinity): Handle
10652 gomp_cpu_affinity_len == 0.
10653 * libgomp_g.h (GOMP_taskyield): New prototype.
10654 * libgomp.h (struct gomp_task): Add final_task field.
10655 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10656 * team.c (gomp_team_start): Override new task's nthreads_var icv
10657 if list form OMP_NUM_THREADS has been used and it has value for
10658 the new nesting level.
10659
10660 * testsuite/libgomp.c/atomic-11.c: New test.
10661 * testsuite/libgomp.c/atomic-12.c: New test.
10662 * testsuite/libgomp.c/atomic-13.c: New test.
10663 * testsuite/libgomp.c/atomic-14.c: New test.
10664 * testsuite/libgomp.c/reduction-6.c: New test.
10665 * testsuite/libgomp.c/task-5.c: New test.
10666 * testsuite/libgomp.c++/atomic-2.C: New test.
10667 * testsuite/libgomp.c++/atomic-3.C: New test.
10668 * testsuite/libgomp.c++/atomic-4.C: New test.
10669 * testsuite/libgomp.c++/atomic-5.C: New test.
10670 * testsuite/libgomp.c++/atomic-6.C: New test.
10671 * testsuite/libgomp.c++/atomic-7.C: New test.
10672 * testsuite/libgomp.c++/atomic-8.C: New test.
10673 * testsuite/libgomp.c++/atomic-9.C: New test.
10674 * testsuite/libgomp.c++/task-8.C: New test.
10675 * testsuite/libgomp.c++/reduction-4.C: New test.
10676 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10677 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10678 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10679 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10680 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10681 * testsuite/libgomp.fortran/pointer1.f90: New test.
10682 * testsuite/libgomp.fortran/pointer2.f90: New test.
10683 * testsuite/libgomp.fortran/task4.f90: New test.
10684
106852011-08-02 Tobias Burnus <burnus@net-b.de>
10686
10687 * libgomp.texi: Update OpenMP spec references to 3.1.
10688 (omp_in_final,OMP_PROC_BIND): New sections.
10689 (OMP_NUM_THREADS): Document that the value can be now a list.
10690 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10691
c01ecafc
L
106922011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10693
10694 * config/linux/x86/futex.h: Check __x86_64__ instead of
10695 __LP64__.
10696
25142650
JJ
106972011-07-29 Jakub Jelinek <jakub@redhat.com>
10698
10699 PR middle-end/49897
10700 PR middle-end/49898
10701 * testsuite/libgomp.c/pr49897-1.c: New test.
10702 * testsuite/libgomp.c/pr49897-2.c: New test.
10703 * testsuite/libgomp.c/pr49898-1.c: New test.
10704 * testsuite/libgomp.c/pr49898-2.c: New test.
10705
f53d712f
L
107062011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10707
10708 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10709 for ia32 instead of ilp32.
10710
10711 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10712 * testsuite/libgomp.c/atomic-6.c: Likewise.
10713
3689198d
SP
107142011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10715
10716 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10717 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10718
1a79cb73
RO
107192011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10720
10721 PR libgomp/45351
10722 * config/osf/sem.h: New file.
10723 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10724
c1f51484
RO
107252011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10726
10727 PR target/49541
10728 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10729 ldflags.
10730
bfee0724
JJ
107312011-07-15 Jakub Jelinek <jakub@redhat.com>
10732
10733 * config/linux/wait.h (do_spin): New inline, largely copied
10734 from do_wait, just don't do futex_wait here, instead return true if
10735 it should be done.
10736 (do_wait): Implement using do_spin.
10737 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10738 to prototype.
10739 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10740 __sync_bool_compare_and_swap, pass the oldval to
10741 gomp_mutex_lock_slow.
10742 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10743 If all mutex contenders are just spinning and not sleeping, don't
10744 change state to 2 unnecessarily. Optimize the loop when state has
10745 already become 2 to use just one atomic operation per loop instead
10746 of two.
10747 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10748 to prototype.
10749 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10750 __sync_bool_compare_and_swap, pass the oldval to
10751 gomp_mutex_lock_slow.
10752
fb79f500
JJ
107532011-06-22 Jakub Jelinek <jakub@redhat.com>
10754
10755 PR libgomp/49490
10756 * iter.c (gomp_iter_static_next): For chunk size 0
10757 only use n ceil/ nthreads size for the first
10758 n % nthreads threads in the team instead of
10759 all threads except for the last few ones which
10760 get less work or none at all.
10761 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10762 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10763 chunk argument, set run_sched_modifier to 0 for static
10764 resp. 1 for other kinds. If chunk argument is 0
10765 and not static, set value to 1.
10766
4577f730
JJ
107672011-05-19 Jakub Jelinek <jakub@redhat.com>
10768
ea93a47b
JJ
10769 PR c++/49043
10770 * testsuite/libgomp.c++/pr49043.C: New test.
10771
4577f730
JJ
10772 PR c++/48869
10773 * testsuite/libgomp.c++/pr48869.C: New test.
10774
e7385332
JJ
107752011-05-06 Jakub Jelinek <jakub@redhat.com>
10776
10777 PR fortran/48894
10778 * fortran.c: Include limits.h.
10779 (TO_INT): Define.
10780 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10781 *set.
10782 (omp_set_num_threads_8_, omp_set_schedule_8_,
10783 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10784 omp_get_team_size_8_): Use TO_INT macro.
10785 * testsuite/libgomp.fortran/pr48894.f90: New test.
10786
20790697
JJ
107872011-04-13 Jakub Jelinek <jakub@redhat.com>
10788
10789 PR middle-end/48591
10790 * testsuite/libgomp.c/pr48591.c: New test.
10791
bf382f5f
RO
107922011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10793
10794 PR bootstrap/48135
10795 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10796 * configure: Regenerate.
10797
113a53c1
JJ
107982011-02-27 Jakub Jelinek <jakub@redhat.com>
10799
10800 PR fortran/47886
10801 * testsuite/libgomp.fortran/task3.f90: New test.
10802
0024f1af
TB
108032011-02-24 Tobias Burnus <burnus@net-b.de>
10804
10805 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10806
21e1e594
JJ
108072011-02-23 Jakub Jelinek <jakub@redhat.com>
10808
10809 PR libgomp/47854
10810 * libgomp.texi (omp_get_wtime): Don't say time in the past
10811 must be Unix Epoch.
10812
67962076
JJ
108132011-02-18 Jakub Jelinek <jakub@redhat.com>
10814
10815 PR libgomp/47804
10816 * testsuite/libgomp.fortran/fortran.exp: Check for both
10817 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10818 but $blddir != "", still append ${blddir}/${lang_library_path}
10819 to ld_library_path.
10820
3808007c
TB
108212011-02-16 Tobias Burnus <burnus@net-b.de>
10822
10823 PR libgomp/47758
10824 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10825 of libquadmath.a before adding its libpath to ldflags.
10826
53b4d41d
JJ
108272011-02-14 Jakub Jelinek <jakub@redhat.com>
10828
10829 PR libgomp/47731
10830 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10831 to FUTEX_WAIT futex syscall.
10832 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10833
029c8f3e
RW
108342011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10835
10836 * configure: Regenerate.
10837
bddd6626
BK
108382011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10839
10840 PR libstdc++/36104
10841 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10842
f1d4ab26
GP
108432011-01-16 Gerald Pfeifer
10844
10845 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10846
2b503136
JJ
108472010-12-14 Jakub Jelinek <jakub@redhat.com>
10848
10849 PR fortran/46874
10850 * libgomp.fortran/allocatable6.f90: New test.
10851
c0f9d583
RO
108522010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10853
10854 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10855 * configure: Regenerate.
10856
7de6ba7a
DK
108572010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10858
10859 PR target/40125
10860 PR lto/46695
10861 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10862 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10863 * aclocal.m4: Regenerate.
10864 * configure: Regenerate.
10865 * Makefile.in: Regenerate.
10866 * testsuite/Makefile.in: Regenerate.
10867
b7516041
JJ
108682010-12-02 Jakub Jelinek <jakub@redhat.com>
10869
edaadf74
JJ
10870 PR fortran/46753
10871 * libgomp.fortran/pr46753.f90: New test.
10872
4c698cf8
JJ
10873 PR libgomp/43706
10874 * env.c (initialize_env): Default to spin count 300000
10875 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10876 is specified.
10877
b7516041
JJ
10878 PR libgomp/45240
10879 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10880 at the end if sync builtins aren't supported.
10881
6b43a34c
RO
108822010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10883
10884 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10885
950691fa
RO
108862010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10887
10888 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10889
fb9041ea
IS
108902010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10891
10892 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10893
1ec601bf
FXC
108942010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10895 Tobias Burnus <burnus@net-b.de>
10896
10897 PR fortran/32049
3e348fcc 10898 * configure.ac:
1ec601bf
FXC
10899 * configure: Regenerate.
10900
d213e92e
MS
109012010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10902
10903 * config/linux/futex.h: New.
10904 * config/linux/arm/mutex.h: New.
10905 * configure.tgt (arm*-*-linux*): Add config path.
10906
89d5c66f
SP
109072010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10908
10909 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10910
87350d4a
TB
109112010-09-23 Tobias Burnus <burnus@net-b.de>
10912
10913 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10914 Change Fortran datatype to LOGICAL.
10915 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10916 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10917
75bc9e5e
RW
109182010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10919
10920 * configure: Regenerate.
10921
acb5c916
JJ
109222010-07-26 Jakub Jelinek <jakub@redhat.com>
10923
10924 * libgomp.texi: Add function keyword to a couple of Fortran
10925 interfaces, use integer instead of int for Fortran.
10926
6a2ba183
AH
109272010-07-26 Aldy Hernandez <aldyh@redhat.com>
10928
10929 * libgomp.texi: Fix spelling and pasto problems throughout.
10930 Adjust prototypes to match code.
10931
df161b69
TB
109322010-07-24 Tobias Burnus <burnus@net-b.de>
10933
10934 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10935 silence -fwhole-file warning.
10936
16c9d3b1
RO
109372010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10938
10939 * configure.tgt (*-*-solaris2.[56]*): Removed.
10940
6d28b933
RO
109412010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10942
10943 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10944 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10945 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10946 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10947 targetting solaris2*.
10948 * configure: Regenerate.
10949 * config.h.in: Regenerate.
10950
10951 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10952 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10953 Add libgomp_version_dep.
10954 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10955 versioning.
10956 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10957 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10958 * Makefile.in: Regenerate.
10959
10960 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10961 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10962 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10963 to common block, protected by
10964 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10965
07a67d6a
GP
109662010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10967
10968 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10969
dbd34b89
IS
109702010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10971
10972 PR bootstrap/43170
10973 * configure: Regenerate.
10974
13917ae3
RW
109752010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10976
10977 PR other/43620
10978 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10979 * configure: Regenerate.
10980 * Makefile.in: Regenerate.
10981 * testsuite/Makefile.in: Regenerate.
10982
b83a701b
JJ
109832010-04-26 Jakub Jelinek <jakub@redhat.com>
10984
10985 PR c/43893
10986 * testsuite/libgomp.c/pr43893.c: New test.
10987 * testsuite/libgomp.c++/pr43893.C: New test.
10988
78db7d92
JJ
109892010-04-21 Jakub Jelinek <jakub@redhat.com>
10990
10991 PR middle-end/43570
10992 * testsuite/libgomp.fortran/vla8.f90: New test.
10993
5221d7a9
JJ
109942010-04-20 Jakub Jelinek <jakub@redhat.com>
10995
e4ba7a60
JJ
10996 PR libgomp/43706
10997 * config/linux/affinity.c (gomp_init_affinity): Decrease
10998 gomp_available_cpus if affinity mask confines the process to fewer
10999 CPUs.
11000 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
11001 non-NULL, just return gomp_available_cpus.
11002
5221d7a9
JJ
11003 PR libgomp/43569
11004 * sections.c (gomp_sections_init): Initialize ws->mode.
11005
289a9f86
UB
110062010-04-14 Uros Bizjak <ubizjak@gmail.com>
11007
11008 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
11009 not unused bar variable.
11010 * configure: Regenerate.
11011
4d9e8446
RW
110122010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11013
11014 * Makefile.in: Regenerate.
11015 * aclocal.m4: Regenerate.
11016 * testsuite/Makefile.in: Regenerate.
11017
80f046cc
JJ
110182010-03-22 Jakub Jelinek <jakub@redhat.com>
11019
11020 PR libgomp/42942
11021 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
11022 (initialize_env): Adjust callers.
11023 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
11024 when the argument is 0.
11025
11026 * testsuite/libgomp.c/pr42942.c: New test.
11027
b58543c3
SP
110282010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
11029
11030 PR middle-end/42644
11031 PR middle-end/42130
11032 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11033 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
11034
41d1138f
RO
110352010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11036
11037 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
11038 * testsuite/libgomp.c++/task-6.C: Likewise.
11039
6684eb28
SE
110402010-01-28 Steve Ellcey <sje@cup.hp.com>
11041
11042 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
11043
2122aa97
PB
110442010-01-26 Paolo Bonzini <bonzini@gnu.org>
11045
11046 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
11047 * configure: Regenerate.
11048
057dd91d
JJ
110492010-01-26 Jakub Jelinek <jakub@redhat.com>
11050
11051 PR fortran/42866
11052 * testsuite/libgomp.fortran/allocatable5.f90: New test.
11053
d0709b6a
PB
110542010-01-20 Paolo Bonzini <bonzini@gnu.org>
11055
11056 * configure.ac: Test for executability of GFORTRAN.
11057 * configure: Regenerate.
11058
b9497ab5
RO
110592010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11060
11061 * configure: Regenerate.
11062
45de5648
L
110632010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11064
11065 PR libgomp/42602
11066 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
11067
e74003a1
RG
110682010-01-03 Richard Guenther <rguenther@suse.de>
11069
11070 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
11071
1b3abda8
SP
110722009-12-23 Sebastian Pop <sebpop@gmail.com>
11073
11074 * testsuite/libgomp.graphite/pr4118.c: New.
11075
e19977d3
IS
110762009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11077
11078 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
11079 for darwin, protect the test with require-effective-target tls_runtime.
11080 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
11081
1d32a772
IS
110822009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11083
11084 PR target/41605
11085 * testsuite/lib/libgomp.exp: Provide -B options to allow for
11086 link spec %s substitutions for static libraries.
11087
deb109b2
JH
110882009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
11089
11090 PR testsuite/42135
11091 * libgomp.graphite/force-parallel-2.c: Reduce array size.
11092
43e02a8a
RW
110932009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11094
11095 * Makefile.in: Regenerate.
11096 * configure: Regenerate.
11097 * testsuite/Makefile.in: Regenerate.
11098
17f35e23
DK
110992009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
11100
11101 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
11102 settings for LC_ALL and LANG.
11103
281e33e1
JJ
111042009-11-25 Jakub Jelinek <jakub@redhat.com>
11105
11106 PR fortran/42162
11107 * testsuite/libgomp.fortran/pr42162.f90: New test.
11108
2b32c27d
JJ
111092009-11-13 Jakub Jelinek <jakub@redhat.com>
11110
11111 PR middle-end/42029
281e33e1 11112 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 11113
89c74f4a
JJ
111142009-10-26 Jakub Jelinek <jakub@redhat.com>
11115
11116 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
11117 *s. Accept ld version without text in ()s.
11118 * configure: Regenerated.
11119
7e06c3d6
EB
111202009-10-22 Razya Ladelsky <razya@il.ibm.com>
11121
11122 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
11123
0046b1a7
RW
111242009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11125
11126 PR libgomp/41418
11127 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
11128 or a hyphen (happens with fortran language disabled).
11129 * configure: Regenerate.
11130
c82852f7
RW
111312009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11132
11133 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
11134 use sed script portable to Solaris /bin/sed for extracting ld
11135 version.
11136 * configure: Regenerate.
11137
98f3eb1f
AM
111382009-09-17 Alexander Monakov <amonakov@ispras.ru>
11139
11140 * testsuite/libgomp.graphite/bounds.c: New test.
11141
878f62e5
RW
111422009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11143
11144 * Makefile.am (libgomp_la_LINK): New.
11145 * Makefile.in: Regenerate.
11146
df58e648
RW
111472009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11148
11149 * configure.ac (AC_PREREQ): Bump to 2.64.
11150
5213506e
RW
111512009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11152
70fa0efa
RW
11153 * Makefile.am (install-html, install-pdf): Remove.
11154 * Makefile.in: Regenerate.
11155
5213506e
RW
11156 * Makefile.in: Regenerate.
11157 * aclocal.m4: Regenerate.
11158 * config.h.in: Regenerate.
11159 * configure: Regenerate.
11160 * testsuite/Makefile.in: Regenerate.
11161
84fec8a5
RW
111622009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11163
11164 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
11165 * Makefile.in: Regenerate.
11166
197c68cc
DK
111672009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
11168
11169 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
11170 * Makefile.in: Regenerate.
11171
693d54f2
TB
111722009-08-19 Tobias Burnus <burnus@net-b.de>
11173
11174 PR fortran/41102
11175 omp_lib.h.in: Fix -std=f95 errors.
11176
8cac884c
DE
111772009-08-14 David Edelsohn <edelsohn@gnu.org>
11178
11179 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
11180 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
11181 * testsuite/libgomp.graphite/graphite.exp: New.
11182
78729ee2
AT
111832009-08-05 Andreas Tobler <a.tobler@schweiz.org>
11184
11185 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
11186 only build.
11187
b13b7f39
DD
111882009-08-04 David Daney <ddaney@caviumnetworks.com>
11189
11190 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
11191 needed memory barrier semantics.
11192 * config/linux/mips/mutex.h: New file.
11193
1b3b24c2
RW
111942009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11195
11196 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
11197
396b7fa4
JM
111982009-07-16 Joseph Myers <joseph@codesourcery.com>
11199
11200 * configure: Regenerate.
11201
33cde516
RS
112022009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
11203
11204 PR testsuite/40699
11205 PR testsuite/40707
11206 PR testsuite/40709
11207 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
11208 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
11209 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
11210
bc21bfa5
RS
112112009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11212
11213 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
11214 options when choosing a multilib.
11215
b30bfd40
RS
112162009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
11217
11218 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
11219 ld_library_path. Use add_path. Add just find_libgcc_s to
11220 ld_library_path, not every libgcc multilib directory.
11221 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
11222 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
11223 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
11224 Use add_path.
11225 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
11226
479c15c2
NF
112272009-06-09 Nathan Froyd <froydnj@codesourcery.com>
11228
11229 * Makefile.am (LTLDFLAGS): Define.
11230 (LINK): Define.
11231 * Makefile.in: Regenerate.
11232
667e6f89
JB
112332009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
11234
11235 PR fortran/39718
11236 * testsuite/libgomp.fortran/fortran.exp: Don't link with
11237 libgfortranbegin, check existence of libgfortran.a instead of
11238 libgfortranbegin.a.
11239
6dea8e99
JJ
112402009-05-20 Jakub Jelinek <jakub@redhat.com>
11241
11242 PR libgomp/40174
11243 * team.c (gomp_thread_start): Destroy thr->release semaphore.
11244 (gomp_free_pool_helper): Likewise.
11245
34d01e1d
VL
112462009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
11247 Jakub Jelinek <jakub@redhat.com>
11248
11249 PR fortran/35423
11250 * testsuite/libgomp.fortran/workshare2.f90: New test.
11251
748086b7
JJ
112522009-04-09 Nick Clifton <nickc@redhat.com>
11253
11254 * iter.c: Change copyright header to refer to version 3 of the
11255 GNU General Public License with version 3.1 of the GCC Runtime
11256 Library Exception and to point readers at the COPYING3 and
11257 COPYING3.RUNTIME files and the FSF's license web page.
11258 * alloc.c: Likewise.
11259 * barrier.c: Likewise.
11260 * config/bsd/proc.c: Likewise.
11261 * config/linux/affinity.c: Likewise.
11262 * config/linux/alpha/futex.h: Likewise.
11263 * config/linux/bar.c: Likewise.
11264 * config/linux/bar.h: Likewise.
11265 * config/linux/ia64/futex.h: Likewise.
11266 * config/linux/ia64/mutex.h: Likewise.
11267 * config/linux/lock.c: Likewise.
11268 * config/linux/mips/futex.h: Likewise.
11269 * config/linux/mutex.c: Likewise.
11270 * config/linux/mutex.h: Likewise.
11271 * config/linux/powerpc/futex.h: Likewise.
11272 * config/linux/proc.c: Likewise.
11273 * config/linux/ptrlock.c: Likewise.
11274 * config/linux/ptrlock.h: Likewise.
11275 * config/linux/s390/futex.h: Likewise.
11276 * config/linux/sem.c: Likewise.
11277 * config/linux/sem.h: Likewise.
11278 * config/linux/sparc/futex.h: Likewise.
11279 * config/linux/wait.h: Likewise.
11280 * config/linux/x86/futex.h: Likewise.
11281 * config/mingw32/proc.c: Likewise.
11282 * config/mingw32/time.c: Likewise.
11283 * config/posix/affinity.c: Likewise.
11284 * config/posix/bar.c: Likewise.
11285 * config/posix/bar.h: Likewise.
11286 * config/posix/lock.c: Likewise.
11287 * config/posix/mutex.h: Likewise.
11288 * config/posix/proc.c: Likewise.
11289 * config/posix/ptrlock.h: Likewise.
11290 * config/posix/sem.c: Likewise.
11291 * config/posix/sem.h: Likewise.
11292 * config/posix/time.c: Likewise.
11293 * config/posix95/lock.c: Likewise.
11294 * critical.c: Likewise.
11295 * env.c: Likewise.
11296 * error.c: Likewise.
11297 * fortran.c: Likewise.
11298 * iter_ull.c: Likewise.
11299 * libgomp.h: Likewise.
11300 * libgomp_f.h.in: Likewise.
11301 * libgomp_g.h: Likewise.
11302 * loop.c: Likewise.
11303 * loop_ull.c: Likewise.
11304 * omp.h.in: Likewise.
11305 * omp_lib.f90.in: Likewise.
11306 * omp_lib.h.in: Likewise.
11307 * ordered.c: Likewise.
11308 * parallel.c: Likewise.
11309 * sections.c: Likewise.
11310 * single.c: Likewise.
11311 * task.c: Likewise.
11312 * team.c: Likewise.
11313 * work.c: Likewise.
11314
113152009-04-09 Jakub Jelinek <jakub@redhat.com>
11316
11317 * testsuite/config/default.exp: Change copyright header to refer to
11318 version 3 of the GNU General Public License and to point readers
11319 at the COPYING3 file and the FSF's license web page.
11320
4f0ae266
JJ
113212009-04-08 Jakub Jelinek <jakub@redhat.com>
11322
11323 PR middle-end/39573
11324 * libgomp.c++/pr39573.C: New test.
11325
03742a9b
JJ
113262009-04-01 Jakub Jelinek <jakub@redhat.com>
11327
11328 PR other/39591
11329 * testsuite/libgomp.c/pr39591-1.c: New test.
11330 * testsuite/libgomp.c/pr39591-2.c: New test.
11331 * testsuite/libgomp.c/pr39591-3.c: New test.
11332
e50ea10b
UB
113332009-03-25 Uros Bizjak <ubizjak@gmail.com>
11334
11335 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
11336 * testsuite/libgomp.c/atomic-6.c: Ditto.
11337
c5cdb03f
JJ
113382009-03-23 Jakub Jelinek <jakub@redhat.com>
11339
11340 PR c/39495
11341 * testsuite/libgomp.c/loop-12.c: New test.
11342 * testsuite/libgomp.c/loop-11.c: New test.
11343 * testsuite/libgomp.c++/loop-11.C: New test.
11344 * testsuite/libgomp.c++/loop-12.C: New test.
11345 * testsuite/libgomp.c++/for-8.C: New test.
11346
7a9d3fe8
RW
113472009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11348
11349 * configure: Regenerate.
11350
3ad6b266
JJ
113512009-02-11 Jakub Jelinek <jakub@redhat.com>
11352
11353 PR middle-end/39154
11354 * testsuite/libgomp.c/pr39154.c: New test.
11355
b39dea08
ILT
113562009-01-30 Ian Lance Taylor <iant@google.com>
11357
11358 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
11359 libgomp_ld_is_gold. Get gold version number.
11360 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
11361 * configure: Rebuild.
11362
72c66596
IS
113632009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11364
e50ea10b 11365 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
11366 use libgfortran.a%s in their specs.
11367
876080ff
JJ
113682009-01-07 Jakub Jelinek <jakub@redhat.com>
11369
11370 PR libgomp/38086
11371 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
11372 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
11373 HAVE_AS_SYMVER_DIRECTIVE is not defined.
11374 * configure: Regenerated.
11375 * config.h.in: Likewise.
11376
e4ebaef3
JJ
113772008-12-28 Jakub Jelinek <jakub@redhat.com>
11378
11379 PR c++/38650
11380 * testsuite/libgomp.c/pr38650.c: New test.
11381 * testsuite/libgomp.c++/pr38650.C: New test.
11382
382017a6
JJ
113832008-12-27 Jakub Jelinek <jakub@redhat.com>
11384
11385 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
11386
79644b27
UB
113872008-12-26 Uros Bizjak <ubizjak@gmail.com>
11388
11389 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
11390
baafc534
RW
113912008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11392
11393 * configure: Regenerate.
11394
d9c194cb
JJ
113952008-12-08 Jakub Jelinek <jakub@redhat.com>
11396
11397 PR middle-end/36802
11398 * testsuite/libgomp.c/pr36802-1.c: New test.
11399 * testsuite/libgomp.c/pr36802-2.c: New test.
11400 * testsuite/libgomp.c/pr36802-3.c: New test.
11401
86a182bf
JJ
114022008-12-01 Janis Johnson <janis187@us.ibm.com>
11403
11404 PR libgomp/38270
11405 * config/linux/powerpc/mutex.h: New.
11406
956adfaf
JJ
114072008-12-01 Jakub Jelinek <jakub@redhat.com>
11408
a2d4cdc9
JJ
11409 PR c++/38257
11410 * testsuite/libgomp.c++/for-7.C: New test.
11411
956adfaf
JJ
11412 PR c++/38348
11413 * testsuite/libgomp.c++/for-6.C: New test.
11414
d4038ca2
JJ
114152008-11-26 Janis Johnson <janis187@us.ibm.com>
11416
11417 PR testsuite/28870
11418 * testsuite/lib/libgomp.exp: Include new timeout library files.
11419 (libgomp_target_compile): Set timeout value from new proc.
11420
8b159eea
SE
114212008-11-13 Steve Ellcey <sje@cup.hp.com>
11422
11423 PR libgomp/37938
11424 * config/linux/ia64/mutex.h: New.
11425
5c6ed53a
TB
114262008-11-04 Tobias Burnus <burnus@net-b.de>
11427
11428 PR libgomp/37935
11429 * libgomp.texi (Runtime library routines, environment variables):
11430 Update for OpenMP version 3.0.
11431
6b4a97ed
PG
114322008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
11433 Steve Ellcey <sje@cup.hp.com>
11434
11435 * configure: Regenerate for new libtool.
11436 * Makefile.in: Ditto.
11437 * testsuite/Makefile.in: Ditto.
11438
e2b34106
JJ
114392008-09-19 Jakub Jelinek <jakub@redhat.com>
11440 Andreas Tobler <a.tobler@schweiz.org>
11441
11442 * config/bsd/proc.c: New file.
8c3b3600 11443 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
11444 * configure.ac: Check for header <sys/sysctl.h>
11445 * configure: Regenerate.
11446 * config.h.in: Likewise.
11447
3606b8bf
JJ
114482008-09-05 Janis Johnson <janis187@us.ibm.com>
11449
11450 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11451
6528b88d
AL
114522008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11453
11454 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11455 * Makefile.in: Regenerated.
11456 * testsuite/Makefile.in: Regenerated.
11457
d9b14b12 114582008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 11459
a16b68bb 11460 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
11461 depend on blddir if blddir exists.
11462 (libgomp_target_compile): Likewise.
11463 * testsuite/libgomp.c++/c++.exp: Likewise.
11464 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11465
70b1e376
RW
114662008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11467
11468 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
11469 Do not list GPL as Invariant Section.
11470
318e8c3f
IG
114712008-07-28 Ilie Garbacea <ilie@mips.com>
11472 Chao-ying Fu <fu@mips.com>
11473
11474 * configure.tgt: Enable futex for MIPS.
11475 * config/linux/mips/futex.h: New file.
11476
4db72361
JJ
114772008-07-16 Jakub Jelinek <jakub@redhat.com>
11478
11479 * team.c (gomp_team_end): Free team immediately if it has
11480 just one thread.
11481
87bd23b8
DE
114822008-07-08 David Edelsohn <edelsohn@gnu.org>
11483
11484 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11485 * testsuite/libgomp.fortran/fortran.exp: Same.
11486 * testsuite/libgomp.c/c.exp: Same.
11487 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11488 directory to library path first.
11489
323ff903
KW
114902008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
11491
11492 * env.c (parse_stacksize): Add cast to avoid warning.
11493 (parse_spincount): Likewise.
11494
b357f682
JJ
114952008-06-27 Jakub Jelinek <jakub@redhat.com>
11496
ca2b1311
JJ
11497 * testsuite/libgomp.c/loop-10.c: New test.
11498 * libgomp.c/loop-3.c (main): Add lastprivate clause.
11499 * libgomp.c++/loop-6.C (main): Likewise.
11500
b357f682
JJ
11501 PR debug/36617
11502 * testsuite/libgomp.c/debug-1.c: New test.
11503
09a46078
JJ
115042008-06-19 Jakub Jelinek <jakub@redhat.com>
11505
11506 * testsuite/libgomp.c/nqueens-1.c: New test.
11507
2368a460
JJ
11508 PR c++/36523
11509 * testsuite/libgomp.c++/task-7.C: New function.
11510
18c04407
RW
115112008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11512
11513 * configure: Regenerate.
11514
9c4e59e0
JDA
115152008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11516
11517 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11518 mutex when HAVE_SYNC_BUILTINS isn't defined.
11519
6ccde948
RW
115202008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11521
11522 * libgomp.texi (omp_test_lock): Fix typo.
11523
b896f9fd
TB
115242008-06-12 Tobias Burnus <burnus@net-b.de>
11525
11526 * omp_lib.f90.in: Add "implicit none".
11527
c34938a8
JJ
115282008-06-12 Jakub Jelinek <jakub@redhat.com>
11529
11530 PR middle-end/36506
11531 * testsuite/libgomp.c/reduction-5.c: New test.
11532
976e44e3
JJ
115332008-06-11 Jakub Jelinek <jakub@redhat.com>
11534
5f836cbb
JJ
11535 * libgomp.h (struct gomp_task): Add in_tied_task field.
11536 * task.c (gomp_init_task): Initialize it.
11537 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
11538 unconditionally. Don't call gomp_team_barrier_wake if
11539 current task is implicit or if(0) from implicit and number of
11540 running tasks is equal to nthreads - 1.
11541
01501fc8
JJ
11542 PR libgomp/36471
11543 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11544 omp_get_team_size_8): Fix pastos.
11545
976e44e3
JJ
11546 PR libgomp/36469
11547 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11548 * configure: Regenerated.
11549 * config.h.in: Regenerated.
11550 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11551 defined.
11552
e919209b
AT
115532008-06-06 Andreas Tobler <a.tobler@schweiz.org>
11554
11555 PR bootstrap/36452
11556 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11557 (GOMP_loop_ull_dynamic_start): Likewise.
11558 (GOMP_loop_ull_guided_start): Likewise.
11559 (GOMP_loop_ull_ordered_static_start): Likewise.
11560 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11561 (GOMP_loop_ull_ordered_guided_start): Likewise.
11562
a68ab351
JJ
115632008-06-06 Jakub Jelinek <jakub@redhat.com>
11564 Richard Henderson <rth@redhat.com>
11565 Ulrich Drepper <drepper@redhat.com>
11566 Jakob Blomer <jakob.blomer@ira.uka.de>
11567
11568 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11569 Substitute also OMP_*LOCK_25*.
11570 * configure: Regenerated.
11571 * config.h.in: Regenerated.
11572 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11573 ptrlock.c and task.c.
11574 * Makefile.in: Regenerated.
11575 * testsuite/Makefile.in: Regenerated.
11576 * task.c: New file.
11577 * loop_ull.c: New file.
11578 * iter_ull.c: New file.
11579 * libgomp.h: Include ptrlock.h.
11580 (enum gomp_task_kind): New type.
11581 (struct gomp_team): Add task_lock, task_queue, task_count,
11582 task_running_count, single_count fields. Add
11583 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11584 Remove work_share_lock, generation_mask,
11585 oldest_live_gen, num_live_gen and init_work_shares fields, add
11586 work work_share_list_alloc, work_share_list_free and work_share_chunk
11587 fields. Change work_shares from pointer to pointers into an array.
11588 Change ordered_release field into gomp_sem_t ** from flexible array
11589 member. Add implicit_task and initial_work_shares fields.
11590 Move close to the end of the struct.
11591 (struct gomp_team_state): Add single_count, last_work_share,
11592 active_level and level fields, remove work_share_generation.
11593 (gomp_barrier_handle_tasks): New prototype.
11594 (gomp_finish_task): New inline function.
11595 (struct gomp_work_share): Move chunk_size, end, incr into
11596 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11597 next_ll fields. Reshuffle fields. Add next_alloc,
11598 next_ws, next_free and inline_ordered_team_ids fields, change
11599 ordered_team_ids into pointer from flexible array member.
11600 Add mode field. Put lock and next into a different cache line
11601 from most of the write-once fields.
11602 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11603 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11604 gomp_iter_ull_guided_next): New prototypes.
11605 (gomp_new_icv): New prototype.
11606 (struct gomp_thread): Add thread_pool and task fields.
11607 (struct gomp_thread_pool): New type.
11608 (gomp_new_team): New prototype.
11609 (gomp_team_start): Change type of last argument.
11610 (gomp_new_work_share): Removed.
11611 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11612 (gomp_work_share_init_done): New static inline.
11613 (gomp_throttled_spin_count_var, gomp_available_cpus,
11614 gomp_managed_threads): New extern decls.
11615 (gomp_init_task): New prototype.
11616 (gomp_spin_count_var): New extern var decl.
11617 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11618 or no alias support, or if not PIC.
11619 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11620 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11621 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11622 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11623 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11624 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11625 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11626 gomp_test_nest_lock_25): New prototypes.
11627 (omp_lock_symver, strong_alias): Define.
11628 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11629 decls.
11630 (gomp_end_task): New.
11631 (struct gomp_task_icv, gomp_global_icv): New.
11632 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11633 (struct gomp_task): New.
11634 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11635 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11636 (gomp_icv): New.
11637 (gomp_schedule_type): Reorder enum to match
11638 omp_sched_t.
11639 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11640 fields.
11641 (gomp_thread_start): Add gomp_team_barrier_wait call.
11642 For non-nested case remove clearing of docked thread thr fields.
11643 Use pool fields instead of global gomp_* variables. Use
11644 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11645 Create tasks for each member thread.
11646 (free_team): Only destroy team barrier, task_lock here and free it.
11647 (gomp_free_thread): Free last_team if non-NULL.
11648 (gomp_team_end): Call gomp_team_barrier_wait instead of
11649 gomp_barrier_wait. For nested case call one extra
11650 gomp_barrier_wait. Move here some destruction from free_team.
11651 Call free_team on pool->last_team if any, rather than freeing
11652 current team. Destroy work_share_list_free_lock ifndef
11653 HAVE_SYNC_BUILTINS.
11654 (gomp_new_icv): New function.
11655 (gomp_threads, gomp_threads_size, gomp_threads_used,
11656 gomp_threads_dock): Removed.
11657 (gomp_thread_destructor): New variable.
11658 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11659 functions.
11660 (gomp_team_start): Create new pool if current thread doesn't have
3e348fcc 11661 one. Use pool fields instead of global gomp_* variables.
a68ab351
JJ
11662 Initialize thread_pool field for new threads. Clear single_count.
11663 Change last argument from ws to team, don't create
11664 new team, set ts.work_share to &team->work_shares[0] and clear
11665 ts.last_work_share. Don't clear ts.work_share_generation.
11666 If number of threads changed, adjust atomically gomp_managed_threads.
11667 Use gomp_init_task instead of gomp_new_task,
11668 set thr->task to the corresponding implicit_task array entry.
11669 Create tasks for each member thread. Initialize ts.level.
11670 (initialize_team): Call pthread_key_create on
11671 gomp_thread_destructor.
11672 (team_destructor): New function.
11673 (new_team): Removed.
11674 (gomp_new_team): New function.
11675 (free_team): Free gomp_work_share blocks chained through next_alloc,
11676 instead of freeing work_shares and destroying work_share_lock.
11677 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11678 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11679 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11680 of gomp_barrier_wait.
11681 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11682 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11683 if gomp_work_share_start returned true. Don't unlock ws->lock.
11684 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11685 of gomp_barrier_wait.
11686 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11687 gomp_work_share_init_done if gomp_work_share_start returned true.
11688 Don't unlock ws->lock.
11689 * work.c: Include stddef.h.
11690 (free_work_share): Use work_share_list_free_lock instead
11691 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11692 Call gomp_fini_work_share and then either free ws if orphaned, or
11693 put it into work_share_list_free list of the current team.
11694 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11695 functions.
11696 (gomp_work_share_start, gomp_work_share_end,
11697 gomp_work_share_end_nowait): Rewritten.
11698 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11699 (openmp_version): Set to 200805.
11700 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11701 omp_sched_guided, omp_sched_auto): New parameters.
11702 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11703 omp_set_max_active_levels, omp_get_max_active_levels,
11704 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11705 omp_get_active_level): New interfaces.
11706 * omp_lib.h.in (openmp_version): Set to 200805.
11707 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11708 omp_sched_guided, omp_sched_auto): New parameters.
11709 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11710 omp_set_max_active_levels, omp_get_max_active_levels,
11711 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11712 omp_get_active_level): New externals.
11713 * loop.c: Include limits.h.
11714 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11715 GFS_AUTO.
11716 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11717 Likewise. Use gomp_icv.
11718 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11719 ts.static_trip here.
11720 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11721 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11722 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11723 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11724 don't unlock ws->lock, otherwise lock it.
11725 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11726 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11727 (gomp_parallel_loop_start): Call gomp_new_team instead of
11728 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11729 Adjust gomp_team_start caller. Pass 0 as second argument to
11730 gomp_resolve_num_threads.
11731 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11732 If adding ws->chunk_size nthreads + 1 times after end won't
11733 overflow, set ws->mode to 1.
11734 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11735 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11736 GOMP_loop_ull_ordered_static_start,
11737 GOMP_loop_ull_ordered_dynamic_start,
11738 GOMP_loop_ull_ordered_guided_start,
11739 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11740 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11741 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11742 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11743 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11744 prototypes.
11745 * libgomp.map: Export lock routines also @@OMP_2.0.
11746 (GOMP_loop_ordered_dynamic_first,
11747 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11748 GOMP_loop_ordered_static_first): Remove.
11749 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11750 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11751 GOMP_loop_ull_ordered_dynamic_next,
11752 GOMP_loop_ull_ordered_dynamic_start,
11753 GOMP_loop_ull_ordered_guided_next,
11754 GOMP_loop_ull_ordered_guided_start,
11755 GOMP_loop_ull_ordered_runtime_next,
11756 GOMP_loop_ull_ordered_runtime_start,
11757 GOMP_loop_ull_ordered_static_next,
11758 GOMP_loop_ull_ordered_static_start,
11759 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11760 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11761 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11762 (omp_set_schedule, omp_get_schedule,
11763 omp_get_thread_limit, omp_set_max_active_levels,
11764 omp_get_max_active_levels, omp_get_level,
11765 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11766 omp_set_schedule_, omp_set_schedule_8_,
11767 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11768 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11769 omp_get_max_active_levels_, omp_get_level_,
11770 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11771 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11772 New exports @@OMP_3.0.
11773 * omp.h.in (omp_sched_t): New type.
11774 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11775 omp_set_max_active_levels, omp_get_max_active_levels,
11776 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11777 omp_get_active_level): New prototypes.
11778 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11779 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11780 gomp_thread_limit_var, gomp_remaining_threads_count,
11781 gomp_remaining_threads_lock): New variables.
11782 (parse_spincount): New function.
11783 (initialize_env): Call gomp_init_num_threads unconditionally.
11784 Initialize gomp_available_cpus. Call parse_spincount,
11785 initialize gomp_{,throttled_}spin_count_var
11786 depending on presence and value of OMP_WAIT_POLICY and
11787 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11788 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11789 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11790 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11791 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11792 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11793 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11794 (gomp_global_icv): New.
11795 (parse_schedule): Use it. Parse "auto".
11796 (omp_set_num_threads): Use gomp_icv.
11797 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11798 Likewise.
11799 (omp_get_max_threads): Move from parallel.c.
11800 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11801 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11802 add ialias.
11803 (parse_stacksize, parse_wait_policy): New functions.
11804 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11805 both wrappers for compatibility and new locks.
11806 (omp_set_schedule, omp_get_schedule,
11807 omp_get_thread_limit, omp_set_max_active_levels,
11808 omp_get_max_active_levels, omp_get_level,
11809 omp_get_ancestor_thread_num, omp_get_team_size,
11810 omp_get_active_level): New ialias_redirect.
11811 (omp_set_schedule_, omp_set_schedule_8_,
11812 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11813 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11814 omp_get_max_active_levels_, omp_get_level_,
11815 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11816 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11817 New functions.
11818 * parallel.c: Include limits.h.
11819 (gomp_resolve_num_threads): Add count argument. Rewritten.
11820 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11821 argument to gomp_team_start. Pass 0 as second argument to
11822 gomp_resolve_num_threads.
11823 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11824 if gomp_thread_limit_var != ULONG_MAX.
11825 (omp_in_parallel): Implement using ts.active_level.
11826 (omp_get_max_threads): Move to env.c.
11827 (omp_get_level, omp_get_ancestor_thread_num,
11828 omp_get_team_size, omp_get_active_level): New functions,
11829 add ialias.
11830 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11831 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11832 gomp_iter_dynamic_next instead of the _locked variant and don't take
11833 lock around it, otherwise acquire it before calling
11834 gomp_iter_dynamic_next_locked.
11835 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11836 gomp_iter_dynamic_next instead of the _locked variant and don't take
11837 lock around it.
11838 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11839 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11840 Adjust gomp_team_start caller. Pass count as second argument to
11841 gomp_resolve_num_threads, don't adjust num_threads after the call.
11842 Use gomp_icv.
11843 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11844 ws->chunk_size by incr.
11845 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11846 code.
11847 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11848 types.
11849 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11850 (omp_check_defines): Check even the compat defines.
11851 * config/linux/ptrlock.c: New file.
11852 * config/linux/ptrlock.h: New file.
11853 * config/linux/wait.h: New file.
11854 * config/posix/ptrlock.c: New file.
11855 * config/posix/ptrlock.h: New file.
11856 * config/linux/bar.h (gomp_team_barrier_wait,
11857 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11858 (gomp_team_barrier_set_task_pending,
11859 gomp_team_barrier_clear_task_pending,
11860 gomp_team_barrier_set_waiting_for_tasks,
11861 gomp_team_barrier_waiting_for_tasks,
11862 gomp_team_barrier_done): New inlines.
11863 (gomp_barrier_t): Rewritten.
11864 (gomp_barrier_state_t): New typedef.
11865 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11866 gomp_barrier_wait_start): Rewritten.
11867 (gomp_barrier_wait_end): Change second argument to
11868 gomp_barrier_state_t.
11869 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11870 inlines.
11871 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11872 futex.h.
11873 (gomp_barrier_wait_end): Rewritten.
11874 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11875 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11876 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11877 (gomp_barrier_state_t): New typedef.
11878 (gomp_team_barrier_wait,
11879 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11880 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11881 into the return value. Return gomp_barrier_state_t.
11882 (gomp_team_barrier_set_task_pending,
11883 gomp_team_barrier_clear_task_pending,
11884 gomp_team_barrier_set_waiting_for_tasks,
11885 gomp_team_barrier_waiting_for_tasks,
11886 gomp_team_barrier_done): New inlines.
11887 (gomp_barrier_wait_end): Change second argument to
11888 gomp_barrier_state_t.
11889 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11890 inlines.
11891 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11892 (gomp_barrier_wait_end): Change second argument to
3e348fcc 11893 gomp_barrier_state_t.
a68ab351
JJ
11894 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11895 gomp_team_barrier_wake): New functions.
11896 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11897 futex.h.
11898 (gomp_futex_wake, gomp_futex_wait): New variables.
11899 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11900 * config/linux/lock.c: Rewrite to make locks task owned,
11901 for backwards compatibility provide the old entrypoints
11902 if symbol versioning. Include wait.h instead of libgomp.h and
11903 futex.h.
11904 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11905 * config/posix95/lock.c: Rewrite to make locks task owned,
11906 for backwards compatibility provide the old entrypoints
11907 if symbol versioning.
11908 * config/posix/lock.c: Rewrite to make locks task owned,
11909 for backwards compatibility provide the old entrypoints
11910 if symbol versioning.
11911 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11912 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11913 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11914 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11915 (sys_futex0): Return error code.
11916 (futex_wake, futex_wait): If ENOSYS was returned, clear
11917 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11918 (cpu_relax, atomic_write_barrier): New static inlines.
11919 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11920 (futex_wake, futex_wait): If ENOSYS was returned, clear
11921 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11922 (cpu_relax, atomic_write_barrier): New static inlines.
11923 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11924 (sys_futex0): Return error code.
11925 (futex_wake, futex_wait): If ENOSYS was returned, clear
11926 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11927 (cpu_relax, atomic_write_barrier): New static inlines.
11928 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11929 (sys_futex0): Return error code.
11930 (futex_wake, futex_wait): If ENOSYS was returned, clear
11931 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11932 (cpu_relax, atomic_write_barrier): New static inlines.
11933 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11934 (sys_futex0): Return error code.
11935 (futex_wake, futex_wait): If ENOSYS was returned, clear
11936 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11937 (cpu_relax, atomic_write_barrier): New static inlines.
11938 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11939 (sys_futex0): Return error code.
11940 (futex_wake, futex_wait): If ENOSYS was returned, clear
11941 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11942 (cpu_relax, atomic_write_barrier): New static inlines.
11943 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11944 futex.h.
11945 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11946 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11947 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11948 types.
11949 (omp_nest_lock_t): Change owner into void *, add lock field.
11950 * config/posix95/omp-lock.h: Include semaphore.h.
11951 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11952 (omp_lock_t): Use sem_t instead of mutex if semaphores
11953 aren't broken.
11954 (omp_nest_lock_t): Likewise. Change owner to void *.
11955 * config/posix/omp-lock.h: Include semaphore.h.
11956 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11957 (omp_lock_t): Use sem_t instead of mutex if semaphores
11958 aren't broken.
11959 (omp_nest_lock_t): Likewise. Add owner field.
11960
119612008-06-06 Jakub Jelinek <jakub@redhat.com>
11962
11963 * testsuite/libgomp.c/collapse-1.c: New test.
11964 * testsuite/libgomp.c/collapse-2.c: New test.
11965 * testsuite/libgomp.c/collapse-3.c: New test.
11966 * testsuite/libgomp.c/icv-1.c: New test.
11967 * testsuite/libgomp.c/icv-2.c: New test.
11968 * testsuite/libgomp.c/lib-2.c: New test.
11969 * testsuite/libgomp.c/lock-1.c: New test.
11970 * testsuite/libgomp.c/lock-2.c: New test.
11971 * testsuite/libgomp.c/lock-3.c: New test.
11972 * testsuite/libgomp.c/loop-4.c: New test.
11973 * testsuite/libgomp.c/loop-5.c: New test.
11974 * testsuite/libgomp.c/loop-6.c: New test.
11975 * testsuite/libgomp.c/loop-7.c: New test.
11976 * testsuite/libgomp.c/loop-8.c: New test.
11977 * testsuite/libgomp.c/loop-9.c: New test.
11978 * testsuite/libgomp.c/nested-3.c: New test.
11979 * testsuite/libgomp.c/nestedfn-6.c: New test.
11980 * testsuite/libgomp.c/sort-1.c: New test.
11981 * testsuite/libgomp.c/task-1.c: New test.
11982 * testsuite/libgomp.c/task-2.c: New test.
11983 * testsuite/libgomp.c/task-3.c: New test.
11984 * testsuite/libgomp.c/task-4.c: New test.
11985 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11986 to C++ testsuite default compiler options.
11987 * testsuite/libgomp.c++/collapse-1.C: New test.
11988 * testsuite/libgomp.c++/collapse-2.C: New test.
11989 * testsuite/libgomp.c++/ctor-10.C: New test.
11990 * testsuite/libgomp.c++/for-1.C: New test.
11991 * testsuite/libgomp.c++/for-2.C: New test.
11992 * testsuite/libgomp.c++/for-3.C: New test.
11993 * testsuite/libgomp.c++/for-4.C: New test.
11994 * testsuite/libgomp.c++/for-5.C: New test.
11995 * testsuite/libgomp.c++/loop-8.C: New test.
11996 * testsuite/libgomp.c++/loop-9.C: New test.
11997 * testsuite/libgomp.c++/loop-10.C: New test.
11998 * testsuite/libgomp.c++/task-1.C: New test.
11999 * testsuite/libgomp.c++/task-2.C: New test.
12000 * testsuite/libgomp.c++/task-3.C: New test.
12001 * testsuite/libgomp.c++/task-4.C: New test.
12002 * testsuite/libgomp.c++/task-5.C: New test.
12003 * testsuite/libgomp.c++/task-6.C: New test.
12004 * testsuite/libgomp.fortran/allocatable1.f90: New test.
12005 * testsuite/libgomp.fortran/allocatable2.f90: New test.
12006 * testsuite/libgomp.fortran/allocatable3.f90: New test.
12007 * testsuite/libgomp.fortran/allocatable4.f90: New test.
12008 * testsuite/libgomp.fortran/collapse1.f90: New test.
12009 * testsuite/libgomp.fortran/collapse2.f90: New test.
12010 * testsuite/libgomp.fortran/collapse3.f90: New test.
12011 * testsuite/libgomp.fortran/collapse4.f90: New test.
12012 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
12013 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
12014 * testsuite/libgomp.fortran/lib4.f90: New test.
12015 * testsuite/libgomp.fortran/lock-1.f90: New test.
12016 * testsuite/libgomp.fortran/lock-2.f90: New test.
12017 * testsuite/libgomp.fortran/nested1.f90: New test.
12018 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
12019 * testsuite/libgomp.fortran/strassen.f90: New test.
12020 * testsuite/libgomp.fortran/tabs1.f90: New test.
12021 * testsuite/libgomp.fortran/tabs2.f: New test.
12022 * testsuite/libgomp.fortran/task1.f90: New test.
12023 * testsuite/libgomp.fortran/task2.f90: New test.
12024 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
12025 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12026 * testsuite/libgomp.c/pr26943-2.c: Likewise.
12027 * testsuite/libgomp.c/pr26943-3.c: Likewise.
12028 * testsuite/libgomp.c/pr26943-4.c: Likewise.
12029
7a0112e7
JJ
120302008-05-23 Jakub Jelinek <jakub@redhat.com>
12031
12032 PR c++/36308
12033 * testsuite/libgomp.c++/ctor-11.C: New test.
12034 * testsuite/libgomp.c++/ctor-12.C: New test.
12035
91a5b394
JJ
120362008-05-15 Janis Johnson <janis187@us.ibm.com>
12037
12038 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
12039
c18c98c0
JJ
120402008-05-07 Jakub Jelinek <jakub@redhat.com>
12041
12042 PR middle-end/36106
12043 * testsuite/libgomp.c/atomic-5.c: New test.
12044 * testsuite/libgomp.c/atomic-6.c: New test.
12045 * testsuite/libgomp.c/autopar-1.c: New test.
12046
6d26724a
RW
120472008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12048
12049 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
12050 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
12051 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
12052 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
12053 * configure: Regenerate.
12054 * Makefile.in, testsuite/Makefile.in: Likewise.
12055
deb984e6
PB
120562008-04-18 Paolo Bonzini <bonzini@gnu.org>
12057
12058 PR bootstrap/35457
12059 * aclocal.m4: Regenerate.
12060 * configure: Regenerate.
12061
9e775963
JJ
120622008-03-18 Jakub Jelinek <jakub@redhat.com>
12063
8119fc93
JJ
12064 PR middle-end/35611
12065 * testsuite/libgomp.c/atomic-4.c: New test.
12066
9e775963
JJ
12067 PR libgomp/35625
12068 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
12069 (gomp_iter_guided_next): Likewise.
12070 * testsuite/libgomp.c/pr35625.c: New test.
12071
38d24731
RW
120722008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12073
12074 * aclocal.m4: Regenerate.
12075 * configure: Likewise.
12076 * Makefile.in: Likewise.
12077 * testsuite/Makefile.in: Likewise.
12078
d0fb20be
JJ
120792008-03-13 Jakub Jelinek <jakub@redhat.com>
12080
12081 PR middle-end/35185
12082 * testsuite/libgomp.c++/pr35185.C: New test.
12083
7c8f7639
JJ
120842008-03-12 Jakub Jelinek <jakub@redhat.com>
12085
12086 PR middle-end/35549
12087 * testsuite/libgomp.c/pr35549.c: New test.
12088
251923f5
JJ
120892008-03-06 Jakub Jelinek <jakub@redhat.com>
12090
12091 * testsuite/libgomp.c/atomic-3.c: New test.
12092
f489fba1
FXC
120932008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12094
12095 PR fortran/33197
251923f5 12096 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
12097 .F08 file suffixes.
12098
a1b25e49
PG
120992008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
12100
12101 PR libgomp/33131
12102 * configure.ac: Add ACX_HEADER_STRING.
12103 * env.c: Include strings.h.
12104 * aclocal.m4: Regenerate.
12105 * config.h.in: Regenerate.
12106 * configure: Regenerate.
12107 * Makefile.in: Regenerate.
12108 * testsuite/Makefile.in: Regenerate.
12109
6837b3b8
JJ
121102008-02-15 Jakub Jelinek <jakub@redhat.com>
12111
ac84c062
JJ
12112 PR middle-end/35196
12113 * testsuite/libgomp.c/pr35196.c: New test.
12114
6837b3b8
JJ
12115 PR middle-end/35130
12116 * testsuite/libgomp.fortran/pr35130.f90: New test.
12117 * testsuite/libgomp.c/pr35130.c: New test.
12118
c256730c
JJ
121192008-01-25 Jakub Jelinek <jakub@redhat.com>
12120
12121 PR middle-end/33880
12122 * testsuite/libgomp.c/pr33880.c: New test.
12123 * testsuite/libgomp.fortran/pr33880.f90: New test.
12124
c8e95542 121252008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
12126
12127 * configure: Regenerate.
12128
0f3e711e
JJ
121292008-01-08 Jakub Jelinek <jakub@redhat.com>
12130
12131 * configure.ac: Move futex checking into ../config/futex.m4.
12132 * configure: Rebuilt.
12133 * aclocal.m4: Rebuilt.
12134 * Makefile.in: Rebuilt.
12135
12136 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
12137 2007-10-15 ../config/tls.m4 change.
12138
5259c813
JJ
121392007-12-19 Jakub Jelinek <jakub@redhat.com>
12140
12141 PR c++/34513
12142 * testsuite/libgomp.c/pr34513.c: New test.
12143 * testsuite/libgomp.c++/pr34513.C: New test.
12144
ae8d8879
JH
121452007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
12146
12147 PR target/32765
12148 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
12149
2b4cf991
JJ
121502007-12-04 Jakub Jelinek <jakub@redhat.com>
12151
12152 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
12153
d2dda7fe
JJ
121542007-12-03 Jakub Jelinek <jakub@redhat.com>
12155
12156 * testsuite/libgomp.c/private-1.c: New test.
12157
d683ec81
PB
121582007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
12159 Paolo Bonzini <bonzini@gnu.org>
12160
12161 * Makefile.am: Use space as vpath separator. Use 'vpath %'
12162 instead of 'VPATH ='.
12163 * Makefile.in: Regenerate.
12164
a7415017
MK
121652007-11-23 Matthias Klose <doko@ubuntu.com>
12166
12167 * configure.ac: Adjust makeinfo version check.
12168 * configure: Regenerate.
12169
78e47463
JJ
121702007-11-10 Jakub Jelinek <jakub@redhat.com>
12171
12172 PR fortran/34020
12173 * testsuite/libgomp.fortran/pr34020.f90: New test.
12174
239371f9
JJ
121752007-11-06 Jakub Jelinek <jakub@redhat.com>
12176
12177 PR c++/33894
12178 * testsuite/libgomp.c++/atomic-1.C: New test.
12179
98a5fa94
JJ
121802007-10-25 Jakub Jelinek <jakub@redhat.com>
12181
12182 PR libgomp/33275
12183 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
12184 Make x and y integers rather than (implicit) reals. Add private (j)
12185 clause to the last omp parallel.
12186
3afcaaf4
MR
121872007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
12188
12189 * configure: Regenerate following changes to ../config/tls.m4.
12190
bd69daef
JJ
121912007-09-28 Jakub Jelinek <jakub@redhat.com>
12192
12193 * testsuite/libgomp.fortran/stack.f90: New test.
12194
1d0bd356
DS
121952007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
12196
12197 * config/mingw32/proc.c: New file.
12198
b3172cab
UB
121992007-09-05 Uros Bizjak <ubizjak@gmail.com>
12200
12201 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
12202 (main): Use __get_cpuid to get i386 target fetaures.
12203 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
12204 (main): Use __get_cpuid to get x86_64 target fetaures.
12205
6da17392
JH
122062007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
12207
12208 PR target/32765
12209 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
12210 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
12211
e1c82219
JJ
122122007-07-12 Jakub Jelinek <jakub@redhat.com>
12213
12214 PR fortran/32550
12215 * testsuite/libgomp.fortran/pr32550.f90: New test.
12216 * testsuite/libgomp.fortran/crayptr2.f90: New test.
12217
12a27363
L
122182007-07-05 H.J. Lu <hongjiu.lu@intel.com>
12219
12220 * aclocal.m4: Regenerated.
12221
5349080d
TB
122222007-07-05 Tobias Burnus <burnus@net-b.de>
12223
12224 PR fortran/32359
12225 * testsuite/libgomp.fortran/pr32359.f90: New.
12226
4f9c450c
JJ
122272007-07-02 Jakub Jelinek <jakub@redhat.com>
12228
12229 PR libgomp/32468
12230 * sections.c (GOMP_parallel_sections_start): Only decrease
12231 number of threads to COUNT if dyn_var is true.
12232 * testsuite/libgomp.c/pr32468.c: New test.
12233
28c67ed7
RO
122342007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12235
12236 PR libgomp/26308
12237 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
12238
64964499
JJ
122392007-06-21 Jakub Jelinek <jakub@redhat.com>
12240
12241 PR middle-end/32362
12242 * testsuite/libgomp.c/pr32362-1.c: New test.
12243 * testsuite/libgomp.c/pr32362-2.c: New test.
12244 * testsuite/libgomp.c/pr32362-3.c: New test.
12245
46d8fbd1
JJ
122462007-06-07 Jakub Jelinek <jakub@redhat.com>
12247
12248 * team.c (gomp_team_start): Fix setting up thread_attr
12249 stack size.
12250
82a6cadf
PB
122512007-06-02 Paolo Bonzini <bonzini@gnu.org>
12252
12253 * configure: Regenerate.
12254
1cf3d07d
SE
122552007-05-23 Steve Ellcey <sje@cup.hp.com>
12256
12257 * Makefile.in: Regenerate.
12258 * configure: Regenerate.
12259 * aclocal.m4: Regenerate.
12260 * testsuite/Makefile.in: Regenerate.
12261
12aac30b
JJ
122622007-05-04 Jakub Jelinek <jakub@redhat.com>
12263
12264 * config/linux/proc.c: New file.
12265
f1028b02
JJ
12266 PR libgomp/28482
12267 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
12268
06785a48
DF
122692007-04-19 Daniel Franke <franke.daniel@gmail.com>
12270
12271 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
12272
b3b08ba0
MK
122732007-04-16 Matthias Klose <doko@debian.org>
12274
12275 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
12276 flags if not building with -m64.
12277 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
12278 flag for i?86-*-* targets, if current target matches -m64.
12279
6b2c5ce0
SE
122802007-04-14 Steve Ellcey <sje@cup.hp.com>
12281
12282 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
12283 * Makefile.in: Regenerate.
12284
dd56fe7c
JDA
122852007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12286
12287 PR testsuite/31369
12288 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
12289 ld_library_path.
12290 * testsuite/libgomp.fortran/fortran.exp: Likewise.
12291
a0884cf0
JJ
122922007-04-04 Jakub Jelinek <jakub@redhat.com>
12293
12294 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
12295 decls.
12296 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
12297 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
12298 (parse_affinity): New function.
12299 (initialize_env): Call it and gomp_init_affinity.
12300 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
12301 create new pthread_attr_t and call gomp_init_thread_affinity
12302 on it for each thread before passing the attribute to pthread_create.
12303 * config/linux/affinity.c: New file.
12304 * config/posix/affinity.c: New file.
12305 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
12306 * configure: Rebuilt.
12307 * config.h.in: Rebuilt.
12308 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
12309 * Makefile.in: Rebuilt.
12310
1850744b
AT
123112007-03-23 Andreas Tobler <a.tobler@schweiz.org>
12312
12313 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
12314 *-*-darwin*.
12315 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
12316 and use it if found.
12317
516f1ed8
UB
123182007-03-18 Uros Bizjak <ubizjak@gmail.com>
12319
12320 * testsuite/config/default.exp: New file.
12321 * testsuite/lib/libgomp.exp: New file.
12322 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
12323 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
12324 load_lib *, load_gcc_lib *): Move to libgomp.exp.
12325 (libgomp_load): Remove.
12326 * testsuite/lib/libgomp.exp (libgomp_init): Compute
12327 always_ld_library_path, not ld_library_path. Set additional_flags
12328 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
12329 (target_compile): Do not call libgomp_init. Append lang_library_path
12330 and lang_link_flags to options.
12331 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
12332 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
12333 here.
12334 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
12335 always_ld_library_path. Set LD_LIBRARY_PATH here.
12336 * testsuite/libgomp.fortran/fortran.exp: Ditto.
12337 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
12338 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
12339 CX8 flag.
12340 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
12341 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
12342 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
12343 * testsuite/libgomp.c/pr29947-1.c: Ditto.
12344 * testsuite/libgomp.c/atomic-10.c: Ditto.
12345
2ada56f5
JJ
123462007-03-21 Jakub Jelinek <jakub@redhat.com>
12347
12348 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
12349 dg-final cleanup-modules line.
12350 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
12351 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
12352 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
12353 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12354 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12355 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12356 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12357
f210f1cd
AS
123582007-03-18 Andreas Schwab <schwab@suse.de>
12359
12360 * acinclude.m4: Adjust regular expression for ld version
12361 extraction.
12362 * configure: Regenerate.
12363
c4dc950d
BM
123642007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
12365
12366 * Makefile.am: Add install-pdf target as copied from
12367 automake v1.10 rules.
12368 * Makefile.in: Regenerate
12369
e02a048f
JJ
123702007-02-07 Jakub Jelinek <jakub@redhat.com>
12371
78e075d4
JJ
12372 PR libgomp/28486
12373 * configure: Regenerate.
12374
e02a048f
JJ
12375 PR c++/30703
12376 * testsuite/libgomp.c++/pr30703.C: New test.
12377
60def7ed
JJ
123782007-02-02 Jakub Jelinek <jakub@redhat.com>
12379
12380 Revert:
12381 2006-07-05 Eric Christopher <echristo@apple.com>
12382 * configure.ac: Depend addition of -pthread on host OS.
12383 * configure: Regenerate.
12384
f1b0882e
RW
123852007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12386
12387 * libgomp.texi: Fix spacing after abbreviations.
12388
748b9d7c
DF
123892007-01-31 Daniel Franke <franke.daniel@gmail.com>
12390
12391 PR libgomp/30546
12392 * configure.ac: Add check for makeinfo
12393 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
a0221aee 12394 if an appropriate version of makeinfo is found.
748b9d7c
DF
12395 * aclocal.m4: Regenerated.
12396 * configure: Regenerated.
12397 * Makefile.in: Regenerated.
12398 * testsuite/Makefile.in: Regenerated.
12399
14734fc7
DF
124002007-01-29 Daniel Franke <franke.daniel@gmail.com>
12401
12402 PR libgomp/30540
12403 * libgomp.texi: More about implementation-dependent settings.
12404
7befd5d2
TB
124052007-01-26 Tobias Burnus <burnus@net-b.de>
12406
12407 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12408
4288fea2
JJ
124092007-01-24 Jakub Jelinek <jakub@redhat.com>
12410
12411 PR middle-end/30494
12412 * testsuite/libgomp.c/pr30494.c: New test.
12413
627ab4b8
TT
124142007-01-15 Tom Tromey <tromey@redhat.com>
12415
12416 * configure: Rebuilt.
12417 * configure.ac: Fixed comment.
12418
7c2b7f45
DF
124192007-01-14 Daniel Franke <franke.daniel@gmail.com>
12420
12421 * libgomp.texi: Document implementation specific default values of
12422 environment variables.
12423
3721b9e1
DF
124242006-12-21 Daniel Franke <franke.daniel@gmail.com>
12425
12426 PR libgomp/28209
12427 * libgomp.texi: New file.
12428 * configure.ac: Add --enable-generated-files-in-srcdir option.
12429 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12430 files to srcdir.
12431 * Makefile.in: Regenerated.
12432 * config.h.in: Regenerated.
12433 * testsuite/Makefile.in: Regenerated.
12434 * NOTES: Removed.
12435
62bd6216
DF
124362006-12-04 Daniel Franke <franke.daniel@gmail.com>
12437
12438 PR libgomp/29949
12439 * env.c (omp_set_num_threads): Set illegal thread count to 1.
12440
aad741f4
EB
124412006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12442
12443 * configure: Regenerate.
12444
22568cc6
JJ
124452006-12-04 Jakub Jelinek <jakub@redhat.com>
12446
12447 PR libgomp/29947
12448 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
12449 start if there shouldn't be any loop iterations.
12450 (gomp_loop_ordered_static_start): Remove start == end test.
12451 * testsuite/libgomp.c/pr29947-1.c: New test.
12452 * testsuite/libgomp.c/pr29947-2.c: New test.
12453
a9690009
EB
124542006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12455
12456 * configure.tgt: Force initial-exec TLS model on Linux only.
12457
597c25e6
DJ
124582006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
12459
12460 * configure: Regenerated.
12461
6acf0b38
UB
124622006-11-09 Uros Bizjak <ubizjak@gmail.com>
12463
12464 * env.c (parse_schedule): Reject out of range values.
12465 (parse_unsigned_long): Reject out of range, negative or zero values.
12466
a7a53ca5
JJ
124672006-10-29 Jakub Jelinek <jakub@redhat.com>
12468
12469 PR fortran/29629
12470 * testsuite/libgomp.fortran/pr29629.f90: New test.
12471
6d4d216a
EB
124722006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
12473
12474 PR libgomp/29494
12475 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12476 * config/posix95: New directory.
12477 * config/posix95/omp-lock.h: New file.
12478 * config/posix95/lock.c: Likewise.
12479
5b043f08
GK
124802006-10-14 Geoffrey Keating <geoffk@apple.com>
12481
12482 * aclocal.m4: Regenerate.
12483 * configure: Regenerate.
12484
b50019f0
DS
124852006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12486
12487 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12488 '<' to '<='.
12489
8887708e
DS
124902006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
12491
12492 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12493 test.
12494 * configure: Regenerate.
12495 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12496
9b9e4cd6
JJ
124972006-09-26 Jakub Jelinek <jakub@redhat.com>
12498
a70ad3bb
JJ
12499 PR middle-end/25261
12500 PR middle-end/28790
12501 * testsuite/libgomp.c/nestedfn-4.c: New test.
12502 * testsuite/libgomp.c/nestedfn-5.c: New test.
12503 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12504
9b9e4cd6
JJ
12505 PR fortran/29097
12506 * testsuite/libgomp.fortran/condinc1.f: New test.
12507 * testsuite/libgomp.fortran/condinc2.f: New test.
12508 * testsuite/libgomp.fortran/condinc3.f90: New test.
12509 * testsuite/libgomp.fortran/condinc4.f90: New test.
12510 * testsuite/libgomp.fortran/condinc1.inc: New file.
12511
2fb31455
TT
125122006-09-18 Tom Tromey <tromey@redhat.com>
12513
12514 * configure: Rebuilt.
12515
c663e301
JM
125162006-09-13 Joseph S. Myers <joseph@codesourcery.com>
12517
12518 PR c/28768
12519 PR preprocessor/14634
12520 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12521 to AC_DEFINE.
12522 * configure: Regenerate.
12523
38371be9
SK
125242006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
12525
12526 * testsuite/libgomp.fortran/reduction3.f90: Change
12527 -2147483648 to -huge(i)-1 to avoid overflow.
12528 * testsuite/libgomp.fortran/reduction4.f90: Change
12529 Z'ffffffff' to not(0) to avoid overflow.
12530
571d5ac5
JM
125312006-08-26 Joseph S. Myers <joseph@codesourcery.com>
12532
12533 PR libgomp/25938
12534 * Makefile.am (libsubincludedir): New.
12535 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12536 * Makefile.in: Regenerate.
12537
89b3e3cd
JJ
125382006-08-17 Jakub Jelinek <jakub@redhat.com>
12539
12540 PR libgomp/28725
12541 * env.c: Include ctype.h.
12542 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12543 leading and/or trailing whitespace and compare strings case
12544 insensitively.
12545
742fae05
JJ
125462006-07-16 Jakub Jelinek <jakub@redhat.com>
12547
12548 PR fortran/28390
12549 * testsuite/libgomp.fortran/pr28390.f: New test.
12550
a1daed2d
EC
125512006-07-05 Eric Christopher <echristo@apple.com>
12552
12553 * configure.ac: Depend addition of -pthread on host OS.
12554 * configure: Regenerate.
12555
5d7b5199
JJ
125562006-06-21 Jakub Jelinek <jakub@redhat.com>
12557
12558 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12559 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12560 defined.
12561
fe5568e9
JJ
125622006-06-20 Jakub Jelinek <jakub@redhat.com>
12563
12564 PR libgomp/26175
12565 PR libgomp/26477
12566 * configure.ac: If neither --enable-linux-futex nor
12567 --disable-linux-futex is passed, determine the default by checking
12568 for compiling and/or running against NPTL. With --enable-linux-futex,
12569 check if SYS_gettid and SYS_futex are defined.
12570 * configure: Rebuilt.
12571
c3b11a40
RH
125722006-06-14 Richard Henderson <rth@redhat.com>
12573
12574 PR libgomp/28008
12575 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12576 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12577
d0d1b24d
RH
125782006-06-09 Richard Henderson <rth@redhat.com>
12579
12580 * env.c (gomp_nthreads_var): Change to unsigned long.
12581 (gomp_run_sched_chunk): Likewise.
12582 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12583 (initialize_env): Initialize gomp_thread_attr.
12584 * libgomp.h (gomp_nthreads_var): Update decl.
12585 (gomp_run_sched_chunk): Likewise.
12586 (gomp_thread_attr): Declare.
12587 * team.c (gomp_thread_attr): Export.
12588 (initialize_team): Don't initialize it.
12589
cd75853e
JJ
125902006-06-09 Jakub Jelinek <jakub@redhat.com>
12591
12592 PR fortran/27916
12593 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12594 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12595
33815e0c
FXC
125962006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12597
12598 * config/mingw32/time.c: New file.
12599 * configure.tgt: Use it.
12600
6667de0d
CD
126012006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12602
12603 * Makefile.am: Add install-html target. Add install-html to .PHONY
12604 * Makefile.in: Regenerate.
12605
e962c46b
JDA
126062006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12607
12608 PR libgomp/27612
12609 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12610 * testsuite/libgomp.c/critical-1.c: Likewise.
12611 * testsuite/libgomp.c/loop-1.c: Likewise.
12612 * testsuite/libgomp.c/loop-2.c: Likewise.
12613 * testsuite/libgomp.c/single-1.c: Likewise.
12614 * testsuite/libgomp.c/ordered-1.c: Likewise.
12615 * testsuite/libgomp.c/ordered-2.c: Likewise.
12616
eeb1d9e0
JJ
126172006-05-15 Jakub Jelinek <jakub@redhat.com>
12618
12619 PR middle-end/27416
12620 * libgomp.fortran/pr27416-1.f90: New test.
12621
693d710f
JJ
126222006-05-03 Jakub Jelinek <jakub@redhat.com>
12623
12624 PR fortran/27395
12625 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12626 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12627
8ca5b2a2
JJ
126282006-05-02 Jakub Jelinek <jakub@redhat.com>
12629
12630 PR c++/26943
12631 * testsuite/libgomp.c/pr26943-1.c: New test.
12632 * testsuite/libgomp.c/pr26943-2.c: New test.
12633 * testsuite/libgomp.c/pr26943-3.c: New test.
12634 * testsuite/libgomp.c/pr26943-4.c: New test.
12635 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12636 * testsuite/libgomp.c++/pr26943.C: New test.
12637
077b0dfb
JJ
126382006-05-02 Jakub Jelinek <jakub@redhat.com>
12639
12640 PR middle-end/27337
12641 * testsuite/libgomp.c++/pr27337.C: New test.
12642
91b6c26d
JJ
126432006-04-26 Jakub Jelinek <jakub@redhat.com>
12644
12645 PR c/26171
12646 * testsuite/libgomp.c/pr26171.c: New test.
12647
60e1758f
RH
126482006-04-25 Richard Henderson <rth@redhat.com>
12649
12650 PR libgomp/25865
12651 * configure.ac: Use GCC_CHECK_TLS.
12652 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12653 * Makefile.in, aclocal.m4, configure: Regenerate.
12654
615baed7
MK
126552006-04-10 Matthias Klose <doko@debian.org>
12656
12657 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12658 directory names containing underscores.
12659
fae2b46b
JJ
126602006-03-21 Jakub Jelinek <jakub@redhat.com>
12661
12662 PR c++/26691
12663 * testsuite/libgomp.c++/pr26691.C: New test.
12664
11a5f608
JJ
126652006-03-13 Jakub Jelinek <jakub@redhat.com>
12666
12667 * testsuite/libgomp.fortran/retval2.f90: New test.
12668
1799e5d5
RH
126692006-03-09 Diego Novillo <dnovillo@redhat.com>
12670
12671 * testsuite/libgomp.c++: New directory.
12672
d349482e
AT
126732006-02-25 Shantonu Sen <ssen@opendarwin.org>
12674
12675 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12676 * config/posix/sem.c: Implement the above.
12677
126782006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12679
12680 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12681 define HAVE_BROKEN_POSIX_SEMAPHORES.
12682 * configure: Rebuilt.
12683 * config.h.in: Rebuilt.
12684
124452c9
FXC
126852006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12686
12687 PR bootstrap/26161
12688 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12689 for the other pthread check.
12690 * configure: Regenerate.
12691 * config.h.in: Regenerate.
12692
dd8d6dfe
JJ
126932006-02-15 Jakub Jelinek <jakub@redhat.com>
12694
12695 PR libgomp/25938
12696 PR libgomp/25984
12697 * Makefile.am (fincludedir): New variable.
12698 (nodist_include_HEADERS): Remove Fortran files.
12699 (nodist_finclude_HEADERS): New variable.
12700 * Makefile.in: Regenerated.
12701
6c7a4dfd
JJ
127022006-02-13 Jakub Jelinek <jakub@redhat.com>
12703
12704 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12705 Remove tests for returning assumed character length arrays.
12706
5142e08b
RS
127072006-02-12 Roger Sayle <roger@eyesopen.com>
12708 John David Anglin <dave@hiauly1.hia.nrc.ca>
12709
12710 PR libgomp/25936
12711 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 12712
5821fba8
UW
127132006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12714
12715 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12716
cb2bbc67
EB
127172006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12718
12719 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12720 part of LD_LIBRARY_PATH manually.
12721
f05ee80c
L
127222006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12723
12724 PR libgomp/25852
12725 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12726 libgomp_init.
12727
03b8fe49
PB
127282005-01-25 Paolo Bonzini <bonzini@gnu.org>
12729
12730 PR libgomp/25884
f05ee80c
L
12731 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12732 * configure.ac (PERL): Don't set.
12733 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12734 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12735 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12736 * omp.h.in: Wrap the new configure substitutions with @ characters.
12737 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12738 * aclocal.m4, configure, Makefile.in: Regenerate.
12739 * mkomp_h.pl: Delete.
03b8fe49 12740
18cbfd85
PB
127412005-01-24 Paolo Bonzini <bonzini@gnu.org>
12742
12743 PR libgomp/25259
12744 * configure.ac: Use GCC_HEADER_STDINT.
12745 * libgomp.h: Include gstdint.h.
12746 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12747 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12748
c41303c6
RH
127492006-01-24 Richard Henderson <rth@redhat.com>
12750
12751 PR libgomp/25942
12752 * configure.ac: Add AM_MAINTAINER_MODE.
12753 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12754
149b9553
DN
127552006-01-24 Diego Novillo <dnovillo@redhat.com>
12756
12757 * Makefile.in: Regenerate.
12758 * testsuite/Makefile.in: Regenerate.
12759 * aclocal.m4: Regenerate.
12760
192a50ad
AT
127612006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12762
12763 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12764 Solaris.
12765 * configure.ac: Add check for loadavg.h.
12766 (link_gomp): Adjust comment.
12767 * configure: Regenerate.
12768 * config.h.in: Regenerate.
12769
a55b8e18
SE
127702006-01-21 Steve Ellcey <sje@cup.hp.com>
12771
12772 PR libgomp/25877
12773 * configure.ac: Remove check for alloca.h.
12774 * configure: Regenerate.
12775 * config.h.in: Regenerate.
12776 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12777 * team.c: Remove use of alloca.h.
12778 Call gomp_alloca instead of alloca.
12779
692eeb34
SE
127802006-01-20 Steve Ellcey <sje@cup.hp.com>
12781
12782 PR libgomp/25877
12783 * team.c: Add include of alloca.h.
12784 * configure.ac: Add check for alloca.h.
12785 * configure: Regenerate.
12786 * config.h.in: Regenerate.
12787
953ff289
DN
127882006-01-17 Jakub Jelinek <jakub@redhat.com>
12789
12790 PR fortran/25219
12791 * testsuite/libgomp.fortran/pr25219.f90: New test.
12792
127932005-12-05 Uros Bizjak <uros@kss-loka.si>
12794
12795 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12796 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12797 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12798 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12799 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12800 testsuite/libgomp.fortran/threadprivate1.f90,
12801 testsuite/libgomp.fortran/threadprivate2.f90,
12802 testsuite/libgomp.fortran/threadprivate3.f90,
12803 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12804 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12805 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12806 effective-target to TLS runtime.
12807
12808 * testsuite/libgomp.fortran/pr25162.f: Require
12809 effective-target TLS runtime.
12810
128112005-12-01 Jakub Jelinek <jakub@redhat.com>
12812
12813 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12814 * testsuite/libgomp.c/nestedfn-3.c: New test.
12815
128162005-11-30 Jakub Jelinek <jakub@redhat.com>
12817
12818 PR fortran/25162
12819 * testsuite/libgomp.fortran/pr25162.f: New test.
12820
128212005-11-28 Jakub Jelinek <jakub@redhat.com>
12822
12823 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12824 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12825
128262005-11-25 Jakub Jelinek <jakub@redhat.com>
12827
12828 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12829 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12830 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12831 single.c, team.c, work.c, config/linux/alpha/futex.h,
12832 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12833 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12834 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12835 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12836 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12837 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12838 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12839 FSF address.
12840
128412005-11-18 Jakub Jelinek <jakub@redhat.com>
12842
12843 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12844 to nodist_noinst_HEADERS.
12845 * Makefile.in: Rebuilt.
12846
12847 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12848 add integer count field.
12849 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12850 omp_nest_lock_t type change.
12851 (omp_init_nest_lock): Likewise. Initialize count to 0.
12852 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12853 Increment count.
12854 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12855 Decrement count.
12856 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12857 Increment count if successful and return the new nesting level.
12858 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12859 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12860 * testsuite/libgomp.c/lib-1.c: New test.
12861 * testsuite/libgomp.fortran/lib1.f90: New test.
12862 * testsuite/libgomp.fortran/lib2.f: New test.
12863 * testsuite/libgomp.fortran/lib3.f: New test.
12864
128652005-11-17 Richard Henderson <rth@redhat.com>
12866
12867 PR 24845
12868 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12869 * configure.ac (link_gomp): New. Substitute it.
12870 (AC_CONFIG_FILES): Add libgomp.spec.
12871 * libgomp.spec.in: New file.
12872 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12873 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12874
128752005-11-18 Jakub Jelinek <jakub@redhat.com>
12876
12877 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12878 reduction(-:var) behaving the same as reduction(+:var).
12879 * testsuite/libgomp.c/reduction-4.c: New test.
12880
128812005-11-15 Uros Bizjak <uros@kss-loka.si>
12882
12883 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12884 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12885 testsuite/libgomp.c/copyin-3.c,
12886 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12887 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12888 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12889 testsuite/libgomp.c++/pr24455.C,
12890 testsuite/libgomp.fortran/threadprivate1.f90,
12891 testsuite/libgomp.fortran/threadprivate2.f90,
12892 testsuite/libgomp.fortran/threadprivate3.f90,
12893 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12894 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12895 testsuite/libgomp.fortran/omp_parse3.f90: Require
12896 effective-target TLS.
12897
128982005-11-14 Diego Novillo <dnovillo@redhat.com>
12899
12900 * HEADER: Remove.
12901
129022005-11-13 Jakub Jelinek <jakub@redhat.com>
12903
12904 PR libgomp/24797
12905 * team.c (initialize_team): Pass NULL rather than free as
12906 pthread_key_create destructor. Initialize thread specific data
12907 pointer in initial thread to a static local variable rather than
12908 malloced memory.
12909
129102005-11-11 Uros Bizjak <uros@kss-loka.si>
12911
12912 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12913 its location to ld_library_path.
12914
129152005-11-10 Diego Novillo <dnovillo@redhat.com>
12916
12917 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12918
129192005-11-10 Diego Novillo <dnovillo@redhat.com>
12920
12921 * testsuite/libgomp.c: Rename from libgomp.dg.
12922
129232005-11-09 Diego Novillo <dnovillo@redhat.com>
12924
12925 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12926 threadprivate variable 'i'.
12927
129282005-11-09 Jakub Jelinek <jakub@redhat.com>
12929
12930 * config/linux/s390/futex.h: New file.
12931 * configure.tgt: Use it.
12932
12933 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12934 before the parallel.
12935
129362005-11-08 Jakub Jelinek <jakub@redhat.com>
12937
12938 PR c++/24734
12939 * testsuite/libgomp.c++/master-1.C: New test.
12940
129412005-11-07 Jakub Jelinek <jakub@redhat.com>
12942
12943 * testsuite/libgomp.dg/copyin-3.c: New test.
12944
129452005-11-07 Jakub Jelinek <jakub@redhat.com>
12946
12947 * testsuite/libgomp.fortran/retval1.f90: New test.
12948 * testsuite/libgomp.fortran/vla7.f90: New test.
12949
129502005-11-06 Jakub Jelinek <jakub@redhat.com>
12951
12952 * testsuite/libgomp.fortran/vla2.f90: New test.
12953 * testsuite/libgomp.fortran/vla3.f90: New test.
12954 * testsuite/libgomp.fortran/vla4.f90: New test.
12955 * testsuite/libgomp.fortran/vla5.f90: New test.
12956 * testsuite/libgomp.fortran/vla6.f90: New test.
12957
129582005-11-01 Jakub Jelinek <jakub@redhat.com>
12959
12960 * config/linux/sparc/futex.h: New file.
12961 * configure.tgt: Use it.
12962 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12963
12964 * critical.c: Include stdlib.h.
12965 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12966 ignoring return value.
12967 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12968 LIBGOMP_CHECK_SYNC_BUILTINS check.
12969 * configure: Rebuilt.
12970
129712005-10-31 Jakub Jelinek <jakub@redhat.com>
12972
12973 * testsuite/libgomp.fortran/vla1.f90: New test.
12974
129752005-10-31 Richard Henderson <rth@redhat.com>
12976
12977 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12978 setting 's' in different threads.
12979
129802005-10-31 Jakub Jelinek <jakub@redhat.com>
12981
12982 * libgomp.h (attribute_hidden, ialias): Define.
12983 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12984 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12985 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12986 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12987 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12988 omp_test_lock, omp_test_nest_lock): Likewise.
12989 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12990 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12991 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12992 omp_test_lock, omp_test_nest_lock): Likewise.
12993 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12994 omp_get_dynamic, omp_get_nested): Likewise.
12995 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12996 omp_get_thread_num, omp_in_parallel): Likewise.
12997 * fortran.c (ialias_redirect): Define.
12998 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12999 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
13000 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
13001 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
13002 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
13003 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
13004 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
13005 omp_get_wtime): Add ialias_redirect.
13006
130072005-10-30 Jakub Jelinek <jakub@redhat.com>
13008
13009 * fortran.c: Include stdlib.h.
13010
130112005-10-29 Jakub Jelinek <jakub@redhat.com>
13012
13013 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
13014 * Makefile.in: Regenerated.
13015
130162005-10-28 Jakub Jelinek <jakub@redhat.com>
13017
13018 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
13019 * libgomp_f.h.in (omp_check_defines): New function.
13020 * env.c: Include libgomp_f.h.
13021 (initialize_env): Call omp_check_defines.
13022
13023 * testsuite/libgomp.dg/copyin-2.c: New test.
13024 * testsuite/libgomp.c++/copyin-2.C: New test.
13025 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
13026
13027 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
13028 * testsuite/libgomp.fortran/sharing2.f90: New test.
13029
13030 * testsuite/libgomp.dg/copyin-1.c: New test.
13031 * testsuite/libgomp.c++/copyin-1.C: New test.
13032
130332005-10-26 Jakub Jelinek <jakub@redhat.com>
13034
13035 * testsuite/libgomp.fortran/crayptr1.f90: New test.
13036
13037 * testsuite/libgomp.fortran/workshare1.f90: New test.
13038
13039 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
13040 only test.
13041 * libgomp.fortran/sharing1.f90: New test.
13042
130432005-10-24 Jakub Jelinek <jakub@redhat.com>
13044
13045 PR c++/24502
13046 * testsuite/libgomp.c++/loop-7.C: New test.
13047
13048 * testsuite/libgomp.dg/nestedfn-2.c: New test.
13049
13050 * testsuite/libgomp.dg/nestedfn-1.c: New test.
13051 * testsuite/libgomp.fortran/reduction6.f90: New test.
13052 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
13053
130542005-10-23 Richard Henderson <rth@redhat.com>
13055
13056 * testsuite/libgomp.c++/ctor-1.C: New.
13057 * testsuite/libgomp.c++/ctor-2.C: New.
13058 * testsuite/libgomp.c++/ctor-3.C: New.
13059 * testsuite/libgomp.c++/ctor-4.C: New.
13060 * testsuite/libgomp.c++/ctor-5.C: New.
13061 * testsuite/libgomp.c++/ctor-6.C: New.
13062 * testsuite/libgomp.c++/ctor-7.C: New.
13063 * testsuite/libgomp.c++/ctor-8.C: New.
13064 * testsuite/libgomp.c++/ctor-9.C: New.
13065
130662005-10-21 Diego Novillo <dnovillo@redhat.com>
13067
13068 PR 24455
13069 * testsuite/libgomp.c++/pr24455-1.C: New test.
13070 * testsuite/libgomp.c++/pr24455.C: New test.
13071 * testsuite/libgomp.dg/pr24455-1.c: New test.
13072 * testsuite/libgomp.dg/pr24455.c: New test.
13073
130742005-10-20 Richard Henderson <rth@redhat.com>
13075
13076 * testsuite/libgomp.c++/loop-6.C: New.
13077 * testsuite/libgomp.dg/loop-3.c: New.
13078
130792005-10-20 Jakub Jelinek <jakub@redhat.com>
13080
13081 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
13082 explicitly private.
13083 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
13084 explicitly shared.
13085
130862005-10-19 Diego Novillo <dnovillo@redhat.com>
13087
13088 * testsuite/libgomp.fortran/jacobi.f: New test.
13089
130902005-10-19 Richard Henderson <rth@redhat.com>
13091
13092 * configure.tgt (i?86-linux): Default to with_arch instead of
13093 CFLAGS. Add -mtune to match target_cpu.
13094 (x86_64-linux): Tune to i686.
13095
13096 * fortran.c (omp_test_nest_lock_): Fix typo.
13097
130982005-10-19 Jakub Jelinek <jakub@redhat.com>
13099
13100 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13101 gomp_ordered_sync): Do nothing if team->nthreads == 1.
13102 * testsuite/libgomp.dg/ordered-3.c: New test.
13103
13104 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
13105 Remove volatile keyword.
13106
13107 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
13108 in COMMON block to avoid warnings on 64-bit targets.
13109
131102005-10-18 Diego Novillo <dnovillo@redhat.com>
13111
13112 * testsuite/libgomp.dg/shared-3.c: New test.
13113
131142005-10-18 Jakub Jelinek <jakub@redhat.com>
13115
13116 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
13117 * testsuite/libgomp.fortran/reduction5.f90: New test.
13118
131192005-10-18 Jakub Jelinek <jakub@redhat.com>
13120
13121 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
13122 dg-options.
13123 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
13124 flush loop now that __sync_synchronize has proper memory barrier.
13125 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
13126 Add -ffixed-form to dg-options.
13127
131282005-10-17 Diego Novillo <dnovillo@redhat.com>
13129
13130 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
13131 from subdirectories.
13132 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
13133 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
13134 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
13135 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
13136 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
13137 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
13138 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
13139 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
13140 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
13141 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
13142 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
13143 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
13144 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
13145 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
13146 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
13147 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
13148 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
13149 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
13150 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
13151 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
13152 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
13153 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
13154 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
13155 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
13156 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
13157
131582005-10-17 Jakub Jelinek <jakub@redhat.com>
13159
13160 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
13161 lang_library_path exists. Use find instead of glob to gather tests.
13162 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
13163
131642005-10-17 Diego Novillo <dnovillo@redhat.com>
13165
13166 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
13167 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
13168 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
13169 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
13170 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
13171 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
13172 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
13173 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
13174 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
13175 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
13176 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
13177 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
13178 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
13179
131802005-10-15 Jakub Jelinek <jakub@redhat.com>
13181
13182 * testsuite/libgomp.dg/vla-1.c: New test.
13183
13184 * testsuite/libgomp.fortran/reference2.f90: New test.
13185
13186 * testsuite/libgomp.fortran/character2.f90: Remove explicit
13187 declaration of omp_get_thread_num.
13188 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
13189 use omp_lib.
13190
13191 * testsuite/libgomp.fortran/reduction1.f90: New test.
13192 * testsuite/libgomp.fortran/reduction2.f90: New test.
13193 * testsuite/libgomp.fortran/reduction3.f90: New test.
13194 * testsuite/libgomp.fortran/reduction4.f90: New test.
13195
131962005-10-13 Richard Henderson <rth@redhat.com>
13197
13198 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
13199 * Makefile.in: Regenerate.
13200 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
13201 * libgomp.h: Include bar.h.
13202 (struct gomp_barrier): Remove.
13203 (struct gomp_team): Add barrier. Replace master_barrier with
13204 master_release. Replace threads with ordered_release.
13205 (struct gomp_thread): Replace barrier with release.
13206 * ordered.c (gomp_ordered_first): Update for ordered_release change.
13207 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
13208 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
13209 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
13210 (GOMP_single_copy_end): Likewise.
13211 * team.c (gomp_threads_dock): New.
13212 (gomp_barrier_init, gomp_barrier_destroy): Remove.
13213 (gomp_thread_start): Use gomp_barrier_wait.
13214 (new_team, free_team): Update for gomp_team changes.
13215 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
13216 (gomp_team_end): Use gomp_barrier_wait.
13217 (initialize_team): Update for gomp_thread changes.
13218 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
13219 (gomp_work_share_end_nowait): Use atomic ops when available.
13220 * config/linux/bar.c, config/linux/bar.h: New files.
13221 * config/posix/bar.c, config/posix/bar.h: New files.
13222
132232005-10-13 Jakub Jelinek <jakub@redhat.com>
13224
13225 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
13226 * testsuite/libgomp.dg/single-2.c: New test.
13227
13228 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
13229 lang_link_flags): Unset, so that they aren't inherited from previously
13230 sourced *.exp.
13231
13232 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
13233
132342005-10-12 Richard Henderson <rth@redhat.com>
13235
13236 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
13237 (libgomp_init): Use lang_test_file, lang_library_path, and
13238 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
13239
13240 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
13241 (lang_test_file, lang_link_flags): New.
13242 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
13243
13244 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
13245 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
13246 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
13247 testsuite/libgomp.c++/parallel-1.C,
13248 testsuite/libgomp.c++/reduction-1.C,
13249 testsuite/libgomp.c++/reduction-2.C,
13250 testsuite/libgomp.c++/reduction-3.C,
13251 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
13252 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
13253 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
13254 New files, largely cribbed from the C testsuite.
13255
132562005-10-12 Jakub Jelinek <jakub@redhat.com>
13257
13258 * testsuite/libgomp.fortran/character1.f90: New test.
13259 * testsuite/libgomp.fortran/character2.f90: New test.
13260
13261 * testsuite/libgomp.dg/nested-1.c: New test.
13262 * testsuite/libgomp.dg/nested-2.c: New test.
13263 * testsuite/libgomp.fortran/do1.f90: New test.
13264 * testsuite/libgomp.fortran/do2.f90: New test.
13265
13266 * testsuite/libgomp.fortran/reference1.f90: New test.
13267
132682005-10-11 Jakub Jelinek <jakub@redhat.com>
13269
13270 * testsuite/libgomp.dg/reduction-1.c: New test.
13271 * testsuite/libgomp.dg/reduction-2.c: New test.
13272 * testsuite/libgomp.dg/reduction-3.c: New test.
13273
132742005-10-10 Jakub Jelinek <jakub@redhat.com>
13275
13276 * testsuite/libgomp.dg/atomic-1.c: New test.
13277 * testsuite/libgomp.dg/atomic-2.c: New test.
13278
132792005-10-09 Richard Henderson <rth@redhat.com>
13280
13281 * critical.c (atomic_lock): New.
13282 (initialize_critical): Initialize it.
13283 (GOMP_atomic_start, GOMP_atomic_end): New.
13284 * libgomp.map: Export them.
13285 * libgomp_g.h: Declare them.
13286
13287 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
13288
132892005-10-02 Richard Henderson <rth@redhat.com>
13290
13291 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
13292 to XCFLAGS instead of CFLAGS.
13293
132942005-09-30 Richard Henderson <rth@redhat.com>
13295
13296 * configure.ac: Determine whether -pthread or -lpthread is needed.
13297 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
93d90219 13298 * Makefile.in, configure: Rebuild.
953ff289
DN
13299
133002005-09-28 Richard Henderson <rth@redhat.com>
13301
13302 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
13303 * testsuite/libgomp.dg/omp-single-3.c: New test.
13304
133052005-09-28 Diego Novillo <dnovillo@redhat.com>
13306
13307 * testsuite/libgomp.dg/omp-single-2.c: New test.
13308 * testsuite/libgomp.dg/shared-2.c: Fix return code.
13309
133102005-09-27 Richard Henderson <rth@redhat.com>
13311
13312 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
13313 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
13314
133152005-09-27 Jakub Jelinek <jakub@redhat.com>
13316
13317 * testsuite/libgomp.dg/omp-loop03.c: New test.
13318
133192005-09-27 Diego Novillo <dnovillo@redhat.com>
13320
13321 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
13322
133232005-09-27 Diego Novillo <dnovillo@redhat.com>
13324
13325 * testsuite/libgomp.dg/omp-single-1.c: New test.
13326 * testsuite/libgomp.dg/shared-1.c: Return 0.
13327 Add prototype for abort.
13328 * testsuite/libgomp.dg/shared-2.c: Likewise.
13329
133302005-09-26 Jakub Jelinek <jakub@redhat.com>
13331
13332 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
13333 constructs.
13334
133352005-09-26 Diego Novillo <dnovillo@redhat.com>
13336
13337 * testsuite/libgomp.dg/shared-1.c: New test.
13338 * testsuite/libgomp.dg/shared-2.c: New test.
13339
133402005-09-24 Richard Henderson <rth@redhat.com>
13341
13342 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
13343
133442005-09-24 Richard Henderson <rth@redhat.com>
13345
13346 * iter.c (gomp_iter_static_next): Round up when computing number
13347 of iterations. Don't bother distributing a remainder equally.
13348
13349 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
13350 Don't call srand. Zero b before testing.
13351 (main): New.
13352
133532005-09-24 Jakub Jelinek <jakub@redhat.com>
13354
13355 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
13356 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
13357
133582005-09-23 Jakub Jelinek <jakub@redhat.com>
13359
13360 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
13361 without !$omp end do, followed immediately by subroutine end.
13362
133632005-09-23 Diego Novillo <dnovillo@redhat.com>
13364
13365 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
13366
133672005-09-22 Richard Henderson <rth@redhat.com>
13368
13369 * critical.c (GOMP_critical_name_start): Change argument to void**.
13370 Reuse the pointer space if the mutex fits.
13371 (GOMP_critical_name_end): Likewise.
13372 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
13373 * libgomp_g.h (GOMP_critical_name_start): Update decl.
13374 (GOMP_critical_name_end): Likewise.
13375 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
13376 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
13377
133782005-09-20 Richard Henderson <rth@redhat.com>
13379
13380 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
13381 (create_lock_lock): New.
13382 (initialize_critical): Initialize it.
13383 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
13384 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
13385
133862005-09-20 Diego Novillo <dnovillo@redhat.com>
13387
13388 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
13389
133902005-09-20 Diego Novillo <dnovillo@redhat.com>
13391
13392 * testsuite/libgomp.dg/omp-loop01.c: New test.
13393 * testsuite/libgomp.dg/omp-loop02.c: New test.
13394
133952005-09-20 Jakub Jelinek <jakub@redhat.com>
13396
13397 * configure.ac (AC_PROG_FC): Add.
13398 (USE_FORTRAN): New automake conditional.
13399 * configure: Rebuilt.
13400 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13401 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13402 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13403 Add rules to build them.
13404 * Makefile.in: Rebuilt.
13405 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13406 OMP_NEST_LOCK_KIND.
13407 * libgomp.map: Add Fortran wrappers.
13408 * libgomp_f.h.in: New file.
13409 * omp_lib.h.in: New file.
13410 * omp_lib.f90.in: New file.
13411 * fortran.c: New file.
13412 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13413 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13414 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13415 libgfortran has been built.
13416 * testsuite/libgomp.fortran/fortran.exp: New file.
13417 * testsuite/libgomp.fortran/omp_cond1.f: New test.
13418 * testsuite/libgomp.fortran/omp_cond2.f: New test.
13419 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13420 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13421 * testsuite/libgomp.fortran/omp_hello.f: New test.
13422 * testsuite/libgomp.fortran/omp_orphan.f: New test.
13423 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13424 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13425 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13426 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13427 * testsuite/libgomp.fortran/omp_reduction.f: New test.
13428 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13429 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13430
134312005-08-30 Richard Henderson <rth@redhat.com>
13432
13433 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13434 function for when aliases are not usable.
13435 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13436 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13437 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13438 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13439 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13440 GOMP_loop_ordered_guided_next): Likewise.
13441 * ordered.c (GOMP_ordered_start): Likewise.
13442
134432005-08-01 Diego Novillo <dnovillo@redhat.com>
13444
13445 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13446 * testsuite/libgomp.dg/omp_hello.c: Fix return code
13447 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13448 * testsuite/libgomp.dg/omp_orphan.c: Likewise
13449 * testsuite/libgomp.dg/omp_reduction.c: Likewise
13450 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13451 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13452 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13453 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13454
134552005-07-07 Eric Christopher <echristo@redhat.com>
13456 Diego Novillo <dnovillo@redhat.com>
13457
13458 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13459 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13460 up code.
13461 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13462 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13463 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13464 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13465 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13466 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13467 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13468
134692005-06-13 Diego Novillo <dnovillo@redhat.com>
13470
13471 * TOPLEVEL.patch: Remove.
13472
134732005-05-16 Richard Henderson <rth@redhat.com>
13474
13475 * configure.ac: Test for clock_gettime.
13476 * config.h.in, configure: Rebuild.
13477 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13478 (omp_get_wtime): Use clock_gettime if available.
13479 (omp_get_wtick): Use clock_getres if available.
13480
134812005-05-11 Richard Henderson <rth@redhat.com>
13482
13483 * config/linux/ia64/futex.h: New file.
13484 * configure.tgt: Use it.
13485
13486 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13487
134882005-05-07 Richard Henderson <rth@redhat.com>
13489
13490 * config/linux/powerpc/futex.h: New file.
13491 * configure.tgt: Use it.
13492
13493 * config/linux/i486/futex.h: Merge ...
13494 * config/linux/x86_64/futex.h: ... into ...
13495 * config/linux/x86/futex.h: ... here.
13496 * configure.tgt: Update to match.
13497
134982005-05-06 Richard Henderson <rth@redhat.com>
13499
13500 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13501 * config/linux/i486/futex.h: Likewise.
13502 * config/linux/x86_64/futex.h: Likewise.
13503
13504 * config/linux/lock.c: New file.
13505 * config/linux/omp-lock.h: New file.
13506
13507 * critical.c, env.h: Don't include omp.h
13508 * config/posix/lock.c: Include libgomp.h instead of omp.h.
13509 * config/posix/time.c: Likewise.
13510 * config/posix/omp-lock.h: New file.
13511 * libgomp.h: Include omp-lock.h and omp.h.
13512 * Makefile.am (nodist_include_HEADERS): New.
13513 (omp.h): New rule.
13514 * configure.ac (PERL): New.
13515 * mkomp_h.pl: New file.
13516 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13517 with templates.
13518 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13519
13520 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13521 build directory. Re-add -march=i486 hack.
13522
13523 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13524 (libgomp_link_flags): Remove.
13525 (libgomp_initialized): Remove.
13526 (libgomp_init): Don't protect from reinitialization. Copy code
13527 from libstdc++ for getting the multilib set correctly.
13528
135292005-05-05 Richard Henderson <rth@redhat.com>
13530
13531 * config/linux/alpha/futex.h: New file.
13532 * configure.tgt (alpha*-*-linux*): Use it.
13533
13534 * config/posix/mutex.c: New file.
13535 * config/posix/sem.c: Use libgomp.h.
13536
13537 * configure.tgt (x86_64-linux): Also test CC for -m32.
13538 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13539
a1daed2d 13540 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
13541 after $gccpath.
13542
13543 * Makefile.am (SUBDIRS): New.
13544 (libgomp_la_LDFLAGS): Add -lpthread.
13545 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13546 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13547
13548 * libgomp_g.h: New file.
13549 * libgomp.h: Split out all public declarations to libgomp_g.h.
13550 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13551 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13552 * config/linux/sem.h: Likewise.
13553 * config/posix/sem.h: Likewise.
13554
13555 * Makefile.am (AM_LDFLAGS): New.
13556 (libgomp_version_script): Split out from ...
13557 (libgomp_la_LDFLAGS): ... here.
13558 (libgomp_version_info): New.
13559 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13560 (LIBGOMP_ENABLE): New.
13561 (LIBGOMP_CHECK_LINKER_FEATURES): New.
13562 (LIBGOMP_ENABLE_SYMVERS): New.
13563 * configure.ac (AC_INIT): Version 1.0.
13564 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13565 (enable-linux-futex): Likewise. Rename from enable-futex.
13566 (libtool_VERSION): New.
13567 (LIBGOMP_ENABLE_SYMVERS): Use it.
13568 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13569 * Makefile.in, aclocal.m4, configure: Rebuild.
13570
13571 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13572 (gomp_mutex_unlock_slow): Fix typo.
13573 * config/linux/sem.c: Similarly.
13574 (gomp_sem_post_slow): Fix typo.
13575 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13576 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13577 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13578
13579 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13580 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13581 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13582 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13583 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13584 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13585 LDFLAGS. Pull enable_futex check to top-level.
13586 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13587 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13588
13589 First attempt at real configury.
13590 * Makefile, config.h: Remove file.
13591 * Makefile.am, Makefile.in: New file.
13592 * acinclude.m4 aclocal.m4: New file.
13593 * configure.ac, configure.tgt, configure: New file.
13594
13595 * config/posix/lock.c: Rename from sys-lock.c.
13596 * config/posix/mutex.h: Rename from sys-mutex.h.
13597 * config/posix/sem.c: Rename from sys-sem.c.
13598 * config/posix/sem.h: Rename from sys-sem.h.
13599 * config/posix/proc.c: Rename from sys-proc.c.
13600 * config/posix/time.c: Rename from sys-proc.c.
13601
13602 * config/linux/mutex.c: New file.
13603 * config/linux/mutex.h: New file.
13604 * config/linux/sem.c: New file.
13605 * config/linux/sem.h: New file.
13606 * config/linux/i486/futex.h: New file.
13607 * config/linux/x86_64/futex.h: New file.
13608
136092005-05-04 Richard Henderson <rth@redhat.com>
13610
13611 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13612 * libgomp.h: Declare them.
13613 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13614 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13615
136162005-05-04 Richard Henderson <rth@redhat.com>
13617
13618 * libgomp-1 code drop
13619
136202005-05-04 Richard Henderson <rth@redhat.com>
13621
13622 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13623 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13624 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13625 (gomp_iter_static_next): Update.
13626 (gomp_ordered_static_next): Update.
13627 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13628 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13629 totally empty range.
13630 (gomp_loop_ordered_static_next): Refine test for calling
13631 gomp_ordered_static_next.
13632 * testsuite/ordered-1.c: Add case for more threads than iterations.
13633
13634 * iter.c (gomp_iter_runtime_next_locked): Remove.
13635 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 13636 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
13637 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13638 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13639 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13640 gomp_loop_ordered_guided_next): Downcase name, make static, add
13641 an external alias with the old name.
13642 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13643 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13644 switch and call one of the above static functions.
13645 * libgomp.h: Update.
13646
13647 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13648 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13649 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13650 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13651 GOMP_loop_ordered_guided_start): Update to match.
13652 * sections.c (GOMP_sections_start): Likewise.
13653 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13654
13655 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13656 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13657 Use bounds check instead of modulus.
13658 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13659 (gomp_ordered_last): Don't sync with ordered_owner here.
13660 (gomp_ordered_next): Likewise.
13661 (gomp_ordered_static_loop_next): Likewise.
13662 * loop.c, libgomp.h: Update to match.
13663
13664 * libgomp.h (GOMP_barrier): Declare.
13665
13666 * testsuite/barrier-1.c: New file.
13667 * testsuite/critical-1.c: New file.
13668 * testsuite/ordered-2.c: New file.
13669 * testsuite/ordered-1.c: New file.
13670 * testsuite/sections-1.c: New file.
13671 * testsuite/single-1.c: New file.
13672 * testsuite/Makefile (TESTS): Add them.
13673
136742005-05-04 Richard Henderson <rth@redhat.com>
13675
13676 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13677 * loop.c (GOMP_loop_static_start): If not the startup thread,
13678 acquire the mutex to wait for initialization complete.
13679 (GOMP_loop_ordered_static_start): Likewise.
13680 (GOMP_loop_ordered_runtime_start): Likewise.
13681 (GOMP_loop_ordered_static_first): Remove.
13682 (GOMP_loop_ordered_dynamic_first): Remove.
13683 (GOMP_loop_ordered_guided_first): Remove.
13684 (GOMP_loop_ordered_runtime_first): Remove.
13685 * ordered.c (gomp_ordered_loop_first): Post to own release when
13686 we're the first thread.
13687 (gomp_ordered_loop_last): Wait on release if not owner.
13688 (gomp_ordered_loop_next): Likewise.
13689 (gomp_ordered_static_loop_init): New.
13690 (gomp_ordered_static_loop_next): Use ordered_owner.
13691 (GOMP_ordered_start): Likewise.
13692 * work.c (gomp_new_work_share): Initialize ordered_owner.
13693
136942005-05-03 Richard Henderson <rth@redhat.com>
13695
13696 * Makefile (OPT): New.
13697 (CFLAGS): Use it.
13698
13699 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13700 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13701 * libgomp.h, libgomp.map, NOTES: Update to match.
13702
13703 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13704 Add initialized and thr members.
13705 (gomp_thread_start): Pause when initially spawned to wait for
13706 the whole team to be created.
13707 (gomp_team_start): Release team members at the end.
13708
13709 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13710 (f_foo_1): Use GOMP_loop_end.
13711 (f_foo_2): Use GOMP_loop_end_nowait.
13712
13713 * testsuite/loop-2.c: New file.
13714 * testsuite/Makefile (TESTS): Add it.
13715
137162005-05-03 Richard Henderson <rth@redhat.com>
13717
13718 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13719 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13720 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13721 initial work_share.
13722
13723 * testsuite/Makefile: New file.
13724 * testsuite/loop-1.c: New file.
13725
137262005-05-03 Richard Henderson <rth@redhat.com>
13727
13728 Initial implementation and checkin.
21fa2a29 13729\f
8d9254fc 13730Copyright (C) 2005-2020 Free Software Foundation, Inc.
21fa2a29
JJ
13731
13732Copying and distribution of this file, with or without modification,
13733are permitted in any medium without royalty provided the copyright
13734notice and this notice are preserved.