diff options
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -347,7 +347,6 @@ KBUILD_CPPFLAGS := -D__KERNEL__ | |||
| 347 | KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ | 347 | KBUILD_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 |
| 350 | KBUILD_CFLAGS += $(call cc-option,-fwrapv) | ||
| 351 | KBUILD_AFLAGS := -D__ASSEMBLY__ | 350 | KBUILD_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 |
| 568 | KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) | 567 | KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) |
| 569 | 568 | ||
| 569 | # disable invalid "can't wrap" optimzations for signed / pointers | ||
| 570 | KBUILD_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 |
| 572 | warn-assign = \ | 574 | warn-assign = \ |
