From e125029478b567189bc1a028c65340b870ed5824 Mon Sep 17 00:00:00 2001 From: rguenth Date: Tue, 7 Sep 2010 11:17:44 +0000 Subject: [PATCH] 2010-09-07 Richard Guenther 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163946 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/passes.c | 4 ++++ 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 + 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 + * 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 -- 2.7.4