]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: libgcc: Use -Werror
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 3 Oct 2024 16:02:55 +0000 (16:02 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Thu, 17 Oct 2024 15:43:28 +0000 (15:43 +0000)
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.

libgcc/config/aarch64/t-aarch64

index b70e7b94edd2a26ad3c8c9137215c25422dbb938..d500bd0de6728c33a4a0f77c46cbfa4c3aeb2b67 100644 (file)
@@ -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