diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2008-01-17 21:37:14 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2008-01-17 21:37:14 +0000 |
commit | fae25b37f20b5015e494b7314b1d29136b88c5c7 (patch) | |
tree | e495590c621364970717dfc05ae84e3e64453da3 /gcc/tree-ssa-sccvn.c | |
parent | 2e152e16873f3774cbaf228cfdba670b18af51a0 (diff) | |
download | gcc-fae25b37f20b5015e494b7314b1d29136b88c5c7.zip gcc-fae25b37f20b5015e494b7314b1d29136b88c5c7.tar.gz gcc-fae25b37f20b5015e494b7314b1d29136b88c5c7.tar.bz2 |
Teach SCCVN that throwing expressions are not to be regenerated.
http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00764.html
Teach SCCVN that throwing expressions are not to be regenerated.
2008-01-17 Andrew MacLeod <amacleod@redhat.com>
* tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying. * gcc.c-torture/compile/pr34648.c: New testcase.
From-SVN: r131610
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r-- | gcc/tree-ssa-sccvn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 7f566db..d7b8c8a 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -1609,7 +1609,8 @@ visit_use (tree use) changed = visit_phi (stmt); } else if (TREE_CODE (stmt) != GIMPLE_MODIFY_STMT - || (ann && ann->has_volatile_ops)) + || (ann && ann->has_volatile_ops) + || tree_could_throw_p (stmt)) { changed = defs_to_varying (stmt); } |