|
@@ -600,9 +600,13 @@ KBUILD_CFLAGS += -g
|
|
|
KBUILD_AFLAGS += -g
|
|
|
|
|
|
# Report stack usage if supported
|
|
|
+# ARC tools based on GCC 7.1 has an issue with stack usage
|
|
|
+# with naked functions, see commit message for more details
|
|
|
+ifndef CONFIG_ARC
|
|
|
ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-stack-usage.sh $(CC)),y)
|
|
|
KBUILD_CFLAGS += -fstack-usage
|
|
|
endif
|
|
|
+endif
|
|
|
|
|
|
KBUILD_CFLAGS += $(call cc-option,-Wno-format-nonliteral)
|
|
|
|