diff options
Diffstat (limited to 'gcc/regs.h')
-rw-r--r-- | gcc/regs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/regs.h b/gcc/regs.h index 1f8f5a788de..a1374d10941 100644 --- a/gcc/regs.h +++ b/gcc/regs.h @@ -288,11 +288,11 @@ end_hard_regno (machine_mode mode, unsigned int regno) /* Likewise for hard register X. */ -#define END_HARD_REGNO(X) end_hard_regno (GET_MODE (X), REGNO (X)) +#define END_HARD_REGNO(X) END_REGNO (X) /* Likewise for hard or pseudo register X. */ -#define END_REGNO(X) (HARD_REGISTER_P (X) ? END_HARD_REGNO (X) : REGNO (X) + 1) +#define END_REGNO(X) (REGNO (X) + REG_NREGS (X)) /* Add to REGS all the registers required to store a value of mode MODE in register REGNO. */ |