aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-09-18 15:49:37 -0400
committerSam Ravnborg <sam@ravnborg.org>2009-09-20 06:27:44 -0400
commit8f7f5c9fc2966704579ff93f459ffa458bca6fc2 (patch)
tree63d6ecdac2e10828c45205f2c7d4a5e558c5767a /Makefile
parentc3c63b6bec3135e814fa07d30d57a253f41d53de (diff)
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 <ak@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a3b7770b2cdd..5e1e74c9976c 100644
--- a/Makefile
+++ b/Makefile
@@ -615,6 +615,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
615# revert to pre-gcc-4.4 behaviour of .eh_frame 615# revert to pre-gcc-4.4 behaviour of .eh_frame
616KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) 616KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm)
617 617
618# conserve stack if available
619KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
620
618# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments 621# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
619# But warn user when we do so 622# But warn user when we do so
620warn-assign = \ 623warn-assign = \