aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 395256159..067e3e9e8 100644
--- a/Makefile
+++ b/Makefile
@@ -596,6 +596,9 @@ KBUILD_CFLAGS += $(call cc-disable-warning,unused-const-variable,)
# Disable format-truncation warnings
KBUILD_CFLAGS += $(call cc-disable-warning,format-truncation,)
+# Needed to unbreak GCC 7.x and above
+KBUILD_CFLAGS += $(call cc-option,-fno-store-merging,)
+
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os
else