lkml.org 
[lkml]   [2009]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [5/5] kbuild: Set -fconserve-stack option for gcc 4.5
    Date

    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>

    ---
    Makefile | 3 +++
    1 file changed, 3 insertions(+)

    Index: linux-2.6.31-rc3-ak/Makefile
    ===================================================================
    --- linux-2.6.31-rc3-ak.orig/Makefile
    +++ linux-2.6.31-rc3-ak/Makefile
    @@ -575,6 +575,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-s
    # 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 = \

    \
     
     \ /
      Last update: 2009-09-14 22:45    [W:0.017 / U:0.316 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site