aboutsummaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-09-07 11:17:44 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-09-07 11:17:44 +0000
commitc9d6130e06b8c702faa07071737afa081c008c69 (patch)
tree03a34fd741a2b0fa0f33ce37466db09498623858 /gcc/passes.c
parentd7806defb427e04da194b403a5a2728b1d56db1e (diff)
downloadgcc-c9d6130e06b8c702faa07071737afa081c008c69.zip
gcc-c9d6130e06b8c702faa07071737afa081c008c69.tar.gz
gcc-c9d6130e06b8c702faa07071737afa081c008c69.tar.bz2
re PR middle-end/45569 (ICE: verify_stmts failed: statement marked for throw in middle of block with -fnon-call-exceptions)
2010-09-07 Richard Guenther <rguenther@suse.de> PR middle-end/45569 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification. * passes.c (execute_function_todo): Do not verify anything if we saw errors. From-SVN: r163946
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c
index 88da9b3..47d6471 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -1249,6 +1249,10 @@ execute_function_todo (void *data)
if (flags & TODO_rebuild_frequencies)
rebuild_frequencies ();
+ /* If we've seen errors do not bother running any verifiers. */
+ if (seen_error ())
+ return;
+
#if defined ENABLE_CHECKING
if (flags & TODO_verify_ssa
|| (current_loops && loops_state_satisfies_p (LOOP_CLOSED_SSA)))