Patchwork Fix release checking

login
register
mail settings
Submitter Richard Guenther
Date April 24, 2012, 2:13 p.m.
Message ID <Pine.LNX.4.64.1204241613010.23071@jbgna.fhfr.qr>
Download mbox | patch
Permalink /patch/154683/
State New
Headers show

Comments

Richard Guenther - April 24, 2012, 2:13 p.m.
Committed as obvious.

Richard.

2012-04-12  Richard Guenther  <rguenther@suse.de>

        * tree-if-conv.c (main_tree_if_conversion): Move bb under
        ENABLE_CHECKING.

Patch

Index: gcc/tree-if-conv.c
===================================================================
--- gcc/tree-if-conv.c	(revision 186760)
+++ gcc/tree-if-conv.c	(working copy)
@@ -1779,7 +1779,6 @@  main_tree_if_conversion (void)
   struct loop *loop;
   bool changed = false;
   unsigned todo = 0;
-  basic_block bb;
 
   if (number_of_loops () <= 1)
     return 0;
@@ -1796,8 +1795,11 @@  main_tree_if_conversion (void)
   free_dominance_info (CDI_POST_DOMINATORS);
 
 #ifdef ENABLE_CHECKING
-  FOR_EACH_BB (bb)
-    gcc_assert (!bb->aux);
+  {
+    basic_block bb;
+    FOR_EACH_BB (bb)
+      gcc_assert (!bb->aux);
+  }
 #endif
 
   return todo;