aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2022-09-30 17:30:58 +0000
committerJulian Brown <julian@codesourcery.com>2022-10-01 09:40:17 +0000
commit153ca019b7794c97972dcd291021cf074514fb3b (patch)
tree3d5a36ecb0fa0f8e282b2baa1d94ac05789e0c8b /gcc
parent2555071c954aa5796eb3432c15739dcaae457bc3 (diff)
downloadgcc-153ca019b7794c97972dcd291021cf074514fb3b.zip
gcc-153ca019b7794c97972dcd291021cf074514fb3b.tar.gz
gcc-153ca019b7794c97972dcd291021cf074514fb3b.tar.bz2
OpenACC: Fix struct-component-kind-1.c test
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gimplify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc
index 9060608..9e0e342 100644
--- a/gcc/gimplify.cc
+++ b/gcc/gimplify.cc
@@ -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: