diff --git a/Makefile b/Makefile index b03ca98f7a36..3829b6b38e09 100644 --- a/Makefile +++ b/Makefile @@ -624,6 +624,9 @@ endif # Tell gcc to never replace conditional load with a non-conditional one KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) +# Needed to unbreak GCC 7.x and above +KBUILD_CFLAGS += $(call cc-option,-fno-store-merging,) + ifdef CONFIG_READABLE_ASM # Disable optimizations that make assembler listings hard to read. # reorder blocks reorders the control in the function