[U-Boot] [PATCH 1/2] bfin: Disable -fstack-usage

Marek Vasut
2012-09-11T19:08:26Z

The GCC does not support this on blackfin, disable it.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
---
config.mk | 2 ++
1 file changed, 2 insertions(+)

diff --git a/config.mk b/config.mk
index c3822a2..d39355f 100644
--- a/config.mk
+++ b/config.mk
@@ -245,8 +245,10 @@ CFLAGS_WARN := $(call cc-option,-Wno-format-nonliteral) \
CFLAGS += $(CFLAGS_WARN)

# Report stack usage if supported
+ifneq ($(ARCH),blackfin)
CFLAGS_STACK := $(call cc-option,-fstack-usage)
CFLAGS += $(CFLAGS_STACK)
+endif

# $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
# option to the assembler.
--
1.7.10.4