aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2019-12-18 18:01:22 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2019-12-18 18:01:22 +0100
commitcc3f11f5f51ea1f192b23c8df793e23d7163002d (patch)
tree6bf10b1ab9a0e8dbb72e966bd080f8d7a4f7575f /libgomp
parentddb25eb9ca373b293da3e8f2c1520dbb72271367 (diff)
downloadgcc-cc3f11f5f51ea1f192b23c8df793e23d7163002d.zip
gcc-cc3f11f5f51ea1f192b23c8df793e23d7163002d.tar.gz
gcc-cc3f11f5f51ea1f192b23c8df793e23d7163002d.tar.bz2
[OpenACC] In 'libgomp/target.c:gomp_to_device_kind_p', handle 'GOMP_MAP_FORCE_FROM' like 'GOMP_MAP_FROM'
Fix oversight from r254194 "Coalesce host to device transfers in libgomp". libgomp/ * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM' like 'GOMP_MAP_FROM'. From-SVN: r279533
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog3
-rw-r--r--libgomp/target.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 871a153..472519c 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,5 +1,8 @@
2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
+ * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
+ like 'GOMP_MAP_FROM'.
+
PR libgomp/92726
PR libgomp/92970
PR libgomp/92984
diff --git a/libgomp/target.c b/libgomp/target.c
index 41cf6a3..a3cdb34 100644
--- a/libgomp/target.c
+++ b/libgomp/target.c
@@ -279,6 +279,7 @@ gomp_to_device_kind_p (int kind)
case GOMP_MAP_ALLOC:
case GOMP_MAP_FROM:
case GOMP_MAP_FORCE_ALLOC:
+ case GOMP_MAP_FORCE_FROM:
case GOMP_MAP_ALWAYS_FROM:
return false;
default: