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
This commit is contained in:
Richard Guenther 2010-09-07 11:17:44 +00:00 committed by Richard Biener
parent d7806defb4
commit c9d6130e06
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -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)))

View File

@ -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