From: Matthias Urlichs Date: Thu, 23 Jun 2005 07:10:05 +0000 (-0700) Subject: [PATCH] Turn off sibling call optimization w/ frame pointers X-Git-Tag: v2.6.13-rc4~130^2~30 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0030cbf06c669b65e124414af51b5010fc53b760;p=linux-2.6-omap-h63xx.git [PATCH] Turn off sibling call optimization w/ frame pointers Frame pointers are supposed to enable debuggers to reliably tell where a call comes from. That is defeated by GCC's sibling call optimization (aka tail recursion elimination). This patch turns this optimization off when compiling with frame pointers. Signed-Off-By: Matthias Urlichs Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Makefile b/Makefile index 0d1e74d5006..fad349724e9 100644 --- a/Makefile +++ b/Makefile @@ -518,7 +518,7 @@ CFLAGS += $(call add-align,CONFIG_CC_ALIGN_LOOPS,-loops) CFLAGS += $(call add-align,CONFIG_CC_ALIGN_JUMPS,-jumps) ifdef CONFIG_FRAME_POINTER -CFLAGS += -fno-omit-frame-pointer +CFLAGS += -fno-omit-frame-pointer $(call cc-option,-fno-optimize-sibling-calls,) else CFLAGS += -fomit-frame-pointer endif