diff options
author | David Seifert <soap@gentoo.org> | 2022-02-03 15:47:10 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-02-03 16:10:18 +0100 |
commit | 45ba6bf28b75ee3391df83fbfb1060a50dc63d3a (patch) | |
tree | 486d5ac3c903b1c6f1ea43c0841e3773d72e8b55 /libsanitizer/configure.ac | |
parent | 1d5c7584fd6e72bfdbede86cef5ff04ae35f9744 (diff) | |
download | gcc-45ba6bf28b75ee3391df83fbfb1060a50dc63d3a.zip gcc-45ba6bf28b75ee3391df83fbfb1060a50dc63d3a.tar.gz gcc-45ba6bf28b75ee3391df83fbfb1060a50dc63d3a.tar.bz2 |
make `-Werror` optional in libatomic/libbacktrace/libgomp/libitm/libsanitizer
* `-Werror` can cause issues when a more recent version of GCC compiles
an older version:
- https://bugs.gentoo.org/229059
- https://bugs.gentoo.org/475350
- https://bugs.gentoo.org/667104
libatomic/ChangeLog:
* configure.ac: Support --disable-werror.
* configure: Regenerate.
libbacktrace/ChangeLog:
* configure.ac: Support --disable-werror.
* configure: Regenerate.
libgomp/ChangeLog:
* configure.ac: Support --disable-werror.
* configure: Regenerate.
libitm/ChangeLog:
* configure.ac: Support --disable-werror.
* configure: Regenerate.
libsanitizer/ChangeLog:
* configure.ac: Support --disable-werror.
* aclocal.m4: Include also ../config/warnings.m4.
* libbacktrace/Makefile.am (WARN_FLAGS): Remove.
* configure: Regenerate.
* Makefile.in: Regenerate.
* asan/Makefile.in: Regenerate.
* hwasan/Makefile.in: Regenerate.
* interception/Makefile.in: Regenerate.
* libbacktrace/Makefile.in: Regenerate.
* lsan/Makefile.in: Regenerate.
* sanitizer_common/Makefile.in: Regenerate.
* tsan/Makefile.in: Regenerate.
* ubsan/Makefile.in: Regenerate.
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
Diffstat (limited to 'libsanitizer/configure.ac')
-rw-r--r-- | libsanitizer/configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libsanitizer/configure.ac b/libsanitizer/configure.ac index 13cd302..7f1ef39 100644 --- a/libsanitizer/configure.ac +++ b/libsanitizer/configure.ac @@ -400,6 +400,16 @@ fi AC_SUBST([TSAN_TARGET_DEPENDENT_OBJECTS]) AC_SUBST([SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS]) +AC_ARG_ENABLE([werror], + [AS_HELP_STRING([--disable-werror], [disable building with -Werror])]) + +ACX_PROG_CC_WARNING_OPTS([-Wextra -Wall -Wwrite-strings \ + -Wmissing-format-attribute -Wcast-qual], + [WARN_FLAGS]) +AS_IF([test "x$enable_werror" != "xno"], + [WARN_FLAGS="$WARN_FLAGS -Werror"]) +AC_SUBST([WARN_FLAGS]) + # Determine what GCC version number to use in filesystem paths. GCC_BASE_VER |