]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
OpenACC: Fix struct-component-kind-1.c test
authorJulian Brown <julian@codesourcery.com>
Fri, 30 Sep 2022 17:30:58 +0000 (17:30 +0000)
committerJulian Brown <julian@codesourcery.com>
Sat, 1 Oct 2022 09:40:17 +0000 (09:40 +0000)
This patch is a minimal fix for the recently-added
struct-component-kind-1.c test (which is currently failing to emit one
of the errors it expects in scan output). This fragment was erroneously
omitted from the second version of the patch posted previously:

  https://gcc.gnu.org/pipermail/gcc-patches/2022-September/602504.html

2022-10-01  Julian Brown  <julian@codesourcery.com>

gcc/
* gimplify.cc (omp_group_base): Fix IF_PRESENT (no_create)
handling.

gcc/gimplify.cc

index 90606088128985e4469ec1c22a157d299e1ff260..9e0e342995897c6bfa54289728e7eba6906a8350 100644 (file)
@@ -9245,6 +9245,7 @@ omp_group_base (omp_mapping_group *grp, unsigned int *chained,
     case GOMP_MAP_RELEASE:
     case GOMP_MAP_DELETE:
     case GOMP_MAP_FORCE_ALLOC:
+    case GOMP_MAP_IF_PRESENT:
       if (node == grp->grp_end)
        return node;
 
@@ -9323,7 +9324,6 @@ omp_group_base (omp_mapping_group *grp, unsigned int *chained,
     case GOMP_MAP_FORCE_DEVICEPTR:
     case GOMP_MAP_DEVICE_RESIDENT:
     case GOMP_MAP_LINK:
-    case GOMP_MAP_IF_PRESENT:
     case GOMP_MAP_FIRSTPRIVATE:
     case GOMP_MAP_FIRSTPRIVATE_INT:
     case GOMP_MAP_USE_DEVICE_PTR: