* emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
authorgrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Jul 2004 14:22:42 +0000 (14:22 +0000)
committergrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Jul 2004 14:22:42 +0000 (14:22 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84871 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/emit-rtl.c

index c7a5094..50b998b 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-17  Graham Stott  <graham.stott@btinternet.com>
+
+       * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
+
 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
 
        * doc/sourcebuild.texi: Remove libf2c entry.
index 0f32005..da722ee 100644 (file)
@@ -3790,7 +3790,8 @@ reorder_insns (rtx from, rtx to, rtx after)
        BB_END (bb) = to;
 
       for (x = from; x != NEXT_INSN (to); x = NEXT_INSN (x))
-       set_block_for_insn (x, bb);
+       if (!BARRIER_P (x))
+         set_block_for_insn (x, bb);
     }
 }