$subject, applied as obvious.

Richard.

2016-10-17  Richard Biener  <rguent...@suse.de>

        * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
        before using it.

Index: gcc/bb-reorder.c
===================================================================
--- gcc/bb-reorder.c    (revision 241228)
+++ gcc/bb-reorder.c    (working copy)
@@ -2355,7 +2355,10 @@ reorder_basic_blocks_simple (void)
      To start with, everything points to itself, nothing is assigned yet.  */
 
   FOR_ALL_BB_FN (bb, cfun)
-    bb->aux = bb;
+    {
+      bb->aux = bb;
+      bb->flags &= ~BB_VISITED;
+    }
 
   EXIT_BLOCK_PTR_FOR_FN (cfun)->aux = 0;
 

Reply via email to