[PATCH] [AArch64] Adding -funwind-tables to backtrace.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] [AArch64] Adding -funwind-tables to backtrace.c

Marcus Shawcroft-2
The debug/tst-backtrace*.c tests are currently failing for AArch64.  Patch below.
Is this OK for 2.18?

Thanks
/Marcus

        * sysdeps/aarch64/Makefile (CFLAGS-backtrace.c): Define.

---
 ports/ChangeLog.aarch64        | 4 ++++
 ports/sysdeps/aarch64/Makefile | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/ports/ChangeLog.aarch64 b/ports/ChangeLog.aarch64
index 15bdd76..0c4c6f0 100644
--- a/ports/ChangeLog.aarch64
+++ b/ports/ChangeLog.aarch64
@@ -1,5 +1,9 @@
 2013-07-05  Marcus Shawcroft  <[hidden email]>
 
+ * sysdeps/aarch64/Makefile (CFLAGS-backtrace.c): Define.
+
+2013-07-05  Marcus Shawcroft  <[hidden email]>
+
  * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist (mcount): Add.
  (__mcount): Likewise.
 
diff --git a/ports/sysdeps/aarch64/Makefile b/ports/sysdeps/aarch64/Makefile
index ce2cedd..5af7a16 100644
--- a/ports/sysdeps/aarch64/Makefile
+++ b/ports/sysdeps/aarch64/Makefile
@@ -1,5 +1,9 @@
 long-double-fcts = yes
 
+ifeq ($(subdir),debug)
+CFLAGS-backtrace.c += -funwind-tables
+endif
+
 ifeq ($(subdir),elf)
 sysdep-dl-routines += tlsdesc dl-tlsdesc
 sysdep_routines += tlsdesc dl-tlsdesc
--
1.8.1.2