Skip to contentSkip to conversation

lock validator: s390 CONFIG_FRAME_POINTER support

PATCH In review Heiko Carstens 1 participant 1 message Jun 14, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/8 lock validator: s390 CONFIG_FRAME_POINTER support

From: Heiko Carstens <[email protected]>

CONFIG_FRAME_POINTER support for s390.

---

 arch/s390/Makefile |    5 +++++
 lib/Kconfig.debug  |    2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
arch/s390/Makefile +5 -0
diff -purN a/arch/s390/Makefile b/arch/s390/Makefile
@@ -38,6 +38,11 @@ cflags-$(CONFIG_MARCH_G5)   += $(call cc
 cflags-$(CONFIG_MARCH_Z900) += $(call cc-option,-march=z900)
 cflags-$(CONFIG_MARCH_Z990) += $(call cc-option,-march=z990)
 
+#
+# Prevent tail-call optimizations, to get clearer backtraces:
+#
+cflags-$(CONFIG_FRAME_POINTER) += -fno-optimize-sibling-calls
+
 # old style option for packed stacks
 ifeq ($(call cc-option-yn,-mkernel-backchain),y)
 cflags-$(CONFIG_PACK_STACK)  += -mkernel-backchain -D__PACK_STACK
lib/Kconfig.debug +1 -1
diff -purN a/lib/Kconfig.debug b/lib/Kconfig.debug
@@ -503,7 +503,7 @@ config DEBUG_VM
 
 config FRAME_POINTER
 	bool "Compile the kernel with frame pointers"
-	depends on DEBUG_KERNEL && (X86 || CRIS || M68K || M68KNOMMU || FRV || UML)
+	depends on DEBUG_KERNEL && (X86 || CRIS || M68K || M68KNOMMU || FRV || UML || S390)
 	default y
 	help
 	  If you say Y here the resulting kernel image will be slightly larger