re PR debug/54551 (DF resets some DEBUG_INSNs unnecessarily)

PR debug/54551
PR debug/54693
* valtrack.c (dead_debug_promote_uses): Assert-check that
global used bit was clear and initialize entry
unconditionally.

From-SVN: r193003
This commit is contained in:
Alexandre Oliva 2012-10-30 23:47:35 +00:00 committed by Alexandre Oliva
parent 3e55d79be9
commit f39b1a1aeb
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2012-10-30 Alexandre Oliva <aoliva@redhat.com>
PR debug/54551
PR debug/54693
* valtrack.c (dead_debug_promote_uses): Assert-check that
global used bit was clear and initialize entry
unconditionally.
2012-10-30 Eric Botcazou <ebotcazou@adacore.com>
* cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in

View File

@ -380,9 +380,11 @@ dead_debug_promote_uses (struct dead_debug_local *debug)
if (!debug->global->used)
debug->global->used = BITMAP_ALLOC (NULL);
if (bitmap_set_bit (debug->global->used, REGNO (reg)))
entry = dead_debug_global_insert (debug->global, reg,
make_debug_expr_from_rtl (reg));
bool added = bitmap_set_bit (debug->global->used, REGNO (reg));
gcc_checking_assert (added);
entry = dead_debug_global_insert (debug->global, reg,
make_debug_expr_from_rtl (reg));
gcc_checking_assert (entry->dtemp);