summaryrefslogtreecommitdiff
path: root/gcc/dce.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-06-25 13:25:39 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2012-06-25 13:25:39 +0000
commitecf706e5ec4f1a866018e821659deff1d442f9c7 (patch)
treed65c918cbab139605a2b1e1899bb37533bc20c3e /gcc/dce.c
parent39ce30d841a90473fc5aeefe4dc6081c1966375d (diff)
downloadgcc-ecf706e5ec4f1a866018e821659deff1d442f9c7.tar.gz
re PR debug/53740 (--enable-checking=yes,rtl bootstrap failure with ada)
gcc/ PR debug/53740 * df.h (dead_debug_add): Remove third argument. * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the REG that we want to replace instead. (dead_debug_insert_temp): Use the REGNO of the reg that we want to replace instead of DF_REF_REGNO. Require there to always be at least one such use. Check for cases where the same location has more than df_ref associated with it. (df_note_bb_compute): Remove third dead_debug_add argument. * dce.c (word_dce_process_block): Likewise. From-SVN: r188934
Diffstat (limited to 'gcc/dce.c')
-rw-r--r--gcc/dce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/dce.c b/gcc/dce.c
index 8954d5c0c01..7e522c19a82 100644
--- a/gcc/dce.c
+++ b/gcc/dce.c
@@ -848,7 +848,7 @@ word_dce_process_block (basic_block bb, bool redo_out)
== 2 * UNITS_PER_WORD)
&& !bitmap_bit_p (local_live, 2 * DF_REF_REGNO (*use_rec))
&& !bitmap_bit_p (local_live, 2 * DF_REF_REGNO (*use_rec) + 1))
- dead_debug_add (&debug, *use_rec, DF_REF_REGNO (*use_rec));
+ dead_debug_add (&debug, *use_rec);
}
else if (INSN_P (insn))
{
@@ -938,7 +938,7 @@ dce_process_block (basic_block bb, bool redo_out, bitmap au)
for (use_rec = DF_INSN_USES (insn); *use_rec; use_rec++)
if (!bitmap_bit_p (local_live, DF_REF_REGNO (*use_rec))
&& !bitmap_bit_p (au, DF_REF_REGNO (*use_rec)))
- dead_debug_add (&debug, *use_rec, DF_REF_REGNO (*use_rec));
+ dead_debug_add (&debug, *use_rec);
}
else if (INSN_P (insn))
{