summaryrefslogtreecommitdiff
path: root/gcc/lra-constraints.c
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>2012-10-24 15:35:12 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>2012-10-24 15:35:12 +0000
commit911598e3628e754bcd76525980cf15bbdc5d4c7b (patch)
tree943a5af4e02ac73b8beb93539c7928a312e4bce5 /gcc/lra-constraints.c
parent7780fd2a1329454aab5d3cfd4b1bd77294fa5ace (diff)
downloadgcc-911598e3628e754bcd76525980cf15bbdc5d4c7b.tar.gz
re PR bootstrap/55048 (libjava bootstrap failure on trunk after LRA merge)
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
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r--gcc/lra-constraints.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index 32ecfee7659..1b56a0b4e54 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -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)
{