aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorDavid Sherwood <david.sherwood@arm.com>2017-01-26 10:41:35 +0000
committerDavid Sherwood <davids@gcc.gnu.org>2017-01-26 10:41:35 +0000
commitebff5c3f80a14e07a0507166fe8a42014fe72f6e (patch)
treeb4827bc7d0e80d33b8eb82b832169eefdf29a987 /gcc/gimplify.c
parent1a27fab1aded9fe71ecac0108f7dcf4ebf17637e (diff)
downloadgcc-ebff5c3f80a14e07a0507166fe8a42014fe72f6e.zip
gcc-ebff5c3f80a14e07a0507166fe8a42014fe72f6e.tar.gz
gcc-ebff5c3f80a14e07a0507166fe8a42014fe72f6e.tar.bz2
re PR middle-end/79212 (internal compiler error: in maybe_lookup_decl_in_outer_ctx, at omp-low.c:4134)
2017-01-26 David Sherwood <david.sherwood@arm.com> gcc/ PR middle-end/79212 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in all contexts. gcc/testsuite/ PR middle-end/79212 * gfortran.dg/gomp/sharing-4.f90: New test. From-SVN: r244922
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 61a1ba5..feb5fa0 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -7152,7 +7152,7 @@ omp_notice_variable (struct gimplify_omp_ctx *ctx, tree decl, bool in_code)
gcc_assert (DECL_P (t));
n2 = splay_tree_lookup (ctx->variables, (splay_tree_key) t);
if (n2)
- n2->value |= GOVD_SEEN;
+ omp_notice_variable (ctx, t, true);
}
}