Commit c9d6130e by Richard Guenther Committed by Richard Biener

re PR middle-end/45569 (ICE: verify_stmts failed: statement marked for throw in…

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
parent d7806def
2010-09-07 Richard Guenther <rguenther@suse.de> 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 * tree-pretty-print.c (dump_generic_node): Dump void types
as void. as void.
......
...@@ -1249,6 +1249,10 @@ execute_function_todo (void *data) ...@@ -1249,6 +1249,10 @@ execute_function_todo (void *data)
if (flags & TODO_rebuild_frequencies) if (flags & TODO_rebuild_frequencies)
rebuild_frequencies (); rebuild_frequencies ();
/* If we've seen errors do not bother running any verifiers. */
if (seen_error ())
return;
#if defined ENABLE_CHECKING #if defined ENABLE_CHECKING
if (flags & TODO_verify_ssa if (flags & TODO_verify_ssa
|| (current_loops && loops_state_satisfies_p (LOOP_CLOSED_SSA))) || (current_loops && loops_state_satisfies_p (LOOP_CLOSED_SSA)))
......
...@@ -230,10 +230,6 @@ build_gimple_cfg (gimple_seq seq) ...@@ -230,10 +230,6 @@ build_gimple_cfg (gimple_seq seq)
dump_end (TDI_vcg, vcg_file); dump_end (TDI_vcg, vcg_file);
} }
} }
#ifdef ENABLE_CHECKING
verify_stmts ();
#endif
} }
static unsigned int static unsigned int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment