summaryrefslogtreecommitdiffstats
path: root/toolchain.inc
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2017-05-10 22:02:55 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2017-06-19 22:17:01 +0200
commiteef1e9896fa2641b2c92d8b0c507e160a36db315 (patch)
treed24ab585c4fc270df6581a18d1895318dd60cb39 /toolchain.inc
parent23e88910cf8fc3eae19d88d4822a1e0e0dfb0582 (diff)
downloadcoreboot-eef1e9896fa2641b2c92d8b0c507e160a36db315.tar.gz
coreboot-eef1e9896fa2641b2c92d8b0c507e160a36db315.tar.bz2
coreboot-eef1e9896fa2641b2c92d8b0c507e160a36db315.zip
toolchain.inc: Use -Wstack-usage only on gcc
clang isn't happy with it Change-Id: I2c22171dedc77df24e739ec26335010f0f443963 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/19657 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@google.com> Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'toolchain.inc')
-rw-r--r--toolchain.inc2
1 files changed, 2 insertions, 0 deletions
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),\