1 |
commit: 52f599fc37324ea16463bb1fc0c1a3cdedd80e29 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 16 10:28:53 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 16 10:28:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=52f599fc |
7 |
|
8 |
8.5.0: cut 1 patchset, a copy of 8.4.0 with upstreamed pacthes removed |
9 |
|
10 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
11 |
|
12 |
8.5.0/gentoo/01_all_default-fortify-source.patch | 22 ++++ |
13 |
.../02_all_default-warn-format-security.patch | 22 ++++ |
14 |
8.5.0/gentoo/03_all_default-warn-trampolines.patch | 13 ++ |
15 |
8.5.0/gentoo/04_all_default-ssp-fix.patch | 38 ++++++ |
16 |
8.5.0/gentoo/05_all_alpha-mieee-default.patch | 39 ++++++ |
17 |
8.5.0/gentoo/06_all_ia64_note.GNU-stack.patch | 92 +++++++++++++ |
18 |
.../gentoo/07_all_i386_libgcc_note.GNU-stack.patch | 54 ++++++++ |
19 |
8.5.0/gentoo/08_all_libiberty-asprintf.patch | 18 +++ |
20 |
8.5.0/gentoo/09_all_libiberty-pic.patch | 10 ++ |
21 |
8.5.0/gentoo/10_all_nopie-all-flags.patch | 18 +++ |
22 |
8.5.0/gentoo/11_all_extra-options.patch | 89 +++++++++++++ |
23 |
.../12_all_pr55930-dependency-tracking.patch | 18 +++ |
24 |
8.5.0/gentoo/13_all_sh-drop-sysroot-suffix.patch | 32 +++++ |
25 |
8.5.0/gentoo/14_all_ia64-TEXTREL.patch | 22 ++++ |
26 |
8.5.0/gentoo/15_all_disable-systemtap-switch.patch | 137 ++++++++++++++++++++ |
27 |
8.5.0/gentoo/16_all_m68k-textrel-on-libgcc.patch | 93 ++++++++++++++ |
28 |
8.5.0/gentoo/17_all_respect-build-cxxflags.patch | 39 ++++++ |
29 |
8.5.0/gentoo/18_all_libgfortran-Werror.patch | 20 +++ |
30 |
8.5.0/gentoo/19_all_libgomp-Werror.patch | 20 +++ |
31 |
8.5.0/gentoo/20_all_libitm-Werror.patch | 19 +++ |
32 |
8.5.0/gentoo/21_all_libatomic-Werror.patch | 19 +++ |
33 |
8.5.0/gentoo/22_all_libbacktrace-Werror.patch | 17 +++ |
34 |
8.5.0/gentoo/23_all_libsanitizer-Werror.patch | 17 +++ |
35 |
8.5.0/gentoo/24_all_libstdcxx-no-vtv.patch | 61 +++++++++ |
36 |
8.5.0/gentoo/25_all_overridable_native.patch | 126 ++++++++++++++++++ |
37 |
8.5.0/gentoo/26_all_sparc-fpu-subregs-91269.patch | 105 +++++++++++++++ |
38 |
8.5.0/gentoo/27_all_disable-riscv32-ABIs.patch | 28 ++++ |
39 |
8.5.0/gentoo/28_all_libcpp-ar.patch | 143 +++++++++++++++++++++ |
40 |
8.5.0/gentoo/29_all_plugin-objdump.patch | 34 +++++ |
41 |
8.5.0/gentoo/README.history | 30 +++++ |
42 |
30 files changed, 1395 insertions(+) |
43 |
|
44 |
diff --git a/8.5.0/gentoo/01_all_default-fortify-source.patch b/8.5.0/gentoo/01_all_default-fortify-source.patch |
45 |
new file mode 100644 |
46 |
index 0000000..d307474 |
47 |
--- /dev/null |
48 |
+++ b/8.5.0/gentoo/01_all_default-fortify-source.patch |
49 |
@@ -0,0 +1,22 @@ |
50 |
+Taken Debian's patch and removed docs matches: |
51 |
+ https://salsa.debian.org/toolchain-team/gcc.git |
52 |
+Also see https://bugs.gentoo.org/621036 where |
53 |
+initially Gentoo used too complicated macro. |
54 |
+ |
55 |
+# DP: Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, |
56 |
+# DP: if the optimization level is > 0 |
57 |
+--- a/gcc/c-family/c-cppbuiltin.c |
58 |
++++ b/gcc/c-family/c-cppbuiltin.c |
59 |
+@@ -951,6 +951,12 @@ c_cpp_builtins (cpp_reader *pfile) |
60 |
+ builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0); |
61 |
+ builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0); |
62 |
+ |
63 |
++#if !defined(ACCEL_COMPILER) |
64 |
++ /* Fortify Source enabled by default for optimization levels > 0 */ |
65 |
++ if (optimize) |
66 |
++ builtin_define_with_int_value ("_FORTIFY_SOURCE", 2); |
67 |
++#endif |
68 |
++ |
69 |
+ /* Misc. */ |
70 |
+ if (flag_gnu89_inline) |
71 |
+ cpp_define (pfile, "__GNUC_GNU_INLINE__"); |
72 |
|
73 |
diff --git a/8.5.0/gentoo/02_all_default-warn-format-security.patch b/8.5.0/gentoo/02_all_default-warn-format-security.patch |
74 |
new file mode 100644 |
75 |
index 0000000..f809abd |
76 |
--- /dev/null |
77 |
+++ b/8.5.0/gentoo/02_all_default-warn-format-security.patch |
78 |
@@ -0,0 +1,22 @@ |
79 |
+Enable -Wformat and -Wformat-security by default. |
80 |
+ |
81 |
+--- a/gcc/c-family/c.opt 2016-03-23 18:51:56.000000000 +0100 |
82 |
++++ b/gcc/c-family/c.opt 2016-04-28 23:45:54.063351272 +0200 |
83 |
+@@ -459,7 +459,7 @@ C ObjC C++ ObjC++ Var(warn_format_nonlit |
84 |
+ Warn about format strings that are not literals. |
85 |
+ |
86 |
+ Wformat-security |
87 |
+-C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) |
88 |
++C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) |
89 |
+ Warn about possible security problems with format functions. |
90 |
+ |
91 |
+ Wformat-signedness |
92 |
+@@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l |
93 |
+ Warn about zero-length formats. |
94 |
+ |
95 |
+ Wformat= |
96 |
+-C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) |
97 |
++C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) |
98 |
+ Warn about printf/scanf/strftime/strfmon format string anomalies. |
99 |
+ |
100 |
+ Wignored-qualifiers |
101 |
|
102 |
diff --git a/8.5.0/gentoo/03_all_default-warn-trampolines.patch b/8.5.0/gentoo/03_all_default-warn-trampolines.patch |
103 |
new file mode 100644 |
104 |
index 0000000..7a644cb |
105 |
--- /dev/null |
106 |
+++ b/8.5.0/gentoo/03_all_default-warn-trampolines.patch |
107 |
@@ -0,0 +1,13 @@ |
108 |
+Enable -Wtrampolines by default. |
109 |
+ |
110 |
+--- a/gcc/common.opt |
111 |
++++ b/gcc/common.opt |
112 |
+@@ -712,7 +712,7 @@ Common Var(warn_system_headers) Warning |
113 |
+ Do not suppress warnings from system headers. |
114 |
+ |
115 |
+ Wtrampolines |
116 |
+-Common Var(warn_trampolines) Warning |
117 |
++Common Var(warn_trampolines) Init(1) Warning |
118 |
+ Warn whenever a trampoline is generated. |
119 |
+ |
120 |
+ Wtype-limits |
121 |
|
122 |
diff --git a/8.5.0/gentoo/04_all_default-ssp-fix.patch b/8.5.0/gentoo/04_all_default-ssp-fix.patch |
123 |
new file mode 100644 |
124 |
index 0000000..d2deac7 |
125 |
--- /dev/null |
126 |
+++ b/8.5.0/gentoo/04_all_default-ssp-fix.patch |
127 |
@@ -0,0 +1,38 @@ |
128 |
+Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding |
129 |
+Change the buffer size. |
130 |
+ |
131 |
+--- a/gcc/gcc.c 2017-07-04 09:15:57.740793000 +0200 |
132 |
++++ b/gcc/gcc.c 2018-03-02 13:58:44.387741114 +0100 |
133 |
+@@ -857,6 +857,12 @@ proper position among the other output f |
134 |
+ #define LINK_GCC_C_SEQUENCE_SPEC "%G %L %G" |
135 |
+ #endif |
136 |
+ |
137 |
++#ifdef ENABLE_DEFAULT_SSP |
138 |
++#define NO_SSP_SPEC "%{nostdlib|nodefaultlibs|ffreestanding:-fno-stack-protector} " |
139 |
++#else |
140 |
++#define NO_SSP_SPEC "" |
141 |
++#endif |
142 |
++ |
143 |
+ #ifndef LINK_SSP_SPEC |
144 |
+ #ifdef TARGET_LIBC_PROVIDES_SSP |
145 |
+ #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ |
146 |
+@@ -1131,7 +1148,7 @@ static const char *cc1_options = |
147 |
+ %{-version:--version}\ |
148 |
+ %{-help=*:--help=%*}\ |
149 |
+ %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\ |
150 |
+- %{fsyntax-only:-o %j} %{-param*}\ |
151 |
++ %{fsyntax-only:-o %j} %{-param*} " NO_SSP_SPEC "\ |
152 |
+ %{coverage:-fprofile-arcs -ftest-coverage}\ |
153 |
+ %{fprofile-arcs|fprofile-generate*|coverage:\ |
154 |
+ %{!fprofile-update=singel:\ |
155 |
+--- a/gcc/params.def 2016-03-30 09:47:40.000000000 +0200 |
156 |
++++ b/gcc/params.def 2016-09-19 12:56:58.443179039 +0200 |
157 |
+@@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT, |
158 |
+ DEFPARAM (PARAM_SSP_BUFFER_SIZE, |
159 |
+ "ssp-buffer-size", |
160 |
+ "The lower bound for a buffer to be considered for stack smashing protection.", |
161 |
+- 8, 1, 0) |
162 |
++ 4, 1, 0) |
163 |
+ |
164 |
+ DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING, |
165 |
+ "min-size-for-stack-sharing", |
166 |
|
167 |
diff --git a/8.5.0/gentoo/05_all_alpha-mieee-default.patch b/8.5.0/gentoo/05_all_alpha-mieee-default.patch |
168 |
new file mode 100644 |
169 |
index 0000000..b266d77 |
170 |
--- /dev/null |
171 |
+++ b/8.5.0/gentoo/05_all_alpha-mieee-default.patch |
172 |
@@ -0,0 +1,39 @@ |
173 |
+Set the default behavior on alpha to use -mieee since the large majority of |
174 |
+time we want this (bad/weird things can happen with packages built without |
175 |
+it). |
176 |
+ |
177 |
+To satisfy those people who may not want -mieee forced on them all the time, |
178 |
+we also provide -mno-ieee. |
179 |
+ |
180 |
+Patch by Mike Frysinger <vapier@g.o> |
181 |
+ |
182 |
+Note: upstream doesn't want to take this due to long standing behavior, and |
183 |
+because it'd make behavior across OS's inconsistent: |
184 |
+ https://gcc.gnu.org/ml/gcc-patches/2003-07/msg02144.html |
185 |
+ |
186 |
+This makes sense for upstream, but Gentoo is more concerned about packages |
187 |
+behaving the same across arches under Linux. |
188 |
+ |
189 |
+--- a/gcc/config/alpha/alpha.h |
190 |
++++ b/gcc/config/alpha/alpha.h |
191 |
+@@ -96,6 +96,8 @@ along with GCC; see the file COPYING3. If not see |
192 |
+ while (0) |
193 |
+ #endif |
194 |
+ |
195 |
++#define CPP_SPEC "%{!no-ieee:-mieee}" |
196 |
++ |
197 |
+ /* Run-time compilation parameters selecting different hardware subsets. */ |
198 |
+ |
199 |
+ /* Which processor to schedule for. The cpu attribute defines a list that |
200 |
+--- a/gcc/config/alpha/alpha.opt |
201 |
++++ b/gcc/config/alpha/alpha.opt |
202 |
+@@ -35,7 +35,7 @@ |
203 |
+ Request IEEE-conformant math library routines (OSF/1). |
204 |
+ |
205 |
+ mieee |
206 |
+-Target Report RejectNegative Mask(IEEE) |
207 |
++Target Report Mask(IEEE) |
208 |
+ Emit IEEE-conformant code, without inexact exceptions. |
209 |
+ |
210 |
+ mieee-with-inexact |
211 |
+ |
212 |
|
213 |
diff --git a/8.5.0/gentoo/06_all_ia64_note.GNU-stack.patch b/8.5.0/gentoo/06_all_ia64_note.GNU-stack.patch |
214 |
new file mode 100644 |
215 |
index 0000000..66a787e |
216 |
--- /dev/null |
217 |
+++ b/8.5.0/gentoo/06_all_ia64_note.GNU-stack.patch |
218 |
@@ -0,0 +1,92 @@ |
219 |
+http://gcc.gnu.org/PR21098 |
220 |
+ |
221 |
+ |
222 |
+2004-09-20 Jakub Jelinek <jakub@××××××.com> |
223 |
+ |
224 |
+ * config/rs6000/ppc-asm.h: Add .note.GNU-stack section also |
225 |
+ on ppc64-linux. |
226 |
+ |
227 |
+ * config/ia64/lib1funcs.asm: Add .note.GNU-stack section on |
228 |
+ ia64-linux. |
229 |
+ * config/ia64/crtbegin.asm: Likewise. |
230 |
+ * config/ia64/crtend.asm: Likewise. |
231 |
+ * config/ia64/crti.asm: Likewise. |
232 |
+ * config/ia64/crtn.asm: Likewise. |
233 |
+ |
234 |
+2004-05-14 Jakub Jelinek <jakub@××××××.com> |
235 |
+ |
236 |
+ * config/ia64/linux.h (TARGET_ASM_FILE_END): Define. |
237 |
+ |
238 |
+ |
239 |
+--- a/gcc/config/ia64/linux.h |
240 |
++++ b/gcc/config/ia64/linux.h |
241 |
+@@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; |
242 |
+ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
243 |
+ <http://www.gnu.org/licenses/>. */ |
244 |
+ |
245 |
++#define TARGET_ASM_FILE_END file_end_indicate_exec_stack |
246 |
++ |
247 |
+ /* This is for -profile to use -lc_p instead of -lc. */ |
248 |
+ #undef CC1_SPEC |
249 |
+ #define CC1_SPEC "%{profile:-p} %{G*}" |
250 |
+--- a/gcc/config/rs6000/ppc-asm.h |
251 |
++++ b/gcc/config/rs6000/ppc-asm.h |
252 |
+@@ -352,7 +352,7 @@ GLUE(.L,name): \ |
253 |
+ #endif |
254 |
+ #endif |
255 |
+ |
256 |
+-#if defined __linux__ && !defined __powerpc64__ |
257 |
++#if defined __linux__ |
258 |
+ .section .note.GNU-stack |
259 |
+ .previous |
260 |
+ #endif |
261 |
+--- a/libgcc/config/ia64/crtbegin.S |
262 |
++++ b/libgcc/config/ia64/crtbegin.S |
263 |
+@@ -252,3 +252,7 @@ __do_jv_register_classes: |
264 |
+ .weak __cxa_finalize |
265 |
+ #endif |
266 |
+ .weak _Jv_RegisterClasses |
267 |
++ |
268 |
++#ifdef __linux__ |
269 |
++.section .note.GNU-stack; .previous |
270 |
++#endif |
271 |
+--- a/libgcc/config/ia64/crtend.S |
272 |
++++ b/libgcc/config/ia64/crtend.S |
273 |
+@@ -119,3 +119,6 @@ __do_global_ctors_aux: |
274 |
+ |
275 |
+ br.ret.sptk.many rp |
276 |
+ .endp __do_global_ctors_aux |
277 |
++#ifdef __linux__ |
278 |
++.section .note.GNU-stack; .previous |
279 |
++#endif |
280 |
+--- a/libgcc/config/ia64/crti.S |
281 |
++++ b/libgcc/config/ia64/crti.S |
282 |
+@@ -49,5 +49,8 @@ _fini: |
283 |
+ .save rp, r33 |
284 |
+ mov r33 = b0 |
285 |
+ .body |
286 |
++#ifdef __linux__ |
287 |
++.section .note.GNU-stack; .previous |
288 |
++#endif |
289 |
+ |
290 |
+ # end of crti.S |
291 |
+--- a/libgcc/config/ia64/crtn.S |
292 |
++++ b/libgcc/config/ia64/crtn.S |
293 |
+@@ -39,5 +39,8 @@ |
294 |
+ .restore sp |
295 |
+ mov r12 = r35 |
296 |
+ br.ret.sptk.many b0 |
297 |
++#ifdef __linux__ |
298 |
++.section .note.GNU-stack; .previous |
299 |
++#endif |
300 |
+ |
301 |
+ # end of crtn.S |
302 |
+--- a/libgcc/config/ia64/lib1funcs.S |
303 |
++++ b/libgcc/config/ia64/lib1funcs.S |
304 |
+@@ -793,3 +793,6 @@ __floattitf: |
305 |
+ .endp __floattitf |
306 |
+ #endif |
307 |
+ #endif |
308 |
++#ifdef __linux__ |
309 |
++.section .note.GNU-stack; .previous |
310 |
++#endif |
311 |
|
312 |
diff --git a/8.5.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch b/8.5.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch |
313 |
new file mode 100644 |
314 |
index 0000000..7f74945 |
315 |
--- /dev/null |
316 |
+++ b/8.5.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch |
317 |
@@ -0,0 +1,54 @@ |
318 |
+--- a/libgcc/config/i386/resms64.h 2018-01-03 11:03:58.000000000 +0100 |
319 |
++++ b/libgcc/config/i386/resms64.h 2018-05-01 12:59:48.942833419 +0200 |
320 |
+@@ -57,3 +57,6 @@ MS2SYSV_STUB_END(resms64_17) |
321 |
+ MS2SYSV_STUB_END(resms64_18) |
322 |
+ |
323 |
+ #endif /* __x86_64__ */ |
324 |
++#if defined(__linux__) && defined(__ELF__) |
325 |
++.section .note.GNU-stack,"",%progbits |
326 |
++#endif |
327 |
+--- a/libgcc/config/i386/resms64f.h 2018-01-03 11:03:58.000000000 +0100 |
328 |
++++ b/libgcc/config/i386/resms64f.h 2018-05-01 13:00:23.422832853 +0200 |
329 |
+@@ -55,3 +55,6 @@ MS2SYSV_STUB_END(resms64f_16) |
330 |
+ MS2SYSV_STUB_END(resms64f_17) |
331 |
+ |
332 |
+ #endif /* __x86_64__ */ |
333 |
++#if defined(__linux__) && defined(__ELF__) |
334 |
++.section .note.GNU-stack,"",%progbits |
335 |
++#endif |
336 |
+--- a/libgcc/config/i386/resms64fx.h 2018-02-26 20:46:34.000000000 +0100 |
337 |
++++ b/libgcc/config/i386/resms64fx.h 2018-05-01 13:06:49.682826518 +0200 |
338 |
+@@ -62,3 +62,6 @@ MS2SYSV_STUB_END(resms64fx_16) |
339 |
+ MS2SYSV_STUB_END(resms64fx_17) |
340 |
+ |
341 |
+ #endif /* __x86_64__ */ |
342 |
++#if defined(__linux__) && defined(__ELF__) |
343 |
++.section .note.GNU-stack,"",%progbits |
344 |
++#endif |
345 |
+--- a/libgcc/config/i386/resms64x.h 2018-02-26 20:46:34.000000000 +0100 |
346 |
++++ b/libgcc/config/i386/resms64x.h 2018-05-01 13:07:21.702825993 +0200 |
347 |
+@@ -63,3 +63,6 @@ MS2SYSV_STUB_END(resms64x_17) |
348 |
+ MS2SYSV_STUB_END(resms64x_18) |
349 |
+ |
350 |
+ #endif /* __x86_64__ */ |
351 |
++#if defined(__linux__) && defined(__ELF__) |
352 |
++.section .note.GNU-stack,"",%progbits |
353 |
++#endif |
354 |
+--- a/libgcc/config/i386/savms64.h 2018-01-03 11:03:58.000000000 +0100 |
355 |
++++ b/libgcc/config/i386/savms64.h 2018-05-01 13:07:48.952825546 +0200 |
356 |
+@@ -57,3 +57,6 @@ MS2SYSV_STUB_END(savms64_17) |
357 |
+ MS2SYSV_STUB_END(savms64_18) |
358 |
+ |
359 |
+ #endif /* __x86_64__ */ |
360 |
++#if defined(__linux__) && defined(__ELF__) |
361 |
++.section .note.GNU-stack,"",%progbits |
362 |
++#endif |
363 |
+--- a/libgcc/config/i386/savms64f.h 2018-01-03 11:03:58.000000000 +0100 |
364 |
++++ b/libgcc/config/i386/savms64f.h 2018-05-01 13:08:30.082824871 +0200 |
365 |
+@@ -55,3 +55,6 @@ MS2SYSV_STUB_END(savms64f_16) |
366 |
+ MS2SYSV_STUB_END(savms64f_17) |
367 |
+ |
368 |
+ #endif /* __x86_64__ */ |
369 |
++#if defined(__linux__) && defined(__ELF__) |
370 |
++.section .note.GNU-stack,"",%progbits |
371 |
++#endif |
372 |
|
373 |
diff --git a/8.5.0/gentoo/08_all_libiberty-asprintf.patch b/8.5.0/gentoo/08_all_libiberty-asprintf.patch |
374 |
new file mode 100644 |
375 |
index 0000000..bee0c4c |
376 |
--- /dev/null |
377 |
+++ b/8.5.0/gentoo/08_all_libiberty-asprintf.patch |
378 |
@@ -0,0 +1,18 @@ |
379 |
+2008-07-25 Magnus Granberg <zorry@×××.nu> |
380 |
+ |
381 |
+ * include/libiberty.h (asprintf): Don't declare if defined as a macro |
382 |
+ |
383 |
+--- a/include/libiberty.h |
384 |
++++ b/include/libiberty.h |
385 |
+@@ -609,8 +609,11 @@ extern int pwait (int, int *, int); |
386 |
+ /* Like sprintf but provides a pointer to malloc'd storage, which must |
387 |
+ be freed by the caller. */ |
388 |
+ |
389 |
++/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */ |
390 |
++#ifndef asprintf |
391 |
+ extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; |
392 |
+ #endif |
393 |
++#endif |
394 |
+ |
395 |
+ #if !HAVE_DECL_VASPRINTF |
396 |
+ /* Like vsprintf but provides a pointer to malloc'd storage, which |
397 |
|
398 |
diff --git a/8.5.0/gentoo/09_all_libiberty-pic.patch b/8.5.0/gentoo/09_all_libiberty-pic.patch |
399 |
new file mode 100644 |
400 |
index 0000000..b6160a7 |
401 |
--- /dev/null |
402 |
+++ b/8.5.0/gentoo/09_all_libiberty-pic.patch |
403 |
@@ -0,0 +1,10 @@ |
404 |
+--- a/libiberty/Makefile.in |
405 |
++++ b/libiberty/Makefile.in |
406 |
+@@ -246,6 +246,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
407 |
+ $(AR) $(AR_FLAGS) $(TARGETLIB) \ |
408 |
+ $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ |
409 |
+ $(RANLIB) $(TARGETLIB); \ |
410 |
++ cp $(TARGETLIB) ../ ; \ |
411 |
+ cd ..; \ |
412 |
+ else true; fi |
413 |
+ |
414 |
|
415 |
diff --git a/8.5.0/gentoo/10_all_nopie-all-flags.patch b/8.5.0/gentoo/10_all_nopie-all-flags.patch |
416 |
new file mode 100644 |
417 |
index 0000000..48536e6 |
418 |
--- /dev/null |
419 |
+++ b/8.5.0/gentoo/10_all_nopie-all-flags.patch |
420 |
@@ -0,0 +1,18 @@ |
421 |
+We need to pass NO_PIE_CFLAGS to ALL_* so gcc don't fail when |
422 |
+we compile it with older gcc and pie. |
423 |
+ |
424 |
+--- a/gcc/Makefile.in 2015-06-25 19:18:12.000000000 +0200 |
425 |
++++ b/gcc/Makefile.in 2016-04-22 00:12:54.029178860 +0200 |
426 |
+@@ -991,10 +991,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) |
427 |
+ ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) |
428 |
+ |
429 |
+ # This is the variable to use when using $(COMPILER). |
430 |
+-ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) |
431 |
++ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) |
432 |
+ |
433 |
+ # This is the variable to use when using $(LINKER). |
434 |
+-ALL_LINKERFLAGS = $(ALL_CXXFLAGS) |
435 |
++ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) |
436 |
+ |
437 |
+ # Build and host support libraries. |
438 |
+ |
439 |
|
440 |
diff --git a/8.5.0/gentoo/11_all_extra-options.patch b/8.5.0/gentoo/11_all_extra-options.patch |
441 |
new file mode 100644 |
442 |
index 0000000..42c288c |
443 |
--- /dev/null |
444 |
+++ b/8.5.0/gentoo/11_all_extra-options.patch |
445 |
@@ -0,0 +1,89 @@ |
446 |
+On Hardened we add some options like -fstack-clash-protection and -z now |
447 |
+ |
448 |
+--- a/gcc/common.opt 2018-03-28 16:51:09.000000000 +0200 |
449 |
++++ a/gcc/common.opt 2018-04-30 15:35:55.274096877 +0200 |
450 |
+@@ -2367,7 +2367,7 @@ Common Alias(fstack-check=, specific, no |
451 |
+ Insert stack checking code into the program. Same as -fstack-check=specific. |
452 |
+ |
453 |
+ fstack-clash-protection |
454 |
+-Common Report Var(flag_stack_clash_protection) Optimization |
455 |
++Common Report Var(flag_stack_clash_protection) Optimization Init(-1) |
456 |
+ Insert code to probe each page of stack space as it is allocated to protect |
457 |
+ from stack-clash style attacks. |
458 |
+ |
459 |
+--- a/gcc/defaults.h 2018-01-03 11:03:58.000000000 +0100 |
460 |
++++ b/gcc/defaults.h 2018-05-01 12:41:29.522851451 +0200 |
461 |
+@@ -1435,6 +1435,15 @@ see the files COPYING3 and COPYING.RUNTI |
462 |
+ #define STACK_CHECK_MAX_VAR_SIZE (STACK_CHECK_MAX_FRAME_SIZE / 100) |
463 |
+ #endif |
464 |
+ |
465 |
++/* Default value for flag_clash_protector when flag_clash_protector is |
466 |
++ initialized to -1. */ |
467 |
++#ifdef EXTRA_OPTIONS |
468 |
++#define DEFAULT_FLAG_SCP 1 |
469 |
++#endif |
470 |
++#ifndef DEFAULT_FLAG_SCP |
471 |
++#define DEFAULT_FLAG_SCP 0 |
472 |
++#endif |
473 |
++ |
474 |
+ /* By default, the C++ compiler will use function addresses in the |
475 |
+ vtable entries. Setting this nonzero tells the compiler to use |
476 |
+ function descriptors instead. The value of this macro says how |
477 |
+--- a/gcc/toplev.c 2018-02-13 17:18:37.000000000 +0100 |
478 |
++++ b/gcc/toplev.c 2018-04-30 16:46:37.244027303 +0200 |
479 |
+@@ -1682,6 +1682,10 @@ process_options (void) |
480 |
+ |
481 |
+ /* -fstack-clash-protection is not currently supported on targets |
482 |
+ where the stack grows up. */ |
483 |
++ if (flag_stack_clash_protection == -1) |
484 |
++ { |
485 |
++ flag_stack_clash_protection = DEFAULT_FLAG_SCP; |
486 |
++ } |
487 |
+ if (flag_stack_clash_protection && !STACK_GROWS_DOWNWARD) |
488 |
+ { |
489 |
+ warning_at (UNKNOWN_LOCATION, 0, |
490 |
+ |
491 |
+--- a/libgcc/Makefile.in 2011-11-22 04:01:02.000000000 +0100 |
492 |
++++ b/libgcc/Makefile.in 2011-12-25 15:18:22.449610631 +0100 |
493 |
+@@ -225,7 +225,7 @@ endif |
494 |
+ LIBGCC2_DEBUG_CFLAGS = -g |
495 |
+ LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \ |
496 |
+ $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \ |
497 |
+- -fbuilding-libgcc -fno-stack-protector \ |
498 |
++ -fbuilding-libgcc -fno-stack-protector -fno-stack-clash-protection \ |
499 |
+ $(INHIBIT_LIBC_CFLAGS) |
500 |
+ |
501 |
+ # Additional options to use when compiling libgcc2.a. |
502 |
+@@ -279,7 +290,7 @@ INTERNAL_CFLAGS = $(CFLAGS) $(LIBGCC2_CF |
503 |
+ -finhibit-size-directive -fno-inline -fno-exceptions \ |
504 |
+ -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \ |
505 |
+ -fbuilding-libgcc -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \ |
506 |
+- $(INHIBIT_LIBC_CFLAGS) |
507 |
++ -fno-stack-clash-protection $(INHIBIT_LIBC_CFLAGS) |
508 |
+ |
509 |
+ # Extra flags to use when compiling crt{begin,end}.o. |
510 |
+ CRTSTUFF_T_CFLAGS = |
511 |
+--- a/gcc/gcc.c 2016-02-19 23:18:38.000000000 +0100 |
512 |
++++ b/gcc/gcc.c 2016-05-02 22:56:10.185721270 +0200 |
513 |
+@@ -868,6 +868,12 @@ proper position among the other output f |
514 |
+ #endif |
515 |
+ #endif |
516 |
+ |
517 |
++#ifdef EXTRA_OPTIONS |
518 |
++#define LINK_NOW_SPEC "%{!nonow:-z now} " |
519 |
++#else |
520 |
++#define LINK_NOW_SPEC "" |
521 |
++#endif |
522 |
++ |
523 |
+ #ifdef ENABLE_DEFAULT_PIE |
524 |
+ #define NO_PIE_SPEC "no-pie|static" |
525 |
+ #define PIE_SPEC NO_PIE_SPEC "|r|shared:;" |
526 |
+@@ -1013,7 +1020,7 @@ proper position among the other output f |
527 |
+ %(linker) " \ |
528 |
+ LINK_PLUGIN_SPEC \ |
529 |
+ "%{flto|flto=*:%<fcompare-debug*} \ |
530 |
+- %{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC \ |
531 |
++ %{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC LINK_NOW_SPEC \ |
532 |
+ "%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \ |
533 |
+ "%X %{o*} %{e*} %{N} %{n} %{r}\ |
534 |
+ %{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}} \ |
535 |
|
536 |
diff --git a/8.5.0/gentoo/12_all_pr55930-dependency-tracking.patch b/8.5.0/gentoo/12_all_pr55930-dependency-tracking.patch |
537 |
new file mode 100644 |
538 |
index 0000000..a8743e0 |
539 |
--- /dev/null |
540 |
+++ b/8.5.0/gentoo/12_all_pr55930-dependency-tracking.patch |
541 |
@@ -0,0 +1,18 @@ |
542 |
+libatomic build failure if configured with --disable-dependency-tracking |
543 |
+load_n.c:115:1: fatal error: opening dependency file .deps/load_1_.lo.Ppo: No such file or directory |
544 |
+ |
545 |
+https://bugs.gentoo.org/463463 |
546 |
+http://gcc.gnu.org/PR55930 |
547 |
+ |
548 |
+--- a/libatomic/Makefile.in |
549 |
++++ b/libatomic/Makefile.in |
550 |
+@@ -298,7 +298,8 @@ PAT_N = $(word 2,$(PAT_SPLIT)) |
551 |
+ PAT_S = $(word 3,$(PAT_SPLIT)) |
552 |
+ IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) |
553 |
+ IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) |
554 |
+-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo |
555 |
++@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo |
556 |
++@AMDEP_FALSE@M_DEPS = |
557 |
+ M_SIZE = -DN=$(PAT_N) |
558 |
+ M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) |
559 |
+ M_FILE = $(PAT_BASE)_n.c |
560 |
|
561 |
diff --git a/8.5.0/gentoo/13_all_sh-drop-sysroot-suffix.patch b/8.5.0/gentoo/13_all_sh-drop-sysroot-suffix.patch |
562 |
new file mode 100644 |
563 |
index 0000000..3dadd4c |
564 |
--- /dev/null |
565 |
+++ b/8.5.0/gentoo/13_all_sh-drop-sysroot-suffix.patch |
566 |
@@ -0,0 +1,32 @@ |
567 |
+From 5eeeff19bb4978a8d3c0d53bc81744bc25d82993 Mon Sep 17 00:00:00 2001 |
568 |
+From: Sergei Trofimovich <slyfox@g.o> |
569 |
+Date: Sat, 14 Apr 2018 13:07:39 +0100 |
570 |
+Subject: [PATCH] gcc/config.gcc: sh-*: Disable sysroot-suffix (PR42947) |
571 |
+ |
572 |
+sh-* is a multilib target. It is also one of 2 sysroot-prefix targets. |
573 |
+Unfortunately two options do not mix well. Attempt to use default |
574 |
+multilib flavour always prepends sysroot-prefix. |
575 |
+ |
576 |
+Bug: https://bugs.gentoo.org/511548 |
577 |
+Bug: https://gcc.gnu.org/PR42947 |
578 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
579 |
+--- |
580 |
+ gcc/config.gcc | 2 -- |
581 |
+ 1 file changed, 2 deletions(-) |
582 |
+ |
583 |
+diff --git a/gcc/config.gcc b/gcc/config.gcc |
584 |
+index 55c314afdbd..c320f24f123 100644 |
585 |
+--- a/gcc/config.gcc |
586 |
++++ b/gcc/config.gcc |
587 |
+@@ -2866,8 +2866,6 @@ sh-*-elf* | sh[12346l]*-*-elf* | \ |
588 |
+ if test x${enable_incomplete_targets} = xyes ; then |
589 |
+ tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1" |
590 |
+ fi |
591 |
+- tm_file="$tm_file ./sysroot-suffix.h" |
592 |
+- tmake_file="$tmake_file t-sysroot-suffix" |
593 |
+ ;; |
594 |
+ sh-*-rtems*) |
595 |
+ tmake_file="${tmake_file} sh/t-sh sh/t-rtems" |
596 |
+-- |
597 |
+2.17.0 |
598 |
+ |
599 |
|
600 |
diff --git a/8.5.0/gentoo/14_all_ia64-TEXTREL.patch b/8.5.0/gentoo/14_all_ia64-TEXTREL.patch |
601 |
new file mode 100644 |
602 |
index 0000000..706dbe5 |
603 |
--- /dev/null |
604 |
+++ b/8.5.0/gentoo/14_all_ia64-TEXTREL.patch |
605 |
@@ -0,0 +1,22 @@ |
606 |
+Fix textrels on -rdynamic binaries: |
607 |
+Bug: https://gcc.gnu.org/PR84553 |
608 |
+Bug: https://bugs.gentoo.org/566118 |
609 |
+--- a/gcc/config/ia64/ia64.c |
610 |
++++ a/gcc/config/ia64/ia64.c |
611 |
+@@ -10838,12 +10838,14 @@ ia64_hpux_reloc_rw_mask (void) |
612 |
+ |
613 |
+ /* For others, relax this so that relocations to local data goes in |
614 |
+ read-only segments, but we still cannot allow global relocations |
615 |
+- in read-only segments. */ |
616 |
++ in read-only segments. Except that use of -rdynamic at link time |
617 |
++ may make any local data global, so we can't allow local data in |
618 |
++ read-only segments either. */ |
619 |
+ |
620 |
+ static int |
621 |
+ ia64_reloc_rw_mask (void) |
622 |
+ { |
623 |
+- return flag_pic ? 3 : 2; |
624 |
++ return flag_pic ? 3 : 3; |
625 |
+ } |
626 |
+ |
627 |
+ /* Return the section to use for X. The only special thing we do here |
628 |
|
629 |
diff --git a/8.5.0/gentoo/15_all_disable-systemtap-switch.patch b/8.5.0/gentoo/15_all_disable-systemtap-switch.patch |
630 |
new file mode 100644 |
631 |
index 0000000..a4c25d4 |
632 |
--- /dev/null |
633 |
+++ b/8.5.0/gentoo/15_all_disable-systemtap-switch.patch |
634 |
@@ -0,0 +1,137 @@ |
635 |
+From bb510ed7ea82093c924b027489db6f92250a85b3 Mon Sep 17 00:00:00 2001 |
636 |
+From: Sergei Trofimovich <slyfox@g.o> |
637 |
+Date: Sat, 12 May 2018 12:56:46 +0100 |
638 |
+Subject: [PATCH] gcc/configure.ac: add --disable-systemtap switch |
639 |
+ |
640 |
+Before the change systemtap probes were enabled |
641 |
+if target headers had sys/sdt.h at ./configure time. |
642 |
+ |
643 |
+After the change explicitly ask to enable or disable |
644 |
+for probe support and not rely on automagic dependency |
645 |
+discovery. |
646 |
+ |
647 |
+Bug: https://bugs.gentoo.org/654748 |
648 |
+Bug: https://gcc.gnu.org/bugzilla/PR61257 |
649 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
650 |
+--- |
651 |
+ gcc/configure | 34 ++++++++++++++++++++++++++-------- |
652 |
+ gcc/configure.ac | 30 ++++++++++++++++++++++-------- |
653 |
+ 2 files changed, 48 insertions(+), 16 deletions(-) |
654 |
+--- a/gcc/configure |
655 |
++++ b/gcc/configure |
656 |
+@@ -947,6 +947,7 @@ enable_gnu_unique_object |
657 |
+ enable_linker_build_id |
658 |
+ enable_libssp |
659 |
+ enable_default_ssp |
660 |
++enable_systemtap |
661 |
+ with_long_double_128 |
662 |
+ with_long_double_format |
663 |
+ with_gc |
664 |
+@@ -1689,6 +1690,7 @@ Optional Features: |
665 |
+ compiler will always pass --build-id to linker |
666 |
+ --enable-libssp enable linking against libssp |
667 |
+ --enable-default-ssp enable Stack Smashing Protection as default |
668 |
++ --disable-systemtap enable systemtap static probe points [default=auto] |
669 |
+ --enable-maintainer-mode |
670 |
+ enable make rules and dependencies not useful (and |
671 |
+ sometimes confusing) to the casual installer |
672 |
+@@ -18449,7 +18451,7 @@ else |
673 |
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
674 |
+ lt_status=$lt_dlunknown |
675 |
+ cat > conftest.$ac_ext <<_LT_EOF |
676 |
+-#line 18452 "configure" |
677 |
++#line 18454 "configure" |
678 |
+ #include "confdefs.h" |
679 |
+ |
680 |
+ #if HAVE_DLFCN_H |
681 |
+@@ -18555,7 +18557,7 @@ else |
682 |
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
683 |
+ lt_status=$lt_dlunknown |
684 |
+ cat > conftest.$ac_ext <<_LT_EOF |
685 |
+-#line 18558 "configure" |
686 |
++#line 18560 "configure" |
687 |
+ #include "confdefs.h" |
688 |
+ |
689 |
+ #if HAVE_DLFCN_H |
690 |
+@@ -29280,17 +29282,33 @@ fi |
691 |
+ |
692 |
+ # Test for <sys/sdt.h> on the target. |
693 |
+ |
694 |
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
695 |
++ |
696 |
++# Check whether --enable-systemtap was given. |
697 |
++if test "${enable_systemtap+set}" = set; then : |
698 |
++ enableval=$enable_systemtap; enable_systemtap=$enableval |
699 |
++else |
700 |
++ enable_systemtap=auto |
701 |
++fi |
702 |
++ |
703 |
++ |
704 |
++if test x$enable_systemtap != xno; then |
705 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
706 |
+ $as_echo_n "checking sys/sdt.h in the target C library... " >&6; } |
707 |
+-have_sys_sdt_h=no |
708 |
+-if test -f $target_header_dir/sys/sdt.h; then |
709 |
+- have_sys_sdt_h=yes |
710 |
++ have_sys_sdt_h=no |
711 |
++ if test -f $target_header_dir/sys/sdt.h ; then |
712 |
++ have_sys_sdt_h=yes |
713 |
+ |
714 |
+ $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h |
715 |
+ |
716 |
+-fi |
717 |
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
718 |
++ fi |
719 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
720 |
+ $as_echo "$have_sys_sdt_h" >&6; } |
721 |
++ if test x$enable_systemtap = xyes ; then |
722 |
++ if test x$have_sys_sdt_h = xno ; then |
723 |
++ as_fn_error "sys/sdt.h was not found" "$LINENO" 5 |
724 |
++ fi |
725 |
++ fi |
726 |
++fi |
727 |
+ |
728 |
+ # Check if TFmode long double should be used by default or not. |
729 |
+ # Some glibc targets used DFmode long double, but with glibc 2.4 |
730 |
+--- a/gcc/configure.ac |
731 |
++++ b/gcc/configure.ac |
732 |
+@@ -5947,14 +5947,28 @@ AC_SUBST([enable_default_ssp]) |
733 |
+ |
734 |
+ # Test for <sys/sdt.h> on the target. |
735 |
+ GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) |
736 |
+-AC_MSG_CHECKING(sys/sdt.h in the target C library) |
737 |
+-have_sys_sdt_h=no |
738 |
+-if test -f $target_header_dir/sys/sdt.h; then |
739 |
+- have_sys_sdt_h=yes |
740 |
+- AC_DEFINE(HAVE_SYS_SDT_H, 1, |
741 |
+- [Define if your target C library provides sys/sdt.h]) |
742 |
+-fi |
743 |
+-AC_MSG_RESULT($have_sys_sdt_h) |
744 |
++ |
745 |
++AC_ARG_ENABLE(systemtap, |
746 |
++[AS_HELP_STRING([--disable-systemtap], |
747 |
++ [enable systemtap static probe points [default=auto]])], |
748 |
++ enable_systemtap=$enableval, |
749 |
++ enable_systemtap=auto) |
750 |
++ |
751 |
++if test x$enable_systemtap != xno; then |
752 |
++ AC_MSG_CHECKING(sys/sdt.h in the target C library) |
753 |
++ have_sys_sdt_h=no |
754 |
++ if test -f $target_header_dir/sys/sdt.h ; then |
755 |
++ have_sys_sdt_h=yes |
756 |
++ AC_DEFINE(HAVE_SYS_SDT_H, 1, |
757 |
++ [Define if your target C library provides sys/sdt.h]) |
758 |
++ fi |
759 |
++ AC_MSG_RESULT($have_sys_sdt_h) |
760 |
++ if test x$enable_systemtap = xyes ; then |
761 |
++ if test x$have_sys_sdt_h = xno ; then |
762 |
++ AC_MSG_ERROR([sys/sdt.h was not found]) |
763 |
++ fi |
764 |
++ fi |
765 |
++fi |
766 |
+ |
767 |
+ # Check if TFmode long double should be used by default or not. |
768 |
+ # Some glibc targets used DFmode long double, but with glibc 2.4 |
769 |
+-- |
770 |
+2.17.0 |
771 |
+ |
772 |
|
773 |
diff --git a/8.5.0/gentoo/16_all_m68k-textrel-on-libgcc.patch b/8.5.0/gentoo/16_all_m68k-textrel-on-libgcc.patch |
774 |
new file mode 100644 |
775 |
index 0000000..a2aa100 |
776 |
--- /dev/null |
777 |
+++ b/8.5.0/gentoo/16_all_m68k-textrel-on-libgcc.patch |
778 |
@@ -0,0 +1,93 @@ |
779 |
+https://gcc.gnu.org/PR86224 |
780 |
+ |
781 |
+From 1d89df42bdaf0745fd2a0d294471ac16f0553707 Mon Sep 17 00:00:00 2001 |
782 |
+From: Sergei Trofimovich <slyfox@g.o> |
783 |
+Date: Sat, 28 Jul 2018 11:33:27 +0100 |
784 |
+Subject: [PATCH] libgcc: m68k: avoid absolute relocation in shared library |
785 |
+ |
786 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
787 |
+--- |
788 |
+ libgcc/config/m68k/lb1sf68.S | 19 ++++++++++++++----- |
789 |
+ 1 file changed, 14 insertions(+), 5 deletions(-) |
790 |
+ |
791 |
+diff --git a/libgcc/config/m68k/lb1sf68.S b/libgcc/config/m68k/lb1sf68.S |
792 |
+index 325a7c17d9b..16c6dc3f5a7 100644 |
793 |
+--- a/libgcc/config/m68k/lb1sf68.S |
794 |
++++ b/libgcc/config/m68k/lb1sf68.S |
795 |
+@@ -435,7 +435,10 @@ $_exception_handler: |
796 |
+ .text |
797 |
+ FUNC(__mulsi3) |
798 |
+ .globl SYM (__mulsi3) |
799 |
++ .globl SYM (__mulsi3_internal) |
800 |
++ .hidden SYM (__mulsi3_internal) |
801 |
+ SYM (__mulsi3): |
802 |
++SYM (__mulsi3_internal): |
803 |
+ movew sp@(4), d0 /* x0 -> d0 */ |
804 |
+ muluw sp@(10), d0 /* x0*y1 */ |
805 |
+ movew sp@(6), d1 /* x1 -> d1 */ |
806 |
+@@ -458,7 +461,10 @@ SYM (__mulsi3): |
807 |
+ .text |
808 |
+ FUNC(__udivsi3) |
809 |
+ .globl SYM (__udivsi3) |
810 |
++ .globl SYM (__udivsi3_internal) |
811 |
++ .hidden SYM (__udivsi3_internal) |
812 |
+ SYM (__udivsi3): |
813 |
++SYM (__udivsi3_internal): |
814 |
+ #ifndef __mcoldfire__ |
815 |
+ movel d2, sp@- |
816 |
+ movel sp@(12), d1 /* d1 = divisor */ |
817 |
+@@ -534,7 +540,10 @@ L2: subql IMM (1),d4 |
818 |
+ .text |
819 |
+ FUNC(__divsi3) |
820 |
+ .globl SYM (__divsi3) |
821 |
++ .globl SYM (__divsi3_internal) |
822 |
++ .hidden SYM (__divsi3_internal) |
823 |
+ SYM (__divsi3): |
824 |
++SYM (__divsi3_internal): |
825 |
+ movel d2, sp@- |
826 |
+ |
827 |
+ moveq IMM (1), d2 /* sign of result stored in d2 (=1 or =-1) */ |
828 |
+@@ -557,7 +566,7 @@ L1: movel sp@(8), d0 /* d0 = dividend */ |
829 |
+ |
830 |
+ L2: movel d1, sp@- |
831 |
+ movel d0, sp@- |
832 |
+- PICCALL SYM (__udivsi3) /* divide abs(dividend) by abs(divisor) */ |
833 |
++ PICCALL SYM (__udivsi3_internal) /* divide abs(dividend) by abs(divisor) */ |
834 |
+ addql IMM (8), sp |
835 |
+ |
836 |
+ tstb d2 |
837 |
+@@ -577,13 +586,13 @@ SYM (__umodsi3): |
838 |
+ movel sp@(4), d0 /* d0 = dividend */ |
839 |
+ movel d1, sp@- |
840 |
+ movel d0, sp@- |
841 |
+- PICCALL SYM (__udivsi3) |
842 |
++ PICCALL SYM (__udivsi3_internal) |
843 |
+ addql IMM (8), sp |
844 |
+ movel sp@(8), d1 /* d1 = divisor */ |
845 |
+ #ifndef __mcoldfire__ |
846 |
+ movel d1, sp@- |
847 |
+ movel d0, sp@- |
848 |
+- PICCALL SYM (__mulsi3) /* d0 = (a/b)*b */ |
849 |
++ PICCALL SYM (__mulsi3_internal) /* d0 = (a/b)*b */ |
850 |
+ addql IMM (8), sp |
851 |
+ #else |
852 |
+ mulsl d1,d0 |
853 |
+@@ -603,13 +612,13 @@ SYM (__modsi3): |
854 |
+ movel sp@(4), d0 /* d0 = dividend */ |
855 |
+ movel d1, sp@- |
856 |
+ movel d0, sp@- |
857 |
+- PICCALL SYM (__divsi3) |
858 |
++ PICCALL SYM (__divsi3_internal) |
859 |
+ addql IMM (8), sp |
860 |
+ movel sp@(8), d1 /* d1 = divisor */ |
861 |
+ #ifndef __mcoldfire__ |
862 |
+ movel d1, sp@- |
863 |
+ movel d0, sp@- |
864 |
+- PICCALL SYM (__mulsi3) /* d0 = (a/b)*b */ |
865 |
++ PICCALL SYM (__mulsi3_internal) /* d0 = (a/b)*b */ |
866 |
+ addql IMM (8), sp |
867 |
+ #else |
868 |
+ mulsl d1,d0 |
869 |
+-- |
870 |
+2.18.0 |
871 |
+ |
872 |
|
873 |
diff --git a/8.5.0/gentoo/17_all_respect-build-cxxflags.patch b/8.5.0/gentoo/17_all_respect-build-cxxflags.patch |
874 |
new file mode 100644 |
875 |
index 0000000..14139ea |
876 |
--- /dev/null |
877 |
+++ b/8.5.0/gentoo/17_all_respect-build-cxxflags.patch |
878 |
@@ -0,0 +1,39 @@ |
879 |
+Pass CXXFLAGS as CXXFLAGS_FOR_BUILD to stage1. |
880 |
+ |
881 |
+Fixes build failure when CXXFLAGS contains |
882 |
+TARGET-specific flags. |
883 |
+ |
884 |
+Tested on x86_64-pc-linux-gnu host as: |
885 |
+ # CFLAGS='-O2 -mfpu=neon-vfpv4' CXXFLAGS='-O2 -mfpu=neon-vfpv4' \ |
886 |
+ armv7a-unknown-linux-gnueabihf-emerge -v1 sys-devel/gcc --quiet-build=n |
887 |
+ |
888 |
+Fix by Peter Levine. |
889 |
+https://bugs.gentoo.org/581406 |
890 |
+--- a/Makefile.in |
891 |
++++ b/Makefile.in |
892 |
+@@ -170,6 +170,7 @@ |
893 |
+ # built for the build system to override those in BASE_FLAGS_TO_PASS. |
894 |
+ EXTRA_BUILD_FLAGS = \ |
895 |
+ CFLAGS="$(CFLAGS_FOR_BUILD)" \ |
896 |
++ CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ |
897 |
+ LDFLAGS="$(LDFLAGS_FOR_BUILD)" |
898 |
+ |
899 |
+ # This is the list of directories to built for the host system. |
900 |
+@@ -710,6 +711,7 @@ |
901 |
+ "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
902 |
+ "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
903 |
+ "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
904 |
++ "CXXFLAGS_FOR_BUILD=$(CXXFLAGS_FOR_BUILD)" \ |
905 |
+ "EXPECT=$(EXPECT)" \ |
906 |
+ "FLEX=$(FLEX)" \ |
907 |
+ "INSTALL=$(INSTALL)" \ |
908 |
+--- a/Makefile.tpl |
909 |
++++ b/Makefile.tpl |
910 |
+@@ -172,6 +172,7 @@ |
911 |
+ # built for the build system to override those in BASE_FLAGS_TO_PASS. |
912 |
+ EXTRA_BUILD_FLAGS = \ |
913 |
+ CFLAGS="$(CFLAGS_FOR_BUILD)" \ |
914 |
++ CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ |
915 |
+ LDFLAGS="$(LDFLAGS_FOR_BUILD)" |
916 |
+ |
917 |
+ # This is the list of directories to built for the host system. |
918 |
|
919 |
diff --git a/8.5.0/gentoo/18_all_libgfortran-Werror.patch b/8.5.0/gentoo/18_all_libgfortran-Werror.patch |
920 |
new file mode 100644 |
921 |
index 0000000..f6c26bf |
922 |
--- /dev/null |
923 |
+++ b/8.5.0/gentoo/18_all_libgfortran-Werror.patch |
924 |
@@ -0,0 +1,20 @@ |
925 |
+libgfortran does not respect --disable-werror |
926 |
+ |
927 |
+https://bugs.gentoo.org/433435 |
928 |
+http://gcc.gnu.org/PR54724 |
929 |
+ |
930 |
+ |
931 |
+--- a/libgfortran/configure.ac |
932 |
++++ b/libgfortran/configure.ac |
933 |
+@@ -140,3 +140,3 @@ AM_PROG_CC_C_O |
934 |
+ if test "x$GCC" = "xyes"; then |
935 |
+- AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
936 |
++ AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring" |
937 |
+ ## We like to use C11 and C99 routines when available. This makes |
938 |
+--- a/libgfortran/configure |
939 |
++++ b/libgfortran/configure |
940 |
+@@ -5764,3 +5764,3 @@ fi |
941 |
+ # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
942 |
+ if test "x$GCC" = "xyes"; then |
943 |
+- AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
944 |
++ AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring" |
945 |
|
946 |
diff --git a/8.5.0/gentoo/19_all_libgomp-Werror.patch b/8.5.0/gentoo/19_all_libgomp-Werror.patch |
947 |
new file mode 100644 |
948 |
index 0000000..416808a |
949 |
--- /dev/null |
950 |
+++ b/8.5.0/gentoo/19_all_libgomp-Werror.patch |
951 |
@@ -0,0 +1,20 @@ |
952 |
+libgomp does not respect --disable-werror |
953 |
+ |
954 |
+https://bugs.gentoo.org/229059 |
955 |
+http://gcc.gnu.org/PR38436 |
956 |
+--- a/libgomp/configure.ac |
957 |
++++ b/libgomp/configure.ac |
958 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
959 |
+ # Add -Wall -Werror if we are using GCC. |
960 |
+ if test "x$GCC" = "xyes"; then |
961 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
962 |
++ XCFLAGS="$XCFLAGS -Wall" |
963 |
+ fi |
964 |
+--- a/libgomp/configure |
965 |
++++ b/libgomp/configure |
966 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
967 |
+ # Add -Wall -Werror if we are using GCC. |
968 |
+ if test "x$GCC" = "xyes"; then |
969 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
970 |
++ XCFLAGS="$XCFLAGS -Wall" |
971 |
+ fi |
972 |
|
973 |
diff --git a/8.5.0/gentoo/20_all_libitm-Werror.patch b/8.5.0/gentoo/20_all_libitm-Werror.patch |
974 |
new file mode 100644 |
975 |
index 0000000..27181e0 |
976 |
--- /dev/null |
977 |
+++ b/8.5.0/gentoo/20_all_libitm-Werror.patch |
978 |
@@ -0,0 +1,19 @@ |
979 |
+libitm does not respect --disable-werror |
980 |
+ |
981 |
+https://bugs.gentoo.org/475350 |
982 |
+--- a/libitm/configure.ac |
983 |
++++ b/libitm/configure.ac |
984 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
985 |
+ # Add -Wall -Werror if we are using GCC. |
986 |
+ if test "x$GCC" = "xyes"; then |
987 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
988 |
++ XCFLAGS="$XCFLAGS -Wall" |
989 |
+ fi |
990 |
+--- a/libitm/configure |
991 |
++++ b/libitm/configure |
992 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
993 |
+ # Add -Wall -Werror if we are using GCC. |
994 |
+ if test "x$GCC" = "xyes"; then |
995 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
996 |
++ XCFLAGS="$XCFLAGS -Wall" |
997 |
+ fi |
998 |
|
999 |
diff --git a/8.5.0/gentoo/21_all_libatomic-Werror.patch b/8.5.0/gentoo/21_all_libatomic-Werror.patch |
1000 |
new file mode 100644 |
1001 |
index 0000000..0550722 |
1002 |
--- /dev/null |
1003 |
+++ b/8.5.0/gentoo/21_all_libatomic-Werror.patch |
1004 |
@@ -0,0 +1,19 @@ |
1005 |
+libatomic does not respect --disable-werror |
1006 |
+ |
1007 |
+https://bugs.gentoo.org/475350 |
1008 |
+--- a/libatomic/configure.ac |
1009 |
++++ b/libatomic/configure.ac |
1010 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1011 |
+ # Add -Wall -Werror if we are using GCC. |
1012 |
+ if test "x$GCC" = "xyes"; then |
1013 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1014 |
++ XCFLAGS="$XCFLAGS -Wall" |
1015 |
+ fi |
1016 |
+--- a/libatomic/configure |
1017 |
++++ b/libatomic/configure |
1018 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1019 |
+ # Add -Wall -Werror if we are using GCC. |
1020 |
+ if test "x$GCC" = "xyes"; then |
1021 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1022 |
++ XCFLAGS="$XCFLAGS -Wall" |
1023 |
+ fi |
1024 |
|
1025 |
diff --git a/8.5.0/gentoo/22_all_libbacktrace-Werror.patch b/8.5.0/gentoo/22_all_libbacktrace-Werror.patch |
1026 |
new file mode 100644 |
1027 |
index 0000000..57dd284 |
1028 |
--- /dev/null |
1029 |
+++ b/8.5.0/gentoo/22_all_libbacktrace-Werror.patch |
1030 |
@@ -0,0 +1,17 @@ |
1031 |
+libbacktrace does not respect --disable-werror |
1032 |
+ |
1033 |
+https://bugs.gentoo.org/667104 |
1034 |
+--- a/libbacktrace/configure |
1035 |
++++ b/libbacktrace/configure |
1036 |
+@@ -11634,3 +11634,3 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1037 |
+ if test -n "${with_target_subdir}"; then |
1038 |
+- WARN_FLAGS="$WARN_FLAGS -Werror" |
1039 |
++ WARN_FLAGS="$WARN_FLAGS" |
1040 |
+ fi |
1041 |
+--- a/libbacktrace/configure.ac |
1042 |
++++ b/libbacktrace/configure.ac |
1043 |
+@@ -138,3 +138,3 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ |
1044 |
+ if test -n "${with_target_subdir}"; then |
1045 |
+- WARN_FLAGS="$WARN_FLAGS -Werror" |
1046 |
++ WARN_FLAGS="$WARN_FLAGS" |
1047 |
+ fi |
1048 |
|
1049 |
diff --git a/8.5.0/gentoo/23_all_libsanitizer-Werror.patch b/8.5.0/gentoo/23_all_libsanitizer-Werror.patch |
1050 |
new file mode 100644 |
1051 |
index 0000000..0e484a4 |
1052 |
--- /dev/null |
1053 |
+++ b/8.5.0/gentoo/23_all_libsanitizer-Werror.patch |
1054 |
@@ -0,0 +1,17 @@ |
1055 |
+libsanitizer does not respect --disable-werror |
1056 |
+ |
1057 |
+https://bugs.gentoo.org/667104 |
1058 |
+--- a/libsanitizer/libbacktrace/Makefile.am |
1059 |
++++ b/libsanitizer/libbacktrace/Makefile.am |
1060 |
+@@ -37,3 +37,3 @@ AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \ |
1061 |
+ WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \ |
1062 |
+- -Wcast-qual -Werror |
1063 |
++ -Wcast-qual |
1064 |
+ C_WARN_FLAGS = $(WARN_FLAGS) -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition |
1065 |
+--- a/libsanitizer/libbacktrace/Makefile.in |
1066 |
++++ b/libsanitizer/libbacktrace/Makefile.in |
1067 |
+@@ -297,3 +297,3 @@ AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \ |
1068 |
+ WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \ |
1069 |
+- -Wcast-qual -Werror |
1070 |
++ -Wcast-qual |
1071 |
+ |
1072 |
|
1073 |
diff --git a/8.5.0/gentoo/24_all_libstdcxx-no-vtv.patch b/8.5.0/gentoo/24_all_libstdcxx-no-vtv.patch |
1074 |
new file mode 100644 |
1075 |
index 0000000..68508bd |
1076 |
--- /dev/null |
1077 |
+++ b/8.5.0/gentoo/24_all_libstdcxx-no-vtv.patch |
1078 |
@@ -0,0 +1,61 @@ |
1079 |
+Final libstdc++.so should not contain rpath to make libvtv usable. |
1080 |
+It's up to final binaries to link against proper libvtv. |
1081 |
+ |
1082 |
+Bug: https://bugs.gentoo.org/582524 |
1083 |
+Bug: https://gcc.gnu.org/PR85884 |
1084 |
+--- a/libstdc++-v3/src/Makefile.am |
1085 |
++++ b/libstdc++-v3/src/Makefile.am |
1086 |
+@@ -217,7 +217,6 @@ CXXLINK = \ |
1087 |
+ $(LIBTOOL) --tag CXX \ |
1088 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1089 |
+ --mode=link $(CXX) \ |
1090 |
+- $(VTV_CXXLINKFLAGS) \ |
1091 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1092 |
+ |
1093 |
+ # Symbol versioning for shared libraries. |
1094 |
+--- a/libstdc++-v3/src/Makefile.in |
1095 |
++++ b/libstdc++-v3/src/Makefile.in |
1096 |
+@@ -511,7 +511,6 @@ CXXLINK = \ |
1097 |
+ $(LIBTOOL) --tag CXX \ |
1098 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1099 |
+ --mode=link $(CXX) \ |
1100 |
+- $(VTV_CXXLINKFLAGS) \ |
1101 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1102 |
+ |
1103 |
+ @ENABLE_SYMVERS_TRUE@CLEANFILES = libstdc++-symbols.ver $(version_dep) |
1104 |
+--- a/libstdc++-v3/src/c++11/Makefile.am |
1105 |
++++ b/libstdc++-v3/src/c++11/Makefile.am |
1106 |
+@@ -204,5 +204,4 @@ CXXLINK = \ |
1107 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1108 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1109 |
+ --mode=link $(CXX) \ |
1110 |
+- $(VTV_CXXLINKFLAGS) \ |
1111 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1112 |
+--- a/libstdc++-v3/src/c++11/Makefile.in |
1113 |
++++ b/libstdc++-v3/src/c++11/Makefile.in |
1114 |
+@@ -496,7 +496,6 @@ CXXLINK = \ |
1115 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1116 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1117 |
+ --mode=link $(CXX) \ |
1118 |
+- $(VTV_CXXLINKFLAGS) \ |
1119 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1120 |
+ |
1121 |
+ all: all-am |
1122 |
+--- a/libstdc++-v3/src/c++98/Makefile.am |
1123 |
++++ b/libstdc++-v3/src/c++98/Makefile.am |
1124 |
+@@ -273,5 +273,4 @@ CXXLINK = \ |
1125 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1126 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1127 |
+ --mode=link $(CXX) \ |
1128 |
+- $(VTV_CXXLINKFLAGS) \ |
1129 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1130 |
+--- a/libstdc++-v3/src/c++98/Makefile.in |
1131 |
++++ b/libstdc++-v3/src/c++98/Makefile.in |
1132 |
+@@ -500,7 +500,6 @@ CXXLINK = \ |
1133 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1134 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1135 |
+ --mode=link $(CXX) \ |
1136 |
+- $(VTV_CXXLINKFLAGS) \ |
1137 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1138 |
+ |
1139 |
+ all: all-am |
1140 |
|
1141 |
diff --git a/8.5.0/gentoo/25_all_overridable_native.patch b/8.5.0/gentoo/25_all_overridable_native.patch |
1142 |
new file mode 100644 |
1143 |
index 0000000..c292f1c |
1144 |
--- /dev/null |
1145 |
+++ b/8.5.0/gentoo/25_all_overridable_native.patch |
1146 |
@@ -0,0 +1,126 @@ |
1147 |
+https://gcc.gnu.org/PR69471 |
1148 |
+https://bugs.gentoo.org/679738 |
1149 |
+ |
1150 |
+From 8c0f695d83d1b4b92b9e7e8dad003701dbc04d27 Mon Sep 17 00:00:00 2001 |
1151 |
+From: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> |
1152 |
+Date: Sat, 23 Feb 2019 19:39:35 +0000 |
1153 |
+Subject: [PATCH] driver: Also prune joined switches with negation |
1154 |
+ |
1155 |
+When -march=native is passed to host_detect_local_cpu to the backend, |
1156 |
+it overrides all command lines after it. That means |
1157 |
+ |
1158 |
+$ gcc -march=native -march=skylake-avx512 |
1159 |
+ |
1160 |
+is the treated as |
1161 |
+ |
1162 |
+$ gcc -march=skylake-avx512 -march=native |
1163 |
+ |
1164 |
+Prune joined switches with Negative and RejectNegative to allow |
1165 |
+-march=skylake-avx512 to override previous -march=native on command-line. |
1166 |
+ |
1167 |
+gcc/ |
1168 |
+ |
1169 |
+ PR driver/69471 |
1170 |
+ * opts-common.c (prune_options): Also prune joined switches |
1171 |
+ with Negative and RejectNegative. |
1172 |
+ * config/i386/i386.opt (march=): Add Negative(march=). |
1173 |
+ (mtune=): Add Negative(mtune=). |
1174 |
+ * doc/options.texi: Document Negative used together with Joined |
1175 |
+ and RejectNegative. |
1176 |
+ |
1177 |
+gcc/testsuite/ |
1178 |
+ |
1179 |
+ PR driver/69471 |
1180 |
+ * gcc.dg/pr69471-1.c: New test. |
1181 |
+ * gcc.dg/pr69471-2.c: Likewise. |
1182 |
+ * gcc.target/i386/pr69471-3.c: Likewise. |
1183 |
+ |
1184 |
+ |
1185 |
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269164 138bc75d-0d04-0410-961f-82ee72b054a4 |
1186 |
+--- a/gcc/config/i386/i386.opt |
1187 |
++++ b/gcc/config/i386/i386.opt |
1188 |
+@@ -253,7 +253,7 @@ EnumValue |
1189 |
+ Enum(ix86_align_data) String(cacheline) Value(ix86_align_data_type_cacheline) |
1190 |
+ |
1191 |
+ march= |
1192 |
+-Target RejectNegative Joined Var(ix86_arch_string) |
1193 |
++Target RejectNegative Negative(march=) Joined Var(ix86_arch_string) |
1194 |
+ Generate code for given CPU. |
1195 |
+ |
1196 |
+ masm= |
1197 |
+@@ -510,7 +510,7 @@ Target Report Mask(TLS_DIRECT_SEG_REFS) |
1198 |
+ Use direct references against %gs when accessing tls data. |
1199 |
+ |
1200 |
+ mtune= |
1201 |
+-Target RejectNegative Joined Var(ix86_tune_string) |
1202 |
++Target RejectNegative Negative(mtune=) Joined Var(ix86_tune_string) |
1203 |
+ Schedule code for given CPU. |
1204 |
+ |
1205 |
+ mtune-ctrl= |
1206 |
+--- a/gcc/opts-common.c |
1207 |
++++ b/gcc/opts-common.c |
1208 |
+@@ -1015,7 +1015,9 @@ prune_options (struct cl_decoded_option **decoded_options, |
1209 |
+ goto keep; |
1210 |
+ |
1211 |
+ /* Skip joined switches. */ |
1212 |
+- if ((option->flags & CL_JOINED)) |
1213 |
++ if ((option->flags & CL_JOINED) |
1214 |
++ && (!option->cl_reject_negative |
1215 |
++ || (unsigned int) option->neg_index != opt_idx)) |
1216 |
+ goto keep; |
1217 |
+ |
1218 |
+ for (j = i + 1; j < old_decoded_options_count; j++) |
1219 |
+@@ -1027,8 +1029,11 @@ prune_options (struct cl_decoded_option **decoded_options, |
1220 |
+ continue; |
1221 |
+ if (cl_options[next_opt_idx].neg_index < 0) |
1222 |
+ continue; |
1223 |
+- if ((cl_options[next_opt_idx].flags & CL_JOINED)) |
1224 |
+- continue; |
1225 |
++ if ((cl_options[next_opt_idx].flags & CL_JOINED) |
1226 |
++ && (!cl_options[next_opt_idx].cl_reject_negative |
1227 |
++ || ((unsigned int) cl_options[next_opt_idx].neg_index |
1228 |
++ != next_opt_idx))) |
1229 |
++ continue; |
1230 |
+ if (cancel_option (opt_idx, next_opt_idx, next_opt_idx)) |
1231 |
+ break; |
1232 |
+ } |
1233 |
+--- /dev/null |
1234 |
++++ b/gcc/testsuite/gcc.dg/pr69471-1.c |
1235 |
+@@ -0,0 +1,9 @@ |
1236 |
++/* { dg-do compile } */ |
1237 |
++/* { dg-options "-Wno-implicit-function-declaration -Wno-int-conversion -fno-builtin-free -fno-builtin-malloc" } */ |
1238 |
++ |
1239 |
++void * |
1240 |
++foo (void * p) |
1241 |
++{ |
1242 |
++ free (p); |
1243 |
++ return malloc (p); |
1244 |
++} |
1245 |
+--- /dev/null |
1246 |
++++ b/gcc/testsuite/gcc.dg/pr69471-2.c |
1247 |
+@@ -0,0 +1,8 @@ |
1248 |
++/* { dg-do compile } */ |
1249 |
++/* { dg-options "-gstabs2 -gdwarf-4 -gstabs3" } */ |
1250 |
++/* { dg-error "conflicts with prior selectio" "" { target *-*-* } 0 } */ |
1251 |
++ |
1252 |
++void |
1253 |
++foo (void) |
1254 |
++{ |
1255 |
++} |
1256 |
+--- /dev/null |
1257 |
++++ b/gcc/testsuite/gcc.target/i386/pr69471-3.c |
1258 |
+@@ -0,0 +1,11 @@ |
1259 |
++/* { dg-do compile } */ |
1260 |
++/* { dg-options "-march=native -march=knl" } */ |
1261 |
++ |
1262 |
++/* NB: We want to verify that -march=native -march=processor is the same |
1263 |
++ as -march=processor. Since it is very unlikely that GCC will be built |
1264 |
++ on KNL, -march=native will have -mno-avx512er and -march=knl should |
1265 |
++ enable AVX512ER. */ |
1266 |
++ |
1267 |
++#ifndef __AVX512ER__ |
1268 |
++# error __AVX512ER__ is not defined |
1269 |
++#endif |
1270 |
+-- |
1271 |
+2.21.0 |
1272 |
+ |
1273 |
|
1274 |
diff --git a/8.5.0/gentoo/26_all_sparc-fpu-subregs-91269.patch b/8.5.0/gentoo/26_all_sparc-fpu-subregs-91269.patch |
1275 |
new file mode 100644 |
1276 |
index 0000000..e21d07d |
1277 |
--- /dev/null |
1278 |
+++ b/8.5.0/gentoo/26_all_sparc-fpu-subregs-91269.patch |
1279 |
@@ -0,0 +1,105 @@ |
1280 |
+https://gcc.gnu.org/PR91269 |
1281 |
+ |
1282 |
+From bebaf06774baca584c7e9f8410d0e49606a11d60 Mon Sep 17 00:00:00 2001 |
1283 |
+From: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> |
1284 |
+Date: Fri, 20 Sep 2019 09:42:40 +0000 |
1285 |
+Subject: [PATCH] PR target/91269 * config/sparc/sparc.h |
1286 |
+ (HARD_REGNO_CALLER_SAVE_MODE): Define. |
1287 |
+ |
1288 |
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@275994 138bc75d-0d04-0410-961f-82ee72b054a4 |
1289 |
+--- |
1290 |
+ gcc/config/sparc/sparc.h | 7 ++++ |
1291 |
+ gcc/testsuite/gcc.dg/pr91269.c | 70 ++++++++++++++++++++++++++++++++++ |
1292 |
+ |
1293 |
+--- a/gcc/config/sparc/sparc.h |
1294 |
++++ b/gcc/config/sparc/sparc.h |
1295 |
+@@ -711,6 +711,13 @@ along with GCC; see the file COPYING3. If not see |
1296 |
+ register window instruction in the prologue. */ |
1297 |
+ #define HARD_REGNO_RENAME_OK(FROM, TO) ((FROM) != 1) |
1298 |
+ |
1299 |
++/* Select a register mode required for caller save of hard regno REGNO. |
1300 |
++ Contrary to what is documented, the default is not the smallest suitable |
1301 |
++ mode but the largest suitable mode for the given (REGNO, NREGS) pair and |
1302 |
++ it quickly creates paradoxical subregs that can be problematic. */ |
1303 |
++#define HARD_REGNO_CALLER_SAVE_MODE(REGNO, NREGS, MODE) \ |
1304 |
++ ((MODE) == VOIDmode ? choose_hard_reg_mode (REGNO, NREGS, false) : (MODE)) |
1305 |
++ |
1306 |
+ /* Specify the registers used for certain standard purposes. |
1307 |
+ The values of these macros are register numbers. */ |
1308 |
+ |
1309 |
+--- /dev/null |
1310 |
++++ b/gcc/testsuite/gcc.dg/pr91269.c |
1311 |
+@@ -0,0 +1,70 @@ |
1312 |
++/* PR target/91269 */ |
1313 |
++/* Testcase by Sergei Trofimovich <slyfox@×××××.ru> */ |
1314 |
++ |
1315 |
++/* { dg-do assemble } */ |
1316 |
++/* { dg-options "-O2 -Wno-int-conversion" } */ |
1317 |
++/* { dg-additional-options "-fcall-used-g6 -fPIE -mcpu=niagara4" { target sparc*-*-* } } */ |
1318 |
++ |
1319 |
++struct m; |
1320 |
++ |
1321 |
++enum { a = 2 }; |
1322 |
++int b[1]; |
1323 |
++int d[2715]; |
1324 |
++int e, f, h; |
1325 |
++enum { i = 2 } j; |
1326 |
++inline int c(int k) { |
1327 |
++ char *cp; |
1328 |
++ if (k >= 62 && k <= 247) |
1329 |
++ cp = b[k]; |
1330 |
++ if (cp) |
1331 |
++ return 65533; |
1332 |
++ return 2; |
1333 |
++} |
1334 |
++inline int g(int k) { |
1335 |
++ if (k < sizeof(d)) |
1336 |
++ return e; |
1337 |
++ return 0; |
1338 |
++} |
1339 |
++ |
1340 |
++int u(struct m*, char*, char*); |
1341 |
++ |
1342 |
++int l(struct m *k, char n, long o, int *p) { |
1343 |
++ int q, flags = j, r, s, lasttwo = *p; |
1344 |
++ char inptr, outptr; |
1345 |
++ while (inptr) { |
1346 |
++ if (__builtin_expect(h, 0)) |
1347 |
++ break; |
1348 |
++ unsigned ch = inptr; |
1349 |
++ if (lasttwo) { |
1350 |
++ long need = lasttwo >> 3; |
1351 |
++ if (__builtin_expect(need > n, 0)) |
1352 |
++ break; |
1353 |
++ } else if (s == i) { |
1354 |
++ long t = c(ch); |
1355 |
++ if (t != 65533) { |
1356 |
++ int jch = g(ch); |
1357 |
++ if (jch & 8) |
1358 |
++ continue; |
1359 |
++ } |
1360 |
++ } |
1361 |
++ if (ch <= 5) |
1362 |
++ ; |
1363 |
++ else { |
1364 |
++ long t = c(ch); |
1365 |
++ if (t != 65533) |
1366 |
++ ; |
1367 |
++ else { |
1368 |
++ switch (f >> 8) |
1369 |
++ case 79: |
1370 |
++ q = f == 20308 || f == 20350; |
1371 |
++ if (q) |
1372 |
++ if (j) |
1373 |
++ r = u(k, &inptr, &outptr); |
1374 |
++ s = *p; |
1375 |
++ if (r) |
1376 |
++ if (o && flags & a) |
1377 |
++ break; |
1378 |
++ } |
1379 |
++ } |
1380 |
++ } |
1381 |
++} |
1382 |
+-- |
1383 |
+2.23.0 |
1384 |
+ |
1385 |
|
1386 |
diff --git a/8.5.0/gentoo/27_all_disable-riscv32-ABIs.patch b/8.5.0/gentoo/27_all_disable-riscv32-ABIs.patch |
1387 |
new file mode 100644 |
1388 |
index 0000000..52476e6 |
1389 |
--- /dev/null |
1390 |
+++ b/8.5.0/gentoo/27_all_disable-riscv32-ABIs.patch |
1391 |
@@ -0,0 +1,28 @@ |
1392 |
+https://gcc.gnu.org/PR90419 |
1393 |
+ |
1394 |
+--- gcc-8.3.0.orig/gcc/config/riscv/t-linux-multilib 2017-02-06 22:38:37.000000000 +0100 |
1395 |
++++ gcc-8.3.0/gcc/config/riscv/t-linux-multilib 2019-04-28 16:37:44.377841943 +0200 |
1396 |
+@@ -20,21 +20,9 @@ |
1397 |
+ ilp32d \ |
1398 |
+ lp64 \ |
1399 |
+ lp64d |
1400 |
+-MULTILIB_REQUIRED = march=rv32imac/mabi=ilp32 \ |
1401 |
+-march=rv32imafdc/mabi=ilp32d \ |
1402 |
+-march=rv64imac/mabi=lp64 \ |
1403 |
++MULTILIB_REQUIRED = march=rv64imac/mabi=lp64 \ |
1404 |
+ march=rv64imafdc/mabi=lp64d |
1405 |
+-MULTILIB_REUSE = march.rv32imac/mabi.ilp32=march.rv32ima/mabi.ilp32 \ |
1406 |
+-march.rv32imac/mabi.ilp32=march.rv32imaf/mabi.ilp32 \ |
1407 |
+-march.rv32imac/mabi.ilp32=march.rv32imafd/mabi.ilp32 \ |
1408 |
+-march.rv32imac/mabi.ilp32=march.rv32imafc/mabi.ilp32 \ |
1409 |
+-march.rv32imac/mabi.ilp32=march.rv32imafdc/mabi.ilp32 \ |
1410 |
+-march.rv32imac/mabi.ilp32=march.rv32g/mabi.ilp32 \ |
1411 |
+-march.rv32imac/mabi.ilp32=march.rv32gc/mabi.ilp32 \ |
1412 |
+-march.rv32imafdc/mabi.ilp32d=march.rv32imafd/mabi.ilp32d \ |
1413 |
+-march.rv32imafdc/mabi.ilp32d=march.rv32gc/mabi.ilp32d \ |
1414 |
+-march.rv32imafdc/mabi.ilp32d=march.rv32g/mabi.ilp32d \ |
1415 |
+-march.rv64imac/mabi.lp64=march.rv64ima/mabi.lp64 \ |
1416 |
++MULTILIB_REUSE = march.rv64imac/mabi.lp64=march.rv64ima/mabi.lp64 \ |
1417 |
+ march.rv64imac/mabi.lp64=march.rv64imaf/mabi.lp64 \ |
1418 |
+ march.rv64imac/mabi.lp64=march.rv64imafd/mabi.lp64 \ |
1419 |
+ march.rv64imac/mabi.lp64=march.rv64imafc/mabi.lp64 \ |
1420 |
|
1421 |
diff --git a/8.5.0/gentoo/28_all_libcpp-ar.patch b/8.5.0/gentoo/28_all_libcpp-ar.patch |
1422 |
new file mode 100644 |
1423 |
index 0000000..55f2944 |
1424 |
--- /dev/null |
1425 |
+++ b/8.5.0/gentoo/28_all_libcpp-ar.patch |
1426 |
@@ -0,0 +1,143 @@ |
1427 |
+https://bugs.gentoo.org/718004 |
1428 |
+https://gcc.gnu.org/PR94657 |
1429 |
+ |
1430 |
+Make sue we use ${CHOST}-ar and not 'ar'. |
1431 |
+ |
1432 |
+--- a/libcpp/configure.ac |
1433 |
++++ b/libcpp/configure.ac |
1434 |
+@@ -12,6 +12,7 @@ AC_PROG_INSTALL |
1435 |
+ AC_PROG_CC |
1436 |
+ AC_PROG_CXX |
1437 |
+ AC_PROG_RANLIB |
1438 |
++AC_CHECK_TOOL(AR, ar) |
1439 |
+ |
1440 |
+ AC_USE_SYSTEM_EXTENSIONS |
1441 |
+ AC_SYS_LARGEFILE |
1442 |
+--- a/libcpp/Makefile.in |
1443 |
++++ b/libcpp/Makefile.in |
1444 |
+@@ -25,7 +25,7 @@ srcdir = @srcdir@ |
1445 |
+ top_builddir = . |
1446 |
+ VPATH = @srcdir@ |
1447 |
+ INSTALL = @INSTALL@ |
1448 |
+-AR = ar |
1449 |
++AR = @AR@ |
1450 |
+ ARFLAGS = cru |
1451 |
+ ACLOCAL = @ACLOCAL@ |
1452 |
+ AUTOCONF = @AUTOCONF@ |
1453 |
+--- a/libcpp/configure |
1454 |
++++ b/libcpp/configure |
1455 |
+@@ -657,6 +657,7 @@ ACLOCAL |
1456 |
+ EGREP |
1457 |
+ GREP |
1458 |
+ CPP |
1459 |
++AR |
1460 |
+ RANLIB |
1461 |
+ ac_ct_CXX |
1462 |
+ CXXFLAGS |
1463 |
+@@ -1038,6 +1039,7 @@ do |
1464 |
+ | -silent | --silent | --silen | --sile | --sil) |
1465 |
+ silent=yes ;; |
1466 |
+ |
1467 |
++ |
1468 |
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1469 |
+ ac_prev=sbindir ;; |
1470 |
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1471 |
+@@ -4006,6 +4008,98 @@ else |
1472 |
+ RANLIB="$ac_cv_prog_RANLIB" |
1473 |
+ fi |
1474 |
+ |
1475 |
++if test -n "$ac_tool_prefix"; then |
1476 |
++ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
1477 |
++set dummy ${ac_tool_prefix}ar; ac_word=$2 |
1478 |
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1479 |
++$as_echo_n "checking for $ac_word... " >&6; } |
1480 |
++if ${ac_cv_prog_AR+:} false; then : |
1481 |
++ $as_echo_n "(cached) " >&6 |
1482 |
++else |
1483 |
++ if test -n "$AR"; then |
1484 |
++ ac_cv_prog_AR="$AR" # Let the user override the test. |
1485 |
++else |
1486 |
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1487 |
++for as_dir in $PATH |
1488 |
++do |
1489 |
++ IFS=$as_save_IFS |
1490 |
++ test -z "$as_dir" && as_dir=. |
1491 |
++ for ac_exec_ext in '' $ac_executable_extensions; do |
1492 |
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1493 |
++ ac_cv_prog_AR="${ac_tool_prefix}ar" |
1494 |
++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1495 |
++ break 2 |
1496 |
++ fi |
1497 |
++done |
1498 |
++ done |
1499 |
++IFS=$as_save_IFS |
1500 |
++ |
1501 |
++fi |
1502 |
++fi |
1503 |
++AR=$ac_cv_prog_AR |
1504 |
++if test -n "$AR"; then |
1505 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
1506 |
++$as_echo "$AR" >&6; } |
1507 |
++else |
1508 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1509 |
++$as_echo "no" >&6; } |
1510 |
++fi |
1511 |
++ |
1512 |
++ |
1513 |
++fi |
1514 |
++if test -z "$ac_cv_prog_AR"; then |
1515 |
++ ac_ct_AR=$AR |
1516 |
++ # Extract the first word of "ar", so it can be a program name with args. |
1517 |
++set dummy ar; ac_word=$2 |
1518 |
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1519 |
++$as_echo_n "checking for $ac_word... " >&6; } |
1520 |
++if ${ac_cv_prog_ac_ct_AR+:} false; then : |
1521 |
++ $as_echo_n "(cached) " >&6 |
1522 |
++else |
1523 |
++ if test -n "$ac_ct_AR"; then |
1524 |
++ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
1525 |
++else |
1526 |
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1527 |
++for as_dir in $PATH |
1528 |
++do |
1529 |
++ IFS=$as_save_IFS |
1530 |
++ test -z "$as_dir" && as_dir=. |
1531 |
++ for ac_exec_ext in '' $ac_executable_extensions; do |
1532 |
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1533 |
++ ac_cv_prog_ac_ct_AR="ar" |
1534 |
++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1535 |
++ break 2 |
1536 |
++ fi |
1537 |
++done |
1538 |
++ done |
1539 |
++IFS=$as_save_IFS |
1540 |
++ |
1541 |
++fi |
1542 |
++fi |
1543 |
++ac_ct_AR=$ac_cv_prog_ac_ct_AR |
1544 |
++if test -n "$ac_ct_AR"; then |
1545 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
1546 |
++$as_echo "$ac_ct_AR" >&6; } |
1547 |
++else |
1548 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1549 |
++$as_echo "no" >&6; } |
1550 |
++fi |
1551 |
++ |
1552 |
++ if test "x$ac_ct_AR" = x; then |
1553 |
++ AR="" |
1554 |
++ else |
1555 |
++ case $cross_compiling:$ac_tool_warned in |
1556 |
++yes:) |
1557 |
++{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
1558 |
++$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
1559 |
++ac_tool_warned=yes ;; |
1560 |
++esac |
1561 |
++ AR=$ac_ct_AR |
1562 |
++ fi |
1563 |
++else |
1564 |
++ AR="$ac_cv_prog_AR" |
1565 |
++fi |
1566 |
++ |
1567 |
+ |
1568 |
+ |
1569 |
+ ac_ext=c |
1570 |
|
1571 |
diff --git a/8.5.0/gentoo/29_all_plugin-objdump.patch b/8.5.0/gentoo/29_all_plugin-objdump.patch |
1572 |
new file mode 100644 |
1573 |
index 0000000..a9c33fd |
1574 |
--- /dev/null |
1575 |
+++ b/8.5.0/gentoo/29_all_plugin-objdump.patch |
1576 |
@@ -0,0 +1,34 @@ |
1577 |
+https://gcc.gnu.org/PR95648 |
1578 |
+--- a/config/gcc-plugin.m4 |
1579 |
++++ b/config/gcc-plugin.m4 |
1580 |
+@@ -45,7 +45,7 @@ AC_DEFUN([GCC_ENABLE_PLUGINS], |
1581 |
+ ;; |
1582 |
+ *) |
1583 |
+ if test x$build = x$host; then |
1584 |
+- export_sym_check="objdump${exeext} -T" |
1585 |
++ export_sym_check="$ac_cv_prog_OBJDUMP -T" |
1586 |
+ elif test x$host = x$target; then |
1587 |
+ export_sym_check="$gcc_cv_objdump -T" |
1588 |
+ else |
1589 |
+--- a/gcc/configure |
1590 |
++++ b/gcc/configure |
1591 |
+@@ -30386,7 +30386,7 @@ fi |
1592 |
+ ;; |
1593 |
+ *) |
1594 |
+ if test x$build = x$host; then |
1595 |
+- export_sym_check="objdump${exeext} -T" |
1596 |
++ export_sym_check="$ac_cv_prog_OBJDUMP -T" |
1597 |
+ elif test x$host = x$target; then |
1598 |
+ export_sym_check="$gcc_cv_objdump -T" |
1599 |
+ else |
1600 |
+--- a/libcc1/configure |
1601 |
++++ b/libcc1/configure |
1602 |
+@@ -14819,7 +14819,7 @@ fi |
1603 |
+ ;; |
1604 |
+ *) |
1605 |
+ if test x$build = x$host; then |
1606 |
+- export_sym_check="objdump${exeext} -T" |
1607 |
++ export_sym_check="$ac_cv_prog_OBJDUMP -T" |
1608 |
+ elif test x$host = x$target; then |
1609 |
+ export_sym_check="$gcc_cv_objdump -T" |
1610 |
+ else |
1611 |
|
1612 |
diff --git a/8.5.0/gentoo/README.history b/8.5.0/gentoo/README.history |
1613 |
new file mode 100644 |
1614 |
index 0000000..adde7ee |
1615 |
--- /dev/null |
1616 |
+++ b/8.5.0/gentoo/README.history |
1617 |
@@ -0,0 +1,30 @@ |
1618 |
+1 16 May 2021 |
1619 |
+ + 01_all_default-fortify-source.patch |
1620 |
+ + 02_all_default-warn-format-security.patch |
1621 |
+ + 03_all_default-warn-trampolines.patch |
1622 |
+ + 04_all_default-ssp-fix.patch |
1623 |
+ + 05_all_alpha-mieee-default.patch |
1624 |
+ + 06_all_ia64_note.GNU-stack.patch |
1625 |
+ + 07_all_i386_libgcc_note.GNU-stack.patch |
1626 |
+ + 08_all_libiberty-asprintf.patch |
1627 |
+ + 09_all_libiberty-pic.patch |
1628 |
+ + 10_all_nopie-all-flags.patch |
1629 |
+ + 11_all_extra-options.patch |
1630 |
+ + 12_all_pr55930-dependency-tracking.patch |
1631 |
+ + 13_all_sh-drop-sysroot-suffix.patch |
1632 |
+ + 14_all_ia64-TEXTREL.patch |
1633 |
+ + 15_all_disable-systemtap-switch.patch |
1634 |
+ + 16_all_m68k-textrel-on-libgcc.patch |
1635 |
+ + 17_all_respect-build-cxxflags.patch |
1636 |
+ + 18_all_libgfortran-Werror.patch |
1637 |
+ + 19_all_libgomp-Werror.patch |
1638 |
+ + 20_all_libitm-Werror.patch |
1639 |
+ + 21_all_libatomic-Werror.patch |
1640 |
+ + 22_all_libbacktrace-Werror.patch |
1641 |
+ + 23_all_libsanitizer-Werror.patch |
1642 |
+ + 24_all_libstdcxx-no-vtv.patch |
1643 |
+ + 25_all_overridable_native.patch |
1644 |
+ + 26_all_sparc-fpu-subregs-91269.patch |
1645 |
+ + 27_all_disable-riscv32-ABIs.patch |
1646 |
+ + 28_all_libcpp-ar.patch |
1647 |
+ + 29_all_plugin-objdump.patch |