[OpenACC] Revert always-copyfrom behavior for 'GOMP_MAP_FORCE_FROM' in 'libgomp/oacc...
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 14 May 2020 18:48:10 +0000 (20:48 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 3 Jul 2020 15:14:40 +0000 (17:14 +0200)
commite7f3f7fe08bdd49367f682398e1d2f4e6b60ef84
tree7daeaf130d495ed2cbc91131729cf2ebb96b1472
parent995aba5867b1c64b2b56a200ef16b135effe85f7
[OpenACC] Revert always-copyfrom behavior for 'GOMP_MAP_FORCE_FROM' in 'libgomp/oacc-mem.c:goacc_exit_data_internal'

As done for 'GOMP_MAP_FROM', also for 'GOMP_MAP_FORCE_FROM' we should only
'gomp_copy_dev2host' if 'n->refcount == 0'.

This had gotten altered in commit 378da98fcc907d05002bcd3d6ff7951f0cf485e5
(r279621) "OpenACC reference count overhaul".

libgomp/
* oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
behavior for 'GOMP_MAP_FORCE_FROM'.
* testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
libgomp/oacc-mem.c
libgomp/testsuite/libgomp.oacc-c-c++-common/pr92843-1.c