revert-kbuild-disable-clangs-default-use-of-fmerge-all-constants.patch removed from -mm tree
The patch titled
Subject: Revert "kbuild: disable clang's default use of -fmerge-all-constants"
has been removed from the -mm tree. Its filename was
revert-kbuild-disable-clangs-default-use-of-fmerge-all-constants.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Nick Desaulniers <[email protected]>
Subject: Revert "kbuild: disable clang's default use of -fmerge-all-constants"
This reverts commit 87e0d4f0f37fb0c8c4aeeac46fff5e957738df79.
-fno-merge-all-constants has been the default since clang-6; the minimum supported version of clang in the kernel is clang-10 (10.0.1).
Signed-off-by Nick Desaulniers <[email protected]>
Suggested-by Nathan Chancellor <[email protected]>
Tested-by Sedat Dilek <[email protected]>
Reviewed-by Fangrui Song <[email protected]>
Reviewed-by Nathan Chancellor <[email protected]>
Reviewed-by Sedat Dilek <[email protected]>
Reviewed-by Kees Cook <[email protected]>
Cc Andrey Konovalov <[email protected]>
Cc Marco Elver <[email protected]>
Cc Miguel Ojeda <[email protected]>
Cc Alexei Starovoitov <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Masahiro Yamada <[email protected]>
Cc Vincenzo Frascino <[email protected]>
Cc Will Deacon <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
Makefile | 9 --------- 1 file changed, 9 deletions(-)
Makefile renamed from Makefile~revert-kbuild-disable-clangs-default-use-of-fmerge-all-constants +0 -9
@@ -921,15 +921,6 @@ KBUILD_CFLAGS += $(call cc-disable-warni # disable invalid "can't wrap" optimizations for signed / pointers KBUILD_CFLAGS += $(call cc-option,-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 -# need to disable it here generally. -KBUILD_CFLAGS += $(call cc-option,-fno-merge-all-constants) - -# for gcc -fno-merge-all-constants disables everything, but it is fine -# to have actual conforming behavior enabled. -KBUILD_CFLAGS += $(call cc-option,-fmerge-constants) - # Make sure -fstack-check isn't enabled (like gentoo apparently did) KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,)
_
Patches currently in -mm which might be from [email protected] are