X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Makefile;h=034e5aadce5c5296ceb8265f2a45ac8ed808972b;hb=c57b6b7090eab6a83c57175185e53166ab532675;hp=5ab6be8889cab0a6eb5e3d86912684c3315bf2b0;hpb=645b5afbb8215b3386cd6fc2dc3119bd68e4c760;p=u-boot diff --git a/Makefile b/Makefile index 5ab6be8889..034e5aadce 100644 --- a/Makefile +++ b/Makefile @@ -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)