Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/76007?usp=email )
Change subject: acpi/acpigen.c: Ignore compiler warning about stack overflowing ......................................................................
acpi/acpigen.c: Ignore compiler warning about stack overflowing
With arm64 -Wstack-usage= is enabled which is triggered on any use of alloca(). Since this function basically works on x86 without wrecking things and causing massive stack consumption it's unlikely to cause problems on arm64.
Signed-off-by: Arthur Heymans arthur@aheymans.xyz Change-Id: I5d445d151db5e6cc7b6e13bf74ce81007d819f1d --- M src/acpi/acpigen.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/76007/1
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index e61954f..7ca4f02 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -1764,6 +1764,10 @@ * bit 0: other functions than 0 are supported * bits 1-x: function x supported */ +/* On GCC aarch64 the compiler is worried about alloca() having unbounded stack usage. */ +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic ignored "-Wstack-usage=" +#endif static void acpigen_dsm_uuid_enum_functions(const struct dsm_uuid *id) { const size_t bytes = DIV_ROUND_UP(id->count, BITS_PER_BYTE);