lkml.org 
[lkml]   [2009]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 21/43] Move cc-option to below arch-specific setup
    2.6.28-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Linus Torvalds <torvalds@linux-foundation.org>

    commit d0115552cdb0b4d4146975889fee2e9355515c4b upstream.

    Sam Ravnborg says:
    "We have several architectures that plays strange games with $(CC) and
    $(CROSS_COMPILE).

    So we need to postpone any use of $(call cc-option..) until we have
    included the arch specific Makefile so we try with the correct $(CC)
    version."

    Requested-by: Sam Ravnborg <sam@ravnborg.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

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

    --- a/Makefile
    +++ b/Makefile
    @@ -341,7 +341,6 @@ KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXI
    KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
    -fno-strict-aliasing -fno-common \
    -Werror-implicit-function-declaration
    -KBUILD_CFLAGS += $(call cc-option,-fwrapv)
    KBUILD_AFLAGS := -D__ASSEMBLY__

    # Read KERNELRELEASE from include/config/kernel.release (if it exists)
    @@ -556,6 +555,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wdecl
    # disable pointer signed / unsigned warnings in gcc 4.0
    KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)

    +# disable invalid "can't wrap" optimzations for signed / pointers
    +KBUILD_CFLAGS += $(call cc-option,-fwrapv)
    +
    # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
    # But warn user when we do so
    warn-assign = \



    \
     
     \ /
      Last update: 2009-03-21 00:37    [W:0.019 / U:1.388 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site