Skip to content

Commit 8f7f5c9

Browse files
Andi Kleensravnborg
authored andcommitted
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>
1 parent c3c63b6 commit 8f7f5c9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
615615
# revert to pre-gcc-4.4 behaviour of .eh_frame
616616
KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm)
617617

618+
# conserve stack if available
619+
KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
620+
618621
# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
619622
# But warn user when we do so
620623
warn-assign = \

0 commit comments

Comments
 (0)