Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 8.2.0/gentoo/
Date: Sun, 30 Sep 2018 22:09:04
Message-Id: 1538345119.a7acee064e82c1de695f2303b705fd69884d9e99.slyfox@gentoo
1 commit: a7acee064e82c1de695f2303b705fd69884d9e99
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 30 22:05:19 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 30 22:05:19 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a7acee06
7
8 8.2.0: restore -Werror patches
9
10 Five new patches that drop -Werror:
11 + 105_all_libgfortran-Werror.patch
12 + 106_all_libgomp-Werror.patch
13 + 107_all_libitm-Werror.patch
14 + 108_all_libatomic-Werror.patch
15 + 109_all_libbacktrace-Werror.patch
16
17 The patches are no really new: last time Gentoo applied
18 them on gcc-4.9.x branch but after 5.x they were lost.
19
20 Need for them resurfaces after series of fixes that allowed
21 user to tweak CXXFLAGS (bug #581406)
22
23 Reported-by: Jeroen Roovers
24 Bug: https://bugs.gentoo.org/667104
25 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
26
27 8.2.0/gentoo/105_all_libgfortran-Werror.patch | 13 +++++++++++++
28 8.2.0/gentoo/106_all_libgomp-Werror.patch | 20 ++++++++++++++++++++
29 8.2.0/gentoo/107_all_libitm-Werror.patch | 19 +++++++++++++++++++
30 8.2.0/gentoo/108_all_libatomic-Werror.patch | 19 +++++++++++++++++++
31 8.2.0/gentoo/109_all_libbacktrace-Werror.patch | 17 +++++++++++++++++
32 8.2.0/gentoo/README.history | 10 ++++++++++
33 6 files changed, 98 insertions(+)
34
35 diff --git a/8.2.0/gentoo/105_all_libgfortran-Werror.patch b/8.2.0/gentoo/105_all_libgfortran-Werror.patch
36 new file mode 100644
37 index 0000000..c54a469
38 --- /dev/null
39 +++ b/8.2.0/gentoo/105_all_libgfortran-Werror.patch
40 @@ -0,0 +1,13 @@
41 +libgfortran does not respect --disable-werror
42 +
43 +https://bugs.gentoo.org/433435
44 +http://gcc.gnu.org/PR54724
45 +
46 +
47 +--- a/libgfortran/configure
48 ++++ b/libgfortran/configure
49 +@@ -5764,3 +5764,3 @@ fi
50 + # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
51 + if test "x$GCC" = "xyes"; then
52 +- AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
53 ++ AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring"
54
55 diff --git a/8.2.0/gentoo/106_all_libgomp-Werror.patch b/8.2.0/gentoo/106_all_libgomp-Werror.patch
56 new file mode 100644
57 index 0000000..416808a
58 --- /dev/null
59 +++ b/8.2.0/gentoo/106_all_libgomp-Werror.patch
60 @@ -0,0 +1,20 @@
61 +libgomp does not respect --disable-werror
62 +
63 +https://bugs.gentoo.org/229059
64 +http://gcc.gnu.org/PR38436
65 +--- a/libgomp/configure.ac
66 ++++ b/libgomp/configure.ac
67 +@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
68 + # Add -Wall -Werror if we are using GCC.
69 + if test "x$GCC" = "xyes"; then
70 +- XCFLAGS="$XCFLAGS -Wall -Werror"
71 ++ XCFLAGS="$XCFLAGS -Wall"
72 + fi
73 +--- a/libgomp/configure
74 ++++ b/libgomp/configure
75 +@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
76 + # Add -Wall -Werror if we are using GCC.
77 + if test "x$GCC" = "xyes"; then
78 +- XCFLAGS="$XCFLAGS -Wall -Werror"
79 ++ XCFLAGS="$XCFLAGS -Wall"
80 + fi
81
82 diff --git a/8.2.0/gentoo/107_all_libitm-Werror.patch b/8.2.0/gentoo/107_all_libitm-Werror.patch
83 new file mode 100644
84 index 0000000..27181e0
85 --- /dev/null
86 +++ b/8.2.0/gentoo/107_all_libitm-Werror.patch
87 @@ -0,0 +1,19 @@
88 +libitm does not respect --disable-werror
89 +
90 +https://bugs.gentoo.org/475350
91 +--- a/libitm/configure.ac
92 ++++ b/libitm/configure.ac
93 +@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
94 + # Add -Wall -Werror if we are using GCC.
95 + if test "x$GCC" = "xyes"; then
96 +- XCFLAGS="$XCFLAGS -Wall -Werror"
97 ++ XCFLAGS="$XCFLAGS -Wall"
98 + fi
99 +--- a/libitm/configure
100 ++++ b/libitm/configure
101 +@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
102 + # Add -Wall -Werror if we are using GCC.
103 + if test "x$GCC" = "xyes"; then
104 +- XCFLAGS="$XCFLAGS -Wall -Werror"
105 ++ XCFLAGS="$XCFLAGS -Wall"
106 + fi
107
108 diff --git a/8.2.0/gentoo/108_all_libatomic-Werror.patch b/8.2.0/gentoo/108_all_libatomic-Werror.patch
109 new file mode 100644
110 index 0000000..0550722
111 --- /dev/null
112 +++ b/8.2.0/gentoo/108_all_libatomic-Werror.patch
113 @@ -0,0 +1,19 @@
114 +libatomic does not respect --disable-werror
115 +
116 +https://bugs.gentoo.org/475350
117 +--- a/libatomic/configure.ac
118 ++++ b/libatomic/configure.ac
119 +@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
120 + # Add -Wall -Werror if we are using GCC.
121 + if test "x$GCC" = "xyes"; then
122 +- XCFLAGS="$XCFLAGS -Wall -Werror"
123 ++ XCFLAGS="$XCFLAGS -Wall"
124 + fi
125 +--- a/libatomic/configure
126 ++++ b/libatomic/configure
127 +@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
128 + # Add -Wall -Werror if we are using GCC.
129 + if test "x$GCC" = "xyes"; then
130 +- XCFLAGS="$XCFLAGS -Wall -Werror"
131 ++ XCFLAGS="$XCFLAGS -Wall"
132 + fi
133
134 diff --git a/8.2.0/gentoo/109_all_libbacktrace-Werror.patch b/8.2.0/gentoo/109_all_libbacktrace-Werror.patch
135 new file mode 100644
136 index 0000000..57dd284
137 --- /dev/null
138 +++ b/8.2.0/gentoo/109_all_libbacktrace-Werror.patch
139 @@ -0,0 +1,17 @@
140 +libbacktrace does not respect --disable-werror
141 +
142 +https://bugs.gentoo.org/667104
143 +--- a/libbacktrace/configure
144 ++++ b/libbacktrace/configure
145 +@@ -11634,3 +11634,3 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
146 + if test -n "${with_target_subdir}"; then
147 +- WARN_FLAGS="$WARN_FLAGS -Werror"
148 ++ WARN_FLAGS="$WARN_FLAGS"
149 + fi
150 +--- a/libbacktrace/configure.ac
151 ++++ b/libbacktrace/configure.ac
152 +@@ -138,3 +138,3 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
153 + if test -n "${with_target_subdir}"; then
154 +- WARN_FLAGS="$WARN_FLAGS -Werror"
155 ++ WARN_FLAGS="$WARN_FLAGS"
156 + fi
157
158 diff --git a/8.2.0/gentoo/README.history b/8.2.0/gentoo/README.history
159 index ef59543..7257433 100644
160 --- a/8.2.0/gentoo/README.history
161 +++ b/8.2.0/gentoo/README.history
162 @@ -1,15 +1,25 @@
163 +1.4 TODO
164 + + 105_all_libgfortran-Werror.patch
165 + + 106_all_libgomp-Werror.patch
166 + + 107_all_libitm-Werror.patch
167 + + 108_all_libatomic-Werror.patch
168 + + 109_all_libbacktrace-Werror.patch
169 +
170 1.3 23 Sep 2018
171 + 101_all_x32-fix-eh-return-address.patch
172 + 102_all_respect-build-cxxflags.patch
173 + 103_all_mmix-fix-85666-p1.patch
174 + 104_all_mmix-fix-85666-p2.patch
175 +
176 1.2 12 Aug 2018
177 - 100_all-isl-include.patch
178 + 100_all_isl-include.patch
179 +
180 1.1 12 Aug 2018
181 + 98_all_sh_textrel-on-libitm.patch
182 + 99_all_m68k-textrel-on-libgcc.patch
183 + 100_all-isl-include.patch
184 +
185 1.0 08 Aug 2018
186 + 95_all_ia64-TEXTREL.patch
187 + 97_all_disable-systemtap-switch.patch