From 8921ccbb04cf3c009d0105af2bd695308918d5dc Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Wed, 12 Dec 2018 17:10:44 +0000 Subject: [PATCH] Use REGNUM macros in the definitions of aarch64 PROBE_STACK regs * config/aarch64/aarch64.c (PROBE_STACK_FIRST_REG) : Redefine as R9_REGNUM instead of 9. (PROBE_STACK_SECOND_REG): Redefine as R10_REGNUM instead of 10. From-SVN: r267059 --- gcc/ChangeLog | 6 ++++++ gcc/config/aarch64/aarch64.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 274e713b987..7a9cda1a81f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-12-12 Olivier Hainque + + * config/aarch64/aarch64.c (PROBE_STACK_FIRST_REG) : Redefine as + R9_REGNUM instead of 9. + (PROBE_STACK_SECOND_REG): Redefine as R10_REGNUM instead of 10. + 2018-12-12 Eric Botcazou PR target/86806 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index ea7e79f7585..e17373f00be 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -3913,8 +3913,8 @@ aarch64_libgcc_cmp_return_mode (void) #endif /* The pair of scratch registers used for stack probing. */ -#define PROBE_STACK_FIRST_REG 9 -#define PROBE_STACK_SECOND_REG 10 +#define PROBE_STACK_FIRST_REG R9_REGNUM +#define PROBE_STACK_SECOND_REG R10_REGNUM /* Emit code to probe a range of stack addresses from FIRST to FIRST+POLY_SIZE, inclusive. These are offsets from the current stack pointer. */ -- 2.30.2