1 |
commit: da41777d92ea1cdc2ccc8fd360c14c97225ef03a |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 19 06:30:25 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 19 06:30:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=da41777d |
7 |
|
8 |
5.4.0: drop assumed -lieee from -mieee-fp, backport removal of -Werror |
9 |
|
10 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
11 |
|
12 |
5.4.0/gentoo/100_all_libgfortran-Werror.patch | 20 +++++++++ |
13 |
5.4.0/gentoo/101_all_libgomp-Werror.patch | 20 +++++++++ |
14 |
5.4.0/gentoo/102_all_libitm-Werror.patch | 19 +++++++++ |
15 |
5.4.0/gentoo/103_all_libatomic-Werror.patch | 19 +++++++++ |
16 |
5.4.0/gentoo/104_all_libbacktrace-Werror.patch | 17 ++++++++ |
17 |
.../105_all_libsanitizer-libbacktrace-Werror.patch | 17 ++++++++ |
18 |
5.4.0/gentoo/99_all_remove-lieee.patch | 47 ++++++++++++++++++++++ |
19 |
5.4.0/gentoo/README.history | 9 +++++ |
20 |
8 files changed, 168 insertions(+) |
21 |
|
22 |
diff --git a/5.4.0/gentoo/100_all_libgfortran-Werror.patch b/5.4.0/gentoo/100_all_libgfortran-Werror.patch |
23 |
new file mode 100644 |
24 |
index 0000000..f6c26bf |
25 |
--- /dev/null |
26 |
+++ b/5.4.0/gentoo/100_all_libgfortran-Werror.patch |
27 |
@@ -0,0 +1,20 @@ |
28 |
+libgfortran does not respect --disable-werror |
29 |
+ |
30 |
+https://bugs.gentoo.org/433435 |
31 |
+http://gcc.gnu.org/PR54724 |
32 |
+ |
33 |
+ |
34 |
+--- a/libgfortran/configure.ac |
35 |
++++ b/libgfortran/configure.ac |
36 |
+@@ -140,3 +140,3 @@ AM_PROG_CC_C_O |
37 |
+ if test "x$GCC" = "xyes"; then |
38 |
+- AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
39 |
++ AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring" |
40 |
+ ## We like to use C11 and C99 routines when available. This makes |
41 |
+--- a/libgfortran/configure |
42 |
++++ b/libgfortran/configure |
43 |
+@@ -5764,3 +5764,3 @@ fi |
44 |
+ # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
45 |
+ if test "x$GCC" = "xyes"; then |
46 |
+- AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
47 |
++ AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring" |
48 |
|
49 |
diff --git a/5.4.0/gentoo/101_all_libgomp-Werror.patch b/5.4.0/gentoo/101_all_libgomp-Werror.patch |
50 |
new file mode 100644 |
51 |
index 0000000..416808a |
52 |
--- /dev/null |
53 |
+++ b/5.4.0/gentoo/101_all_libgomp-Werror.patch |
54 |
@@ -0,0 +1,20 @@ |
55 |
+libgomp does not respect --disable-werror |
56 |
+ |
57 |
+https://bugs.gentoo.org/229059 |
58 |
+http://gcc.gnu.org/PR38436 |
59 |
+--- a/libgomp/configure.ac |
60 |
++++ b/libgomp/configure.ac |
61 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
62 |
+ # Add -Wall -Werror if we are using GCC. |
63 |
+ if test "x$GCC" = "xyes"; then |
64 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
65 |
++ XCFLAGS="$XCFLAGS -Wall" |
66 |
+ fi |
67 |
+--- a/libgomp/configure |
68 |
++++ b/libgomp/configure |
69 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
70 |
+ # Add -Wall -Werror if we are using GCC. |
71 |
+ if test "x$GCC" = "xyes"; then |
72 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
73 |
++ XCFLAGS="$XCFLAGS -Wall" |
74 |
+ fi |
75 |
|
76 |
diff --git a/5.4.0/gentoo/102_all_libitm-Werror.patch b/5.4.0/gentoo/102_all_libitm-Werror.patch |
77 |
new file mode 100644 |
78 |
index 0000000..27181e0 |
79 |
--- /dev/null |
80 |
+++ b/5.4.0/gentoo/102_all_libitm-Werror.patch |
81 |
@@ -0,0 +1,19 @@ |
82 |
+libitm does not respect --disable-werror |
83 |
+ |
84 |
+https://bugs.gentoo.org/475350 |
85 |
+--- a/libitm/configure.ac |
86 |
++++ b/libitm/configure.ac |
87 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
88 |
+ # Add -Wall -Werror if we are using GCC. |
89 |
+ if test "x$GCC" = "xyes"; then |
90 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
91 |
++ XCFLAGS="$XCFLAGS -Wall" |
92 |
+ fi |
93 |
+--- a/libitm/configure |
94 |
++++ b/libitm/configure |
95 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
96 |
+ # Add -Wall -Werror if we are using GCC. |
97 |
+ if test "x$GCC" = "xyes"; then |
98 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
99 |
++ XCFLAGS="$XCFLAGS -Wall" |
100 |
+ fi |
101 |
|
102 |
diff --git a/5.4.0/gentoo/103_all_libatomic-Werror.patch b/5.4.0/gentoo/103_all_libatomic-Werror.patch |
103 |
new file mode 100644 |
104 |
index 0000000..0550722 |
105 |
--- /dev/null |
106 |
+++ b/5.4.0/gentoo/103_all_libatomic-Werror.patch |
107 |
@@ -0,0 +1,19 @@ |
108 |
+libatomic does not respect --disable-werror |
109 |
+ |
110 |
+https://bugs.gentoo.org/475350 |
111 |
+--- a/libatomic/configure.ac |
112 |
++++ b/libatomic/configure.ac |
113 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
114 |
+ # Add -Wall -Werror if we are using GCC. |
115 |
+ if test "x$GCC" = "xyes"; then |
116 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
117 |
++ XCFLAGS="$XCFLAGS -Wall" |
118 |
+ fi |
119 |
+--- a/libatomic/configure |
120 |
++++ b/libatomic/configure |
121 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
122 |
+ # Add -Wall -Werror if we are using GCC. |
123 |
+ if test "x$GCC" = "xyes"; then |
124 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
125 |
++ XCFLAGS="$XCFLAGS -Wall" |
126 |
+ fi |
127 |
|
128 |
diff --git a/5.4.0/gentoo/104_all_libbacktrace-Werror.patch b/5.4.0/gentoo/104_all_libbacktrace-Werror.patch |
129 |
new file mode 100644 |
130 |
index 0000000..57dd284 |
131 |
--- /dev/null |
132 |
+++ b/5.4.0/gentoo/104_all_libbacktrace-Werror.patch |
133 |
@@ -0,0 +1,17 @@ |
134 |
+libbacktrace does not respect --disable-werror |
135 |
+ |
136 |
+https://bugs.gentoo.org/667104 |
137 |
+--- a/libbacktrace/configure |
138 |
++++ b/libbacktrace/configure |
139 |
+@@ -11634,3 +11634,3 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu |
140 |
+ if test -n "${with_target_subdir}"; then |
141 |
+- WARN_FLAGS="$WARN_FLAGS -Werror" |
142 |
++ WARN_FLAGS="$WARN_FLAGS" |
143 |
+ fi |
144 |
+--- a/libbacktrace/configure.ac |
145 |
++++ b/libbacktrace/configure.ac |
146 |
+@@ -138,3 +138,3 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ |
147 |
+ if test -n "${with_target_subdir}"; then |
148 |
+- WARN_FLAGS="$WARN_FLAGS -Werror" |
149 |
++ WARN_FLAGS="$WARN_FLAGS" |
150 |
+ fi |
151 |
|
152 |
diff --git a/5.4.0/gentoo/105_all_libsanitizer-libbacktrace-Werror.patch b/5.4.0/gentoo/105_all_libsanitizer-libbacktrace-Werror.patch |
153 |
new file mode 100644 |
154 |
index 0000000..46a219a |
155 |
--- /dev/null |
156 |
+++ b/5.4.0/gentoo/105_all_libsanitizer-libbacktrace-Werror.patch |
157 |
@@ -0,0 +1,17 @@ |
158 |
+libsanitizer/libbacktrace does not respect --disable-werror |
159 |
+ |
160 |
+https://bugs.gentoo.org/667104 |
161 |
+--- a/libsanitizer/libbacktrace/Makefile.am |
162 |
++++ b/libsanitizer/libbacktrace/Makefile.am |
163 |
+@@ -37,3 +37,3 @@ AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \ |
164 |
+ WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \ |
165 |
+- -Wcast-qual -Werror |
166 |
++ -Wcast-qual |
167 |
+ C_WARN_FLAGS = $(WARN_FLAGS) -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition |
168 |
+--- a/libsanitizer/libbacktrace/Makefile.in |
169 |
++++ b/libsanitizer/libbacktrace/Makefile.in |
170 |
+@@ -293,3 +293,3 @@ AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \ |
171 |
+ WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \ |
172 |
+- -Wcast-qual -Werror |
173 |
++ -Wcast-qual |
174 |
+ |
175 |
|
176 |
diff --git a/5.4.0/gentoo/99_all_remove-lieee.patch b/5.4.0/gentoo/99_all_remove-lieee.patch |
177 |
new file mode 100644 |
178 |
index 0000000..390a3b0 |
179 |
--- /dev/null |
180 |
+++ b/5.4.0/gentoo/99_all_remove-lieee.patch |
181 |
@@ -0,0 +1,47 @@ |
182 |
+Modern glibc stopped providing ieee.a |
183 |
+ |
184 |
+From 401a6ba8d6aa5a92acaedae24b84c59d284f446d Mon Sep 17 00:00:00 2001 |
185 |
+From: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> |
186 |
+Date: Thu, 12 Jul 2018 11:53:34 +0000 |
187 |
+Subject: [PATCH] 2018-07-12 Richard Biener <rguenther@××××.de> |
188 |
+ |
189 |
+ PR target/84829 |
190 |
+ * config/gnu-user.h (GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC): |
191 |
+ Remove -mieee-fp handling. |
192 |
+ |
193 |
+ * gcc.target/i386/pr84829.c: New testcase. |
194 |
+ |
195 |
+ |
196 |
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262582 138bc75d-0d04-0410-961f-82ee72b054a4 |
197 |
+--- |
198 |
+ gcc/ChangeLog | 6 ++++++ |
199 |
+ gcc/config/gnu-user.h | 2 +- |
200 |
+ gcc/testsuite/ChangeLog | 5 +++++ |
201 |
+ gcc/testsuite/gcc.target/i386/pr84829.c | 7 +++++++ |
202 |
+ 4 files changed, 19 insertions(+), 1 deletion(-) |
203 |
+ create mode 100644 gcc/testsuite/gcc.target/i386/pr84829.c |
204 |
+ |
205 |
+--- a/gcc/config/gnu-user.h |
206 |
++++ b/gcc/config/gnu-user.h |
207 |
+@@ -120,7 +120,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
208 |
+ |
209 |
+ #define GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC \ |
210 |
+ "%{shared:-lc} \ |
211 |
+- %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}" |
212 |
++ %{!shared:%{profile:-lc_p}%{!profile:-lc}}" |
213 |
+ |
214 |
+ #define GNU_USER_TARGET_LIB_SPEC \ |
215 |
+ "%{pthread:-lpthread} " \ |
216 |
+--- /dev/null |
217 |
++++ b/gcc/testsuite/gcc.target/i386/pr84829.c |
218 |
+@@ -0,0 +1,7 @@ |
219 |
++/* { dg-do link } */ |
220 |
++/* { dg-options "-mieee-fp" } */ |
221 |
++ |
222 |
++int main() |
223 |
++{ |
224 |
++ return 0; |
225 |
++} |
226 |
+-- |
227 |
+2.19.0 |
228 |
+ |
229 |
|
230 |
diff --git a/5.4.0/gentoo/README.history b/5.4.0/gentoo/README.history |
231 |
index 16e8681..e57705f 100644 |
232 |
--- a/5.4.0/gentoo/README.history |
233 |
+++ b/5.4.0/gentoo/README.history |
234 |
@@ -1,3 +1,12 @@ |
235 |
+1.11 TODO |
236 |
+ + 100_all_libgfortran-Werror.patch |
237 |
+ + 101_all_libgomp-Werror.patch |
238 |
+ + 102_all_libitm-Werror.patch |
239 |
+ + 103_all_libatomic-Werror.patch |
240 |
+ + 104_all_libbacktrace-Werror.patch |
241 |
+ + 105_all_libsanitizer-libbacktrace-Werror.patch |
242 |
+ + 99_all_remove-lieee.patch |
243 |
+ |
244 |
1.10 23 Sep 2018 |
245 |
+ 98_all_respect-build-cxxflags.patch |
246 |
1.9 27 Aug 2018 |