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>
This commit is contained in:
parent
23e88910cf
commit
eef1e9896f
|
@ -79,11 +79,13 @@ CFLAGS_power8 +=
|
||||||
# for an example).
|
# for an example).
|
||||||
# (If you absolutely need a larger stack frame and are 100% sure it cannot
|
# (If you absolutely need a larger stack frame and are 100% sure it cannot
|
||||||
# cause problems, you can whitelist it with #pragma diagnostic.)
|
# cause problems, you can whitelist it with #pragma diagnostic.)
|
||||||
|
ifeq ($(CONFIG_COMPILER_GCC),y)
|
||||||
CFLAGS_arm += -Wstack-usage=1536
|
CFLAGS_arm += -Wstack-usage=1536
|
||||||
CFLAGS_arm64 += -Wstack-usage=1536
|
CFLAGS_arm64 += -Wstack-usage=1536
|
||||||
CFLAGS_mips += -Wstack-usage=1536
|
CFLAGS_mips += -Wstack-usage=1536
|
||||||
CFLAGS_riscv += -Wstack-usage=1536
|
CFLAGS_riscv += -Wstack-usage=1536
|
||||||
CFLAGS_power8 += -Wstack-usage=1536
|
CFLAGS_power8 += -Wstack-usage=1536
|
||||||
|
endif
|
||||||
|
|
||||||
toolchain_to_dir = \
|
toolchain_to_dir = \
|
||||||
$(foreach arch,$(ARCH_SUPPORTED),\
|
$(foreach arch,$(ARCH_SUPPORTED),\
|
||||||
|
|
Loading…
Reference in New Issue