aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.flags6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.flags b/Makefile.flags
index e4cd658fd..97cb4dca2 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -48,7 +48,7 @@ endif
48# gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() 48# gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action()
49CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition) 49CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition)
50 50
51ifneq ($(CC),clang) 51ifneq ($(lastword $(subst -, ,$(CC))),clang)
52# "clang-9: warning: optimization flag '-finline-limit=0' is not supported 52# "clang-9: warning: optimization flag '-finline-limit=0' is not supported
53CFLAGS += $(call cc-option,-finline-limit=0,) 53CFLAGS += $(call cc-option,-finline-limit=0,)
54endif 54endif
@@ -66,7 +66,7 @@ CFLAGS += $(call cc-option,-static-libgcc,)
66endif 66endif
67 67
68CFLAGS += $(call cc-option,-falign-functions=1,) 68CFLAGS += $(call cc-option,-falign-functions=1,)
69ifneq ($(CC),clang) 69ifneq ($(lastword $(subst -, ,$(CC))),clang)
70# "clang-9: warning: optimization flag '-falign-jumps=1' is not supported" (and same for other two) 70# "clang-9: warning: optimization flag '-falign-jumps=1' is not supported" (and same for other two)
71CFLAGS += $(call cc-option,-falign-jumps=1 -falign-labels=1 -falign-loops=1,) 71CFLAGS += $(call cc-option,-falign-jumps=1 -falign-labels=1 -falign-loops=1,)
72endif 72endif
@@ -79,7 +79,7 @@ CFLAGS += $(call cc-option,-fno-asynchronous-unwind-tables,)
79CFLAGS += $(call cc-option,-fno-builtin-printf,) 79CFLAGS += $(call cc-option,-fno-builtin-printf,)
80 80
81# clang-9 does not like "str" + N and "if (CONFIG_ITEM && cond)" constructs 81# clang-9 does not like "str" + N and "if (CONFIG_ITEM && cond)" constructs
82ifeq ($(CC),clang) 82ifeq ($(lastword $(subst -, ,$(CC))),clang)
83CFLAGS += $(call cc-option,-Wno-string-plus-int -Wno-constant-logical-operand) 83CFLAGS += $(call cc-option,-Wno-string-plus-int -Wno-constant-logical-operand)
84endif 84endif
85 85