Handle use of r18 as a TCB pointer on aarch64-vxworks
authorOlivier Hainque <hainque@adacore.com>
Wed, 4 Nov 2020 08:05:06 +0000 (08:05 +0000)
committerOlivier Hainque <hainque@adacore.com>
Thu, 5 Nov 2020 18:31:28 +0000 (18:31 +0000)
commit7fa1b2c8dac00eefadb1f0d459fd716027aa1b67
tree54fd0d9e8274a937d797a7c81e4c263b9af32bf9
parent2f93a2a03a343a29f614a530d7657f1ed6347ed5
Handle use of r18 as a TCB pointer on aarch64-vxworks

Pick an alternate static chain regnum and document that
the port needs to be configured to issue -ffixed-r18 by
default.  The current definition of TARGET_OS_USES_R18 is
not honored by the common part of the back-end.

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

gcc/
* config/aarch64/aarch64-vxworks.h (TARGET_OS_USES_R18):
Remove definition.
(STATIC_CHAIN_REGNUM): Redefine to 9.
gcc/config/aarch64/aarch64-vxworks.h