[U-Boot] [PATCH 3/6] arm: Check for -fstack-usage support

Tom Rini trini at ti.com
Wed Feb 8 23:58:17 CET 2012


Signed-off-by: Tom Rini <trini at ti.com>
---
 arch/arm/config.mk |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 45f9dca..caf6adb 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -53,7 +53,11 @@ PF_CPPFLAGS_ABI := $(call cc-option,\
 				)\
 			) $(call cc-option,-mno-thumb-interwork,)\
 		)
-PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARM) $(PF_CPPFLAGS_ABI)
+
+# Report stack usage if supported
+PF_CPPFLAGS_STACK := $(call cc-option,-fstack-usage,)
+
+PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARM) $(PF_CPPFLAGS_ABI) $(PF_CPPFLAGS_STACK)
 
 # For EABI, make sure to provide raise()
 ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
-- 
1.7.0.4



More information about the U-Boot mailing list