summaryrefslogtreecommitdiff
path: root/gcc/init-regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/init-regs.c')
-rw-r--r--gcc/init-regs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/init-regs.c b/gcc/init-regs.c
index 59c5bc91004..4080d0f91f3 100644
--- a/gcc/init-regs.c
+++ b/gcc/init-regs.c
@@ -68,14 +68,12 @@ initialize_uninitialized_regs (void)
FOR_BB_INSNS (bb, insn)
{
- unsigned int uid = INSN_UID (insn);
- df_ref *use_rec;
+ df_ref use;
if (!NONDEBUG_INSN_P (insn))
continue;
- for (use_rec = DF_INSN_UID_USES (uid); *use_rec; use_rec++)
+ FOR_EACH_INSN_USE (use, insn)
{
- df_ref use = *use_rec;
unsigned int regno = DF_REF_REGNO (use);
/* Only do this for the pseudos. */
@@ -109,7 +107,8 @@ initialize_uninitialized_regs (void)
if (dump_file)
fprintf (dump_file,
"adding initialization in %s of reg %d at in block %d for insn %d.\n",
- current_function_name (), regno, bb->index, uid);
+ current_function_name (), regno, bb->index,
+ INSN_UID (insn));
}
}
}