[Ada] Fix inaccuracies in signal handler trampoline for aarch64-vxworks

gcc/ada/

	* sigtramp-vxworks-target.inc (__aarch64__): Sync
	REGNO_PC_OFFSET with the back-end DWARF_ALT_FRAME_RETURN_COLUMN.
	In CFI_COMMON_REGS, leave r18 alone, VxWorks private.
This commit is contained in:
Olivier Hainque 2021-03-20 21:10:49 +00:00 committed by Pierre-Marie de Rodat
parent c37c13e15e
commit 548280b996

View File

@ -100,7 +100,7 @@
#define FUNCTION "%function"
#ifdef __aarch64__
#define REGNO_PC_OFFSET 80 /* aka V16, a scratch register */
#define REGNO_PC_OFFSET 96 /* DWARF_ALT_FRAME_RETURN_COLUMN */
#else
#define REGNO_PC_OFFSET 15 /* PC_REGNUM */
#endif
@ -375,7 +375,7 @@ TCR(COMMON_CFI(G_REG_OFFSET(14))) \
TCR(COMMON_CFI(G_REG_OFFSET(15))) \
TCR(COMMON_CFI(G_REG_OFFSET(16))) \
TCR(COMMON_CFI(G_REG_OFFSET(17))) \
TCR(COMMON_CFI(G_REG_OFFSET(18))) \
CR("# Leave alone R18, VxWorks reserved\n") \
TCR(COMMON_CFI(G_REG_OFFSET(19))) \
TCR(COMMON_CFI(G_REG_OFFSET(20))) \
TCR(COMMON_CFI(G_REG_OFFSET(21))) \