From b8910447230acb4d7651f131174cee296e4ac66d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 23 Jan 2015 19:19:50 +0100 Subject: re PR middle-end/64734 (ICE at omp lowering) PR middle-end/64734 * omp-low.c (scan_sharing_clauses): Don't ignore OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses on target data/update constructs. * libgomp.c/pr64734.c: New test. From-SVN: r220053 --- gcc/omp-low.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/omp-low.c') diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 1589310..da53334 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -1834,7 +1834,8 @@ scan_sharing_clauses (tree clauses, omp_context *ctx) /* Ignore GOMP_MAP_POINTER kind for arrays in regions that are not offloaded; there is nothing to map for those. */ if (!is_gimple_omp_offloaded (ctx->stmt) - && !POINTER_TYPE_P (TREE_TYPE (decl))) + && !POINTER_TYPE_P (TREE_TYPE (decl)) + && !OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION (c)) break; } if (DECL_P (decl)) -- cgit v1.1