[PR92848] [OpenACC] Use 'GOMP_MAP_VARS_ENTER_DATA' for dynamic data lifetimes
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 18 Dec 2019 17:00:39 +0000 (18:00 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 18 Dec 2019 17:00:39 +0000 (18:00 +0100)
commitba40277f6ac96ceb982120ce95d2b64695a25dff
tree007a9147fd5e9078cef4bb70e83dcd53066855ce
parent6278b549221501a947383ac057cfed5f02e30461
[PR92848] [OpenACC] Use 'GOMP_MAP_VARS_ENTER_DATA' for dynamic data lifetimes

libgomp/
PR libgomp/92848
* oacc-mem.c (acc_map_data, present_create_copy)
(goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
(acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
* testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
* testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
* testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
Remove "XFAIL"s.

From-SVN: r279530
libgomp/ChangeLog
libgomp/oacc-mem.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-50.c [deleted file]
libgomp/testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c