diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-12-29 22:49:37 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-12-29 22:49:37 +0100 |
commit | 9fdc58ded7f2bdaa25e8019ea85442f58e4683ad (patch) | |
tree | 2d95a70278eb778e4eb63f7d461f1e1dbabdf5c4 | |
parent | d6c63324b599fea02ea86933acbf94e3ad19c4f1 (diff) | |
download | gcc-9fdc58ded7f2bdaa25e8019ea85442f58e4683ad.zip gcc-9fdc58ded7f2bdaa25e8019ea85442f58e4683ad.tar.gz gcc-9fdc58ded7f2bdaa25e8019ea85442f58e4683ad.tar.bz2 |
re PR tree-optimization/47074 (tree check fail in create_access_replacement)
PR tree-optimization/47074
* gimple-fold.c (gimplify_and_update_call_from_tree): Call
pop_gimplify_context if returning early.
From-SVN: r168325
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/gimple-fold.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbbb310..332490b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-29 Jakub Jelinek <jakub@redhat.com> + + PR tree-optimization/47074 + * gimple-fold.c (gimplify_and_update_call_from_tree): Call + pop_gimplify_context if returning early. + 2010-12-28 Sebastian Pop <sebastian.pop@amd.com> * Makefile.in (graphite.o): Depends on DIAGNOSTIC_CORE_H. diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 16a2092..042c813 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -942,6 +942,7 @@ gimplify_and_update_call_from_tree (gimple_stmt_iterator *si_p, tree expr) which gets optimized away by C++ gimplification. */ if (gimple_seq_empty_p (stmts)) { + pop_gimplify_context (NULL); if (gimple_in_ssa_p (cfun)) { unlink_stmt_vdef (stmt); |