aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-03-19 18:53:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-19 18:53:19 -0400
commitd0115552cdb0b4d4146975889fee2e9355515c4b (patch)
tree408e36ddf0eb6397a0f8f672701b753287e26cd9
parentcaa81d671f485dc54960e37a888d3b55349850a9 (diff)
Move cc-option to below arch-specific setup
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>
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f607658ac896..a2c2efe9e82e 100644
--- a/Makefile
+++ b/Makefile
@@ -347,7 +347,6 @@ KBUILD_CPPFLAGS := -D__KERNEL__
347KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ 347KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
348 -fno-strict-aliasing -fno-common \ 348 -fno-strict-aliasing -fno-common \
349 -Werror-implicit-function-declaration 349 -Werror-implicit-function-declaration
350KBUILD_CFLAGS += $(call cc-option,-fwrapv)
351KBUILD_AFLAGS := -D__ASSEMBLY__ 350KBUILD_AFLAGS := -D__ASSEMBLY__
352 351
353# Read KERNELRELEASE from include/config/kernel.release (if it exists) 352# Read KERNELRELEASE from include/config/kernel.release (if it exists)
@@ -567,6 +566,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
567# disable pointer signed / unsigned warnings in gcc 4.0 566# disable pointer signed / unsigned warnings in gcc 4.0
568KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) 567KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)
569 568
569# disable invalid "can't wrap" optimzations for signed / pointers
570KBUILD_CFLAGS += $(call cc-option,-fwrapv)
571
570# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments 572# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
571# But warn user when we do so 573# But warn user when we do so
572warn-assign = \ 574warn-assign = \