[PR88288, OpenACC, libgomp] Adjust offsets for present data clauses
authorCesar Philippidis <cesar@codesourcery.com>
Fri, 30 Nov 2018 20:39:49 +0000 (12:39 -0800)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 30 Nov 2018 20:39:49 +0000 (21:39 +0100)
commitfe570ff8d4347ea98108da3cf0d4f3800294d5c5
treebed3444f5ac3e46f1889acb012e868bac81da4ef
parent344b0fdf2ee426f81cf8ceafa069c42cfdc9f5fc
[PR88288, OpenACC, libgomp] Adjust offsets for present data clauses

Make libgomp respect the on device offset of subarrays which may arise in
present data clauses.

libgomp/
PR libgomp/88288
* oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
* testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.

Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
From-SVN: r266688
libgomp/ChangeLog
libgomp/oacc-parallel.c
libgomp/testsuite/libgomp.oacc-c-c++-common/pr88288.c [new file with mode: 0644]