aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/passes.c4
-rw-r--r--gcc/tree-cfg.c4
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