summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-23 16:53:20 +0100
committerIngo Molnar <mingo@elte.hu>2009-03-23 16:53:20 +0100
commitefd247fa34084d9b162f485004ae6d8a04059f0c (patch)
tree417dcbe06d5cce1353a4c19cbda480ae67652b5c /Makefile
parentaf66df5ecf9c9e2d2ff86e8203510c1c4519d64c (diff)
parent59fcbddaff6f862cc1584b488866d9c4a5579085 (diff)
Merge branches 'sched/debug' and 'linus' into sched/core
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2e2f4a4324af..a2c2efe9e82e 100644
--- a/Makefile
+++ b/Makefile
@@ -566,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 = \