From 8ad3525a59dbd07a76b8a53e56f0a3509d905017 Mon Sep 17 00:00:00 2001 From: Doug Rupp Date: Fri, 25 May 2018 09:04:20 +0000 Subject: [PATCH] [Ada] Implement stack unwinding for Linux on AArch64 2018-05-25 Doug Rupp gcc/ada/ * tracebak.c (aarch64-linux): Implement. From-SVN: r260730 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/tracebak.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 35fba035625..d1cf7a9b66e 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2018-05-25 Doug Rupp + + * tracebak.c (aarch64-linux): Implement. + 2018-05-25 Justin Squirek * sem_ch8.adb: Minor reformatting. diff --git a/gcc/ada/tracebak.c b/gcc/ada/tracebak.c index fe63bc385d5..1f41810bbfb 100644 --- a/gcc/ada/tracebak.c +++ b/gcc/ada/tracebak.c @@ -516,6 +516,13 @@ struct layout #error Unhandled QNX architecture. #endif +/*------------------- aarch64-linux ----------------------------------*/ + +#elif (defined (__aarch64__) && defined (__linux__)) + +#define USE_GCC_UNWINDER +#define PC_ADJUST -4 + /*----------------------------- ia64 ---------------------------------*/ #elif defined (__ia64__) && (defined (__linux__) || defined (__hpux__)) -- 2.30.2