Move and adjust PROBE_STACK reg definitions for aarch64
authorOlivier Hainque <hainque@adacore.com>
Fri, 13 Dec 2019 09:09:18 +0000 (09:09 +0000)
committerOlivier Hainque <hainque@adacore.com>
Thu, 5 Nov 2020 17:28:58 +0000 (17:28 +0000)
commit5773855c3f57da5864a848c12844883bd1c48b24
tree83bd93ade27b275a76fcc5eaf5916f8352808e90
parent58c9de46541ade795987b8949cfa685f02b0318a
Move and adjust PROBE_STACK reg definitions for aarch64

The change moves the definitions of PROBE_STACK_FIRST_REG
and PROBE_STACK_SECOND_REG to a more appropriate place for such
items (here, in aarch64.md as suggested by Richard), and adjusts
their value from r9/r10 to r10/r11 to free r9 for a possibly
more general purpose (e.g. as a static chain at least on targets
which have a private use of r18, such as Windows or Vxworks).

2020-11-07  Olivier Hainque  <hainque@adacore.com>

gcc/
* config/aarch64/aarch64.md: Define PROBE_STACK_FIRST_REGNUM
and PROBE_STACK_SECOND_REGNUM constants, designating r10/r11.
Replacements for the PROBE_STACK_FIRST/SECOND_REG constants in
aarch64.c.
* config/aarch64/aarch64.c (PROBE_STACK_FIRST_REG): Remove.
(PROBE_STACK_SECOND_REG): Remove.
(aarch64_emit_probe_stack_range): Adjust to the _REG -> _REGNUM
suffix update for PROBE_STACK register numbers.
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md