From: Andi Kleen Date: Fri, 18 Sep 2009 19:49:37 +0000 (-0700) Subject: kbuild: set -fconserve-stack option for gcc 4.5 X-Git-Tag: v2.6.32-rc1~148^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f7f5c9fc2966704579ff93f459ffa458bca6fc2;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git kbuild: set -fconserve-stack option for gcc 4.5 The upcomming gcc 4.5 has a new -fconserve-stack option that tells the inliner to take stack frame size in account. Set it if the compiler supports it. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Sam Ravnborg --- diff --git a/Makefile b/Makefile index a3b7770..5e1e74c 100644 --- 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 = \