]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: libgcc: Honor disable-werror [PR117600]
authorChristophe Lyon <christophe.lyon@linaro.org>
Fri, 8 Aug 2025 12:55:07 +0000 (12:55 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Fri, 8 Aug 2025 14:46:57 +0000 (14:46 +0000)
commitfdc560aaaedfcf4e3a88379856badd7a153f41cf
treeb5de4327f66dab734a7963bb9a567d54e907636e
parented520bfcf4b2e0879849706dcbf707f9f3ff9da2
aarch64: libgcc: Honor disable-werror [PR117600]

In commit r15-4417-g71c7b446b98aa5, I made -werror mandatory when
building libgcc for aarch64.

While it achieved its goal (make us fix problems unnoticed so far),
there has a been a lot of debate because it couldn't be disabled
easily.

This patch adds support for --enable-werror/--disable-werror in
libgcc, defaulting to --enable-werror for aarch64.

Tested on non-bootstrap builds on aarch64-linux-gnu (with
-Wno-prio-ctor-dtor removed in order to get an error).

libgcc/ChangeLog:

PR libgcc/117600
* Makefile.in (WERROR): New.
* config/aarch64/t-aarch64: Handle WERROR.
* configure: Regenerate.
* configure.ac: Add support for --enable-werror.
libgcc/Makefile.in
libgcc/config/aarch64/t-aarch64
libgcc/configure
libgcc/configure.ac