PR rtl-optimization/24460
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2005 21:44:42 +0000 (21:44 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2005 21:44:42 +0000 (21:44 +0000)
* bb-reorder.c (fix_crossing_unconditional_branches): Do not
set the basic block for barriers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105774 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/bb-reorder.c

index c283966..ce0991c 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR rtl-optimization/24460
+       * bb-reorder.c (fix_crossing_unconditional_branches): Do not
+       set the basic block for barriers.
+
 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
 
        * var-tracking.c (vt_initialize): Initialize post.
index 8bf37af..a142fe2 100644 (file)
@@ -1739,7 +1739,8 @@ fix_crossing_unconditional_branches (void)
              for (cur_insn = indirect_jump_sequence; cur_insn;
                   cur_insn = NEXT_INSN (cur_insn))
                {
-                 BLOCK_FOR_INSN (cur_insn) = cur_bb;
+                 if (!BARRIER_P (cur_insn))
+                   BLOCK_FOR_INSN (cur_insn) = cur_bb;
                  if (JUMP_P (cur_insn))
                    jump_insn = cur_insn;
                }