From: Tom Rini Date: Tue, 14 Feb 2012 10:29:38 -0700 Subject: [U-Boot] [PATCH v3 3/6] config.mk: Check for -fstack-usage support In-Reply-To: <1329174126-21460-1-git-send-email-trini@ti.com> References: <1329174126-21460-1-git-send-email-trini@ti.com> Message-ID: <1329240581-7616-4-git-send-email-trini@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Acked-by: Mike Frysinger Signed-off-by: Tom Rini --- Changes for v2: - Move check from arch/arm/config.mk to config.mk, reword summary Changes for v3: - Drop trailing comma in cc-option call (per Mike Frysinger) --- config.mk | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/config.mk b/config.mk index 596ba93..fa33e62 100644 --- a/config.mk +++ b/config.mk @@ -232,6 +232,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 -g # option to the assembler. AFLAGS_DEBUG := -- 1.7.0.4