This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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  <marcus.shawcroft@linaro.org>
 
+	* sysdeps/aarch64/Makefile (CFLAGS-backtrace.c): Define.
+
+2013-07-05  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
+
 	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]