Build SH backtrace with -funwind-tables.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 1 Nov 2012 00:22:53 +0000 (00:22 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 1 Nov 2012 00:22:53 +0000 (00:22 +0000)
ChangeLog
sysdeps/sh/Makefile

index 1296ee6..c1fbbe2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
+       New variable.
+
 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
 
        * rt/tst-shm.c (worker): Correct checking for mmap failure.
index cf18ded..bb7c553 100644 (file)
@@ -1,3 +1,7 @@
 ifeq ($(subdir),gmon)
 sysdep_routines += _mcount
 endif
+
+ifeq ($(subdir),debug)
+CFLAGS-backtrace.c += -funwind-tables
+endif