re PR bootstrap/55048 (libjava bootstrap failure on trunk after LRA merge)
authorVladimir Makarov <vmakarov@redhat.com>
Wed, 24 Oct 2012 15:35:12 +0000 (15:35 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Wed, 24 Oct 2012 15:35:12 +0000 (15:35 +0000)
2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>

PR bootstrap/55048
* lra-constraints.c (update_ebb_live_info): Skip
non-NOTE_INSN_BASIC_BLOCK notes.

From-SVN: r192770

gcc/ChangeLog
gcc/lra-constraints.c

index 2ce2c3ef9e3843f6f3e1d8d005a176a721824fdb..7211353de842e49268eb1378b01ab828028f688c 100644 (file)
@@ -1,3 +1,9 @@
+2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
+
+       PR bootstrap/55048
+       * lra-constraints.c (update_ebb_live_info): Skip
+       non-NOTE_INSN_BASIC_BLOCK notes.
+
 2012-10-24  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/55010
index 32ecfee7659faceaa4480beb6017e050c1de8baa..1b56a0b4e54f8c7dd1b6e54f44049dc172b1a75d 100644 (file)
@@ -4300,6 +4300,10 @@ update_ebb_live_info (rtx head, rtx tail)
        curr_insn = prev_insn)
     {
       prev_insn = PREV_INSN (curr_insn);
+      /* We need to process empty blocks too.  They contain
+        NOTE_INSN_BASIC_BLOCK referring for the basic block.  */
+      if (NOTE_P (curr_insn) && NOTE_KIND (curr_insn) != NOTE_INSN_BASIC_BLOCK)
+       continue;
       curr_bb = BLOCK_FOR_INSN (curr_insn);
       if (curr_bb != prev_bb)
        {