From: Andreas Schwab Date: Sun, 20 Jan 2013 00:31:07 +0000 (+0100) Subject: m68k: add unwind tables to backtrace X-Git-Tag: upstream/2.30~9595 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cd24045d6967c3ae0699fd58a98111ac9de0751;p=external%2Fglibc.git m68k: add unwind tables to backtrace --- diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k index e470ed8..7e58a8a 100644 --- a/ports/ChangeLog.m68k +++ b/ports/ChangeLog.m68k @@ -1,3 +1,7 @@ +2013-01-20 Andreas Schwab + + * sysdeps/m68k/Makefile (CFLAGS-backtrace.c): Add -funwind-tables. + 2013-01-19 Andreas Schwab * sysdeps/m68k/backtrace.c: New file. diff --git a/ports/sysdeps/m68k/Makefile b/ports/sysdeps/m68k/Makefile index ef79830..c5b5318 100644 --- a/ports/sysdeps/m68k/Makefile +++ b/ports/sysdeps/m68k/Makefile @@ -26,8 +26,14 @@ asm-CPPFLAGS += $(m68k-syntax-flag) pic-ccflag = -fpic +ifeq ($(subdir),setjmp) # Make sure setjmp.c is compiled with a frame pointer CFLAGS-setjmp.c := -fno-omit-frame-pointer +endif + +ifeq ($(subdir),debug) +CFLAGS-backtrace.c += -funwind-tables +endif ifeq ($(subdir),elf) CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused