summaryrefslogtreecommitdiff
path: root/gcc/caller-save.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/caller-save.c')
-rw-r--r--gcc/caller-save.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/caller-save.c b/gcc/caller-save.c
index 619dac9a689..2166dcf5b89 100644
--- a/gcc/caller-save.c
+++ b/gcc/caller-save.c
@@ -1354,8 +1354,7 @@ add_used_regs (rtx *loc, void *data)
{
unsigned int regno = REGNO (x);
if (HARD_REGISTER_NUM_P (regno))
- bitmap_set_range ((regset) data, regno,
- hard_regno_nregs[regno][GET_MODE (x)]);
+ bitmap_set_range ((regset) data, regno, REG_NREGS (x));
else
gcc_checking_assert (reg_renumber[regno] < 0);
}