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

Marek Vasut marex at denx.de
Tue Sep 11 21:08:26 CEST 2012


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

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Mike Frysinger <vapier at 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



More information about the U-Boot mailing list