diff options
author | Julian Brown <julian@codesourcery.com> | 2019-11-20 17:51:09 +0000 |
---|---|---|
committer | Julian Brown <jules@gcc.gnu.org> | 2019-11-20 17:51:09 +0000 |
commit | e307b05f4377a22811395f6a051d9db864b8785f (patch) | |
tree | 3b7a12b5b4cd395997af29e9da4c99400e961d52 /gcc | |
parent | 070e3489678380354027144c6b0cef02e7601a37 (diff) | |
download | gcc-e307b05f4377a22811395f6a051d9db864b8785f.zip gcc-e307b05f4377a22811395f6a051d9db864b8785f.tar.gz gcc-e307b05f4377a22811395f6a051d9db864b8785f.tar.bz2 |
OpenACC "present" subarrays: runtime API return value and unmapping fixes
PR libgomp/92511
libgomp/
* oacc-mem.c (present_create_copy): Fix device pointer return value in
case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
in non-present/create case.
(delete_copyout): Change error condition to fail only on copies outside
of mapped block. Adjust error message accordingly.
* testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
* testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
* testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
message.
* testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
* testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
From-SVN: r278514
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions