diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-09-10 09:32:13 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-09-10 09:32:13 +0200 |
commit | 2ee10f818d0ae2d421ff6df19923acf509d71721 (patch) | |
tree | f887371c4dd5c08474c7e1690e8bbafffbc6e299 /gcc/gimplify.c | |
parent | 499c20bbe466b6c71bda3b2e3eee044e9364911c (diff) | |
download | gcc-2ee10f818d0ae2d421ff6df19923acf509d71721.zip gcc-2ee10f818d0ae2d421ff6df19923acf509d71721.tar.gz gcc-2ee10f818d0ae2d421ff6df19923acf509d71721.tar.bz2 |
re PR middle-end/67517 (ICE in gimplify_scan_omp_clauses)
PR middle-end/67517
* gimplify.c (gimplify_scan_omp_clauses): Instead of
asserting that decl is not specified in octx->variables,
break out of the loop if it is.
* c-c++-common/gomp/pr67517.c: New test.
From-SVN: r227608
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 215ad15..2a7da25 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -6214,9 +6214,12 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p, } else break; - gcc_checking_assert (splay_tree_lookup (octx->variables, - (splay_tree_key) - decl) == NULL); + if (splay_tree_lookup (octx->variables, + (splay_tree_key) decl) != NULL) + { + octx = NULL; + break; + } flags = GOVD_SEEN; if (!OMP_CLAUSE_LINEAR_NO_COPYIN (c)) flags |= GOVD_FIRSTPRIVATE; |