From eef1e9896fa2641b2c92d8b0c507e160a36db315 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 10 May 2017 22:02:55 +0200 Subject: toolchain.inc: Use -Wstack-usage only on gcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clang isn't happy with it Change-Id: I2c22171dedc77df24e739ec26335010f0f443963 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/19657 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Martin Roth --- toolchain.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toolchain.inc') diff --git a/toolchain.inc b/toolchain.inc index 5501c32e63ab..d9b11f0c6345 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -79,11 +79,13 @@ CFLAGS_power8 += # for an example). # (If you absolutely need a larger stack frame and are 100% sure it cannot # cause problems, you can whitelist it with #pragma diagnostic.) +ifeq ($(CONFIG_COMPILER_GCC),y) CFLAGS_arm += -Wstack-usage=1536 CFLAGS_arm64 += -Wstack-usage=1536 CFLAGS_mips += -Wstack-usage=1536 CFLAGS_riscv += -Wstack-usage=1536 CFLAGS_power8 += -Wstack-usage=1536 +endif toolchain_to_dir = \ $(foreach arch,$(ARCH_SUPPORTED),\ -- cgit v1.2.3