[U-Boot] [PATCH v2 3/6] config.mk: Check for -fstack-usage support

2012-02-13 Thread Tom Rini
Signed-off-by: Tom Rini tr...@ti.com

---
Changes for v2:
   - Move check from arch/arm/config.mk to config.mk, reword summary

Signed-off-by: Tom Rini tr...@ti.com
---
 config.mk |4 
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/config.mk b/config.mk
index 519bc1b..91c9e42 100644
--- a/config.mk
+++ b/config.mk
@@ -233,6 +233,10 @@ CFLAGS_WARN := $(call cc-option,-Wno-format-nonliteral) \
   $(call cc-option,-Wno-format-security)
 CFLAGS += $(CFLAGS_WARN)
 
+# Report stack usage if supported
+CFLAGS_STACK := $(call cc-option,-fstack-usage,)
+CFLAGS += $(CFLAGS_STACK)
+
 # $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -gformat
 # option to the assembler.
 AFLAGS_DEBUG :=
-- 
1.7.0.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 3/6] config.mk: Check for -fstack-usage support

2012-02-13 Thread Mike Frysinger
On Monday 13 February 2012 18:02:03 Tom Rini wrote:
 --- a/config.mk
 +++ b/config.mk
 
 +# Report stack usage if supported
 +CFLAGS_STACK := $(call cc-option,-fstack-usage,)

not that it really matters, but you don't need the 2nd comma

Acked-by: Mike Frysinger vap...@gentoo.org
-mike


signature.asc
Description: This is a digitally signed message part.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot