commit:     a7acee064e82c1de695f2303b705fd69884d9e99
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 30 22:05:19 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Sep 30 22:05:19 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a7acee06

8.2.0: restore -Werror patches

Five new patches that drop -Werror:
+ 105_all_libgfortran-Werror.patch
+ 106_all_libgomp-Werror.patch
+ 107_all_libitm-Werror.patch
+ 108_all_libatomic-Werror.patch
+ 109_all_libbacktrace-Werror.patch

The patches are no really new: last time Gentoo applied
them on gcc-4.9.x branch but after 5.x they were lost.

Need for them resurfaces after series of fixes that allowed
user to tweak CXXFLAGS (bug #581406)

Reported-by: Jeroen Roovers
Bug: https://bugs.gentoo.org/667104
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 8.2.0/gentoo/105_all_libgfortran-Werror.patch  | 13 +++++++++++++
 8.2.0/gentoo/106_all_libgomp-Werror.patch      | 20 ++++++++++++++++++++
 8.2.0/gentoo/107_all_libitm-Werror.patch       | 19 +++++++++++++++++++
 8.2.0/gentoo/108_all_libatomic-Werror.patch    | 19 +++++++++++++++++++
 8.2.0/gentoo/109_all_libbacktrace-Werror.patch | 17 +++++++++++++++++
 8.2.0/gentoo/README.history                    | 10 ++++++++++
 6 files changed, 98 insertions(+)

diff --git a/8.2.0/gentoo/105_all_libgfortran-Werror.patch 
b/8.2.0/gentoo/105_all_libgfortran-Werror.patch
new file mode 100644
index 0000000..c54a469
--- /dev/null
+++ b/8.2.0/gentoo/105_all_libgfortran-Werror.patch
@@ -0,0 +1,13 @@
+libgfortran does not respect --disable-werror
+
+https://bugs.gentoo.org/433435
+http://gcc.gnu.org/PR54724
+
+
+--- a/libgfortran/configure
++++ b/libgfortran/configure
+@@ -5764,3 +5764,3 @@ fi
+ # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays 
-fno-underscoring"
++  AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring"

diff --git a/8.2.0/gentoo/106_all_libgomp-Werror.patch 
b/8.2.0/gentoo/106_all_libgomp-Werror.patch
new file mode 100644
index 0000000..416808a
--- /dev/null
+++ b/8.2.0/gentoo/106_all_libgomp-Werror.patch
@@ -0,0 +1,20 @@
+libgomp does not respect --disable-werror
+
+https://bugs.gentoo.org/229059
+http://gcc.gnu.org/PR38436
+--- a/libgomp/configure.ac
++++ b/libgomp/configure.ac
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi
+--- a/libgomp/configure
++++ b/libgomp/configure
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi

diff --git a/8.2.0/gentoo/107_all_libitm-Werror.patch 
b/8.2.0/gentoo/107_all_libitm-Werror.patch
new file mode 100644
index 0000000..27181e0
--- /dev/null
+++ b/8.2.0/gentoo/107_all_libitm-Werror.patch
@@ -0,0 +1,19 @@
+libitm does not respect --disable-werror
+
+https://bugs.gentoo.org/475350
+--- a/libitm/configure.ac
++++ b/libitm/configure.ac
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi
+--- a/libitm/configure
++++ b/libitm/configure
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi

diff --git a/8.2.0/gentoo/108_all_libatomic-Werror.patch 
b/8.2.0/gentoo/108_all_libatomic-Werror.patch
new file mode 100644
index 0000000..0550722
--- /dev/null
+++ b/8.2.0/gentoo/108_all_libatomic-Werror.patch
@@ -0,0 +1,19 @@
+libatomic does not respect --disable-werror
+
+https://bugs.gentoo.org/475350
+--- a/libatomic/configure.ac
++++ b/libatomic/configure.ac
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi
+--- a/libatomic/configure
++++ b/libatomic/configure
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi

diff --git a/8.2.0/gentoo/109_all_libbacktrace-Werror.patch 
b/8.2.0/gentoo/109_all_libbacktrace-Werror.patch
new file mode 100644
index 0000000..57dd284
--- /dev/null
+++ b/8.2.0/gentoo/109_all_libbacktrace-Werror.patch
@@ -0,0 +1,17 @@
+libbacktrace does not respect --disable-werror
+
+https://bugs.gentoo.org/667104
+--- a/libbacktrace/configure
++++ b/libbacktrace/configure
+@@ -11634,3 +11634,3 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ if test -n "${with_target_subdir}"; then
+-  WARN_FLAGS="$WARN_FLAGS -Werror"
++  WARN_FLAGS="$WARN_FLAGS"
+ fi
+--- a/libbacktrace/configure.ac
++++ b/libbacktrace/configure.ac
+@@ -138,3 +138,3 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings 
-Wstrict-prototypes \
+ if test -n "${with_target_subdir}"; then
+-  WARN_FLAGS="$WARN_FLAGS -Werror"
++  WARN_FLAGS="$WARN_FLAGS"
+ fi

diff --git a/8.2.0/gentoo/README.history b/8.2.0/gentoo/README.history
index ef59543..7257433 100644
--- a/8.2.0/gentoo/README.history
+++ b/8.2.0/gentoo/README.history
@@ -1,15 +1,25 @@
+1.4            TODO
+       + 105_all_libgfortran-Werror.patch
+       + 106_all_libgomp-Werror.patch
+       + 107_all_libitm-Werror.patch
+       + 108_all_libatomic-Werror.patch
+       + 109_all_libbacktrace-Werror.patch
+
 1.3            23 Sep 2018
        + 101_all_x32-fix-eh-return-address.patch
        + 102_all_respect-build-cxxflags.patch
        + 103_all_mmix-fix-85666-p1.patch
        + 104_all_mmix-fix-85666-p2.patch
+
 1.2            12 Aug 2018
        - 100_all-isl-include.patch
        + 100_all_isl-include.patch
+
 1.1            12 Aug 2018
        + 98_all_sh_textrel-on-libitm.patch
        + 99_all_m68k-textrel-on-libgcc.patch
        + 100_all-isl-include.patch
+
 1.0            08 Aug 2018
        + 95_all_ia64-TEXTREL.patch
        + 97_all_disable-systemtap-switch.patch

Reply via email to