[OpenACC] In 'libgomp/target.c:gomp_to_device_kind_p', handle 'GOMP_MAP_FORCE_FROM...
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 18 Dec 2019 17:01:22 +0000 (18:01 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 18 Dec 2019 17:01:22 +0000 (18:01 +0100)
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

libgomp/ChangeLog
libgomp/target.c

index 871a1537c7721ef13e6d6006922fb166e51a4cfe..472519c7e3e13d44c6dd94395673182537cd5cfd 100644 (file)
@@ -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
index 41cf6a3d7d2bda576e15430d4860e3f17dba17fd..a3cdb34bd511146d4bc24e8dba909d5a77828573 100644 (file)
@@ -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: