aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-06-01 13:59:18 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-06-01 11:59:18 +0000
commitf7fbb475ad5956e382f39c3b0f0f75aa57a4237e (patch)
tree27232a137ae3c55a60e650b4589a1b7e95e3e331 /gcc/tree-cfg.c
parent1322b0503c36c61f8efefdc5c2fc9db4185fbdb5 (diff)
downloadgcc-f7fbb475ad5956e382f39c3b0f0f75aa57a4237e.zip
gcc-f7fbb475ad5956e382f39c3b0f0f75aa57a4237e.tar.gz
gcc-f7fbb475ad5956e382f39c3b0f0f75aa57a4237e.tar.bz2
tree-cfg.c (verify_stmt): Do not skip could_throw test.
* tree-cfg.c (verify_stmt): Do not skip could_throw test. * passes.c (execute_function_todo): Do not make implicit verify_ssa. (execute_all_ipa_transforms): Do not play with the states. From-SVN: r160098
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 5d094b5..a76a254 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -4003,14 +4003,8 @@ verify_stmt (gimple_stmt_iterator *gsi)
{
if (!stmt_could_throw_p (stmt))
{
- /* During IPA passes, ipa-pure-const sets nothrow flags on calls
- and they are updated on statements only after fixup_cfg
- is executed at beggining of expansion stage. */
- if (cgraph_state != CGRAPH_STATE_IPA_SSA)
- {
- error ("statement marked for throw, but doesn%'t");
- goto fail;
- }
+ error ("statement marked for throw, but doesn%'t");
+ goto fail;
}
else if (lp_nr > 0 && !last_in_block && stmt_can_throw_internal (stmt))
{