summaryrefslogtreecommitdiffstats
path: root/libgo
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-02-03 15:47:10 +0100
committerJakub Jelinek <jakub@redhat.com>2022-02-03 16:10:18 +0100
commit45ba6bf28b75ee3391df83fbfb1060a50dc63d3a (patch)
tree486d5ac3c903b1c6f1ea43c0841e3773d72e8b55 /libgo
parentdebug/104337 - avoid messing with the abstract origin chain in NRV (diff)
downloadgcc-45ba6bf28b75ee3391df83fbfb1060a50dc63d3a.tar.gz
gcc-45ba6bf28b75ee3391df83fbfb1060a50dc63d3a.tar.bz2
gcc-45ba6bf28b75ee3391df83fbfb1060a50dc63d3a.tar.xz
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 'libgo')
-rwxr-xr-xlibgo/configure4
-rw-r--r--libgo/configure.ac9
2 files changed, 6 insertions, 7 deletions
diff --git a/libgo/configure b/libgo/configure
index 57ceeb2baa7..309e17dd91f 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -1496,7 +1496,7 @@ Optional Features:
1496 --enable-fast-install[=PKGS] 1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes] 1497 optimize for fast installation [default=yes]
1498 --disable-libtool-lock avoid locking (might break parallel builds) 1498 --disable-libtool-lock avoid locking (might break parallel builds)
1499 --enable-werror turns on -Werror [default=yes] 1499 --disable-werror disable building with -Werror
1500 --enable-version-specific-runtime-libs 1500 --enable-version-specific-runtime-libs
1501 Specify that runtime libraries should be installed 1501 Specify that runtime libraries should be installed
1502 in a compiler-specific directory 1502 in a compiler-specific directory
@@ -13834,7 +13834,7 @@ if test "${enable_werror+set}" = set; then :
13834 enableval=$enable_werror; 13834 enableval=$enable_werror;
13835fi 13835fi
13836 13836
13837if test "x$enable_werror" != "xno"; then 13837if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
13838 WERROR="-Werror" 13838 WERROR="-Werror"
13839fi 13839fi
13840 13840
diff --git a/libgo/configure.ac b/libgo/configure.ac
index 1f4f32dae2b..8691d5b0ac1 100644
--- a/libgo/configure.ac
+++ b/libgo/configure.ac
@@ -62,11 +62,10 @@ AC_PROG_AWK
62WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual' 62WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
63AC_SUBST(WARN_FLAGS) 63AC_SUBST(WARN_FLAGS)
64 64
65AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror], 65AC_ARG_ENABLE([werror],
66 [turns on -Werror @<:@default=yes@:>@])]) 66 [AS_HELP_STRING([--disable-werror], [disable building with -Werror])])
67if test "x$enable_werror" != "xno"; then 67AS_IF([test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"],
68 WERROR="-Werror" 68 [WERROR="-Werror"])
69fi
70AC_SUBST(WERROR) 69AC_SUBST(WERROR)
71 70
72glibgo_toolexecdir=no 71glibgo_toolexecdir=no