diff options
author | Richard Guenther <rguenther@suse.de> | 2010-09-07 11:17:44 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-09-07 11:17:44 +0000 |
commit | c9d6130e06b8c702faa07071737afa081c008c69 (patch) | |
tree | 03a34fd741a2b0fa0f33ce37466db09498623858 | |
parent | d7806defb427e04da194b403a5a2728b1d56db1e (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/passes.c | 4 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7560ab3..6bad390 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 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. + +2010-09-07 Richard Guenther <rguenther@suse.de> + * tree-pretty-print.c (dump_generic_node): Dump void types as void. 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))) diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 7151fa7..b8afb57 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -230,10 +230,6 @@ build_gimple_cfg (gimple_seq seq) dump_end (TDI_vcg, vcg_file); } } - -#ifdef ENABLE_CHECKING - verify_stmts (); -#endif } static unsigned int |