This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR45569


We shouldn't run verifiers if we saw errors.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.

Richard.

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.

Index: gcc/tree-cfg.c
===================================================================
*** gcc/tree-cfg.c	(revision 163941)
--- gcc/tree-cfg.c	(working copy)
*************** build_gimple_cfg (gimple_seq seq)
*** 230,239 ****
  	dump_end (TDI_vcg, vcg_file);
        }
    }
- 
- #ifdef ENABLE_CHECKING
-   verify_stmts ();
- #endif
  }
  
  static unsigned int
--- 230,235 ----
Index: gcc/passes.c
===================================================================
*** gcc/passes.c	(revision 163941)
--- gcc/passes.c	(working copy)
*************** execute_function_todo (void *data)
*** 1249,1254 ****
--- 1249,1258 ----
    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)))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]