kbuild: set -fconserve-stack option for gcc 4.5
[safe/jmp/linux-2.6] / Makefile
index a3b7770..5e1e74c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -615,6 +615,9 @@ KBUILD_CFLAGS       += $(call cc-option,-fno-strict-overflow)
 # revert to pre-gcc-4.4 behaviour of .eh_frame
 KBUILD_CFLAGS  += $(call cc-option,-fno-dwarf2-cfi-asm)
 
+# conserve stack if available
+KBUILD_CFLAGS   += $(call cc-option,-fconserve-stack)
+
 # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
 # But warn user when we do so
 warn-assign = \