From 72fb7af0b24357a8aa15e6f7818f6c8d3cba2115 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 19 Mar 2009 15:53:19 -0700 Subject: [PATCH] --- yaml --- r: 132496 b: refs/heads/master c: d0115552cdb0b4d4146975889fee2e9355515c4b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/Makefile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4d86f9fd541d..7c45f984002f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: caa81d671f485dc54960e37a888d3b55349850a9 +refs/heads/master: d0115552cdb0b4d4146975889fee2e9355515c4b diff --git a/trunk/Makefile b/trunk/Makefile index f607658ac896..a2c2efe9e82e 100644 --- a/trunk/Makefile +++ b/trunk/Makefile @@ -347,7 +347,6 @@ KBUILD_CPPFLAGS := -D__KERNEL__ 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) @@ -567,6 +566,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) # 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 = \