From 74bb6382e2be4c478e2f58daa3cdf1c42b6c2480 Mon Sep 17 00:00:00 2001 From: tschwinge Date: Wed, 18 Dec 2019 17:01:22 +0000 Subject: [PATCH] [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'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@279533 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog | 3 +++ libgomp/target.c | 1 + 2 files changed, 4 insertions(+) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 871a1537c77..472519c7e3e 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,8 @@ 2019-12-18 Thomas Schwinge + * 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 41cf6a3d7d2..a3cdb34bd51 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: -- 2.17.1