https://gcc.gnu.org/g:71c7b446b98aa51294d79c45e37f1564668a1f3a
commit r15-4417-g71c7b446b98aa51294d79c45e37f1564668a1f3a Author: Christophe Lyon <christophe.l...@linaro.org> Date: Thu Oct 3 16:02:55 2024 +0000 aarch64: libgcc: Use -Werror This patch adds -Werror to LIBGCC2_CFLAGS so that aarch64 can catch warnings during bootstrap, while not impacting other targets. The patch also adds -Wno-prio-ctor-dtor to avoid a warning when compiling lse_init.c libgcc/ * config/aarch64/t-aarch64: Always use -Werror -Wno-prio-ctor-dtor. Diff: --- libgcc/config/aarch64/t-aarch64 | 1 + 1 file changed, 1 insertion(+) diff --git a/libgcc/config/aarch64/t-aarch64 b/libgcc/config/aarch64/t-aarch64 index b70e7b94edd2..d500bd0de672 100644 --- a/libgcc/config/aarch64/t-aarch64 +++ b/libgcc/config/aarch64/t-aarch64 @@ -30,3 +30,4 @@ LIB2ADDEH += \ $(srcdir)/config/aarch64/__arm_za_disable.S SHLIB_MAPFILES += $(srcdir)/config/aarch64/libgcc-sme.ver +LIBGCC2_CFLAGS += -Werror -Wno-prio-ctor-dtor