File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -956,15 +956,6 @@ KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
956
956
# disable invalid "can't wrap" optimizations for signed / pointers
957
957
KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
958
958
959
- # clang sets -fmerge-all-constants by default as optimization, but this
960
- # is non-conforming behavior for C and in fact breaks the kernel, so we
961
- # need to disable it here generally.
962
- KBUILD_CFLAGS += $(call cc-option,-fno-merge-all-constants)
963
-
964
- # for gcc -fno-merge-all-constants disables everything, but it is fine
965
- # to have actual conforming behavior enabled.
966
- KBUILD_CFLAGS += $(call cc-option,-fmerge-constants)
967
-
968
959
# Make sure -fstack-check isn't enabled (like gentoo apparently did)
969
960
KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,)
970
961
You can’t perform that action at this time.
0 commit comments