summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-09-10 16:51:17 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-09-24 18:36:50 +0300
commit8b42cf2fde0ee8b63d71d4bc442a03b6ea55b00b (patch)
treecda167eec82055a63302c971b5c9274682bd340e /Makefile
parentbb2732112bc52bed7b20b9fc59d7246e4e7ce5ed (diff)
downloadlinux-8b42cf2fde0ee8b63d71d4bc442a03b6ea55b00b.tar.xz
kbuild: remove cc-option test of -fno-strict-overflow
The minimal compiler versions, GCC 4.9 and Clang 10 support this flag. Here is the godbolt: https://godbolt.org/z/odq8h9 Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Acked-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 06890bb0e011..7036dcb99cdf 100644
--- a/Makefile
+++ b/Makefile
@@ -928,7 +928,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, restrict)
KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
# disable invalid "can't wrap" optimizations for signed / pointers
-KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
+KBUILD_CFLAGS += -fno-strict-overflow
# clang sets -fmerge-all-constants by default as optimization, but this
# is non-conforming behavior for C and in fact breaks the kernel, so we