From fde157f2ed3550acb3de83440e33c919cf7942c0 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Wed, 4 Aug 2010 21:07:05 +0000 Subject: [PATCH] re PR rtl-optimization/45162 (ARM bootstrap comparison failures after stage 3) PR rtl-optimization/45162 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs. * dce.c (word_dce_process_block): Likewise. From-SVN: r162881 --- gcc/ChangeLog | 6 ++++++ gcc/dce.c | 2 +- gcc/df-problems.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0fc6486523b..6ed4e68716c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-08-04 Bernd Schmidt + + PR rtl-optimization/45162 + * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs. + * dce.c (word_dce_process_block): Likewise. + 2010-08-04 Steve Ellcey PR target/44583 diff --git a/gcc/dce.c b/gcc/dce.c index c940adf304f..2d4f3a61706 100644 --- a/gcc/dce.c +++ b/gcc/dce.c @@ -795,7 +795,7 @@ word_dce_process_block (basic_block bb, bool redo_out) bitmap_copy (local_live, DF_WORD_LR_OUT (bb)); FOR_BB_INSNS_REVERSE (bb, insn) - if (INSN_P (insn)) + if (NONDEBUG_INSN_P (insn)) { bool any_changed; /* No matter if the instruction is needed or not, we remove diff --git a/gcc/df-problems.c b/gcc/df-problems.c index d0d0ea71608..e18ffe3c5d9 100644 --- a/gcc/df-problems.c +++ b/gcc/df-problems.c @@ -2472,7 +2472,7 @@ df_word_lr_bb_local_compute (unsigned int bb_index) { unsigned int uid = INSN_UID (insn); - if (!INSN_P (insn)) + if (!NONDEBUG_INSN_P (insn)) continue; for (def_rec = DF_INSN_UID_DEFS (uid); *def_rec; def_rec++) {