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