1 |
slyfox 18/05/02 22:17:18 |
2 |
|
3 |
Added: 10_all_default-fortify-source.patch |
4 |
11_all_default-warn-format-security.patch |
5 |
12_all_default-warn-trampolines.patch |
6 |
13_all_default-ssp-fix.patch |
7 |
25_all_alpha-mieee-default.patch |
8 |
34_all_ia64_note.GNU-stack.patch |
9 |
50_all_libiberty-asprintf.patch |
10 |
51_all_libiberty-pic.patch |
11 |
54_all_nopie-all-flags.patch |
12 |
90_all_pr55930-dependency-tracking.patch |
13 |
92_all_sh-drop-sysroot-suffix.patch README.history |
14 |
Log: |
15 |
copy 7.3.0 patches |
16 |
|
17 |
A few changes on top of 7.3.0: |
18 |
- 11_all_default-warn-format-security.patch tweaked for gcc-8.1.0 |
19 |
- 91_all_bmi-i386-PR-target-81763.patch dropped (was a backport) |
20 |
- 55_all_extra-options.patch dropped, does not apply and needs a port |
21 |
|
22 |
Revision Changes Path |
23 |
1.1 src/patchsets/gcc/8.1.0/gentoo/10_all_default-fortify-source.patch |
24 |
|
25 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/10_all_default-fortify-source.patch?rev=1.1&view=markup |
26 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/10_all_default-fortify-source.patch?rev=1.1&content-type=text/plain |
27 |
|
28 |
Index: 10_all_default-fortify-source.patch |
29 |
=================================================================== |
30 |
Enable -D_FORTIFY_SOURCE=2 by default. |
31 |
|
32 |
|
33 |
--- a/gcc/c-family/c-cppbuiltin.c |
34 |
+++ b/gcc/c-family/c-cppbuiltin.c |
35 |
@@ -951,6 +951,9 @@ c_cpp_builtins (cpp_reader *pfile) |
36 |
builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0); |
37 |
builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0); |
38 |
|
39 |
+ /* Fortify Source enabled by default w/optimization. */ |
40 |
+ cpp_define (pfile, "_FORTIFY_SOURCE=((defined __OPTIMIZE__ && __OPTIMIZE__ > 0) ? 2 : 0)"); |
41 |
+ |
42 |
/* Misc. */ |
43 |
if (flag_gnu89_inline) |
44 |
cpp_define (pfile, "__GNUC_GNU_INLINE__"); |
45 |
|
46 |
|
47 |
|
48 |
1.1 src/patchsets/gcc/8.1.0/gentoo/11_all_default-warn-format-security.patch |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/11_all_default-warn-format-security.patch?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/11_all_default-warn-format-security.patch?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: 11_all_default-warn-format-security.patch |
54 |
=================================================================== |
55 |
Enable -Wformat and -Wformat-security by default. |
56 |
|
57 |
--- a/gcc/c-family/c.opt 2016-03-23 18:51:56.000000000 +0100 |
58 |
+++ b/gcc/c-family/c.opt 2016-04-28 23:45:54.063351272 +0200 |
59 |
@@ -459,7 +459,7 @@ C ObjC C++ ObjC++ Var(warn_format_nonlit |
60 |
Warn about format strings that are not literals. |
61 |
|
62 |
Wformat-security |
63 |
-C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) |
64 |
+C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) |
65 |
Warn about possible security problems with format functions. |
66 |
|
67 |
Wformat-signedness |
68 |
@@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l |
69 |
Warn about zero-length formats. |
70 |
|
71 |
Wformat= |
72 |
-C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) |
73 |
+C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) |
74 |
Warn about printf/scanf/strftime/strfmon format string anomalies. |
75 |
|
76 |
Wignored-qualifiers |
77 |
|
78 |
|
79 |
|
80 |
1.1 src/patchsets/gcc/8.1.0/gentoo/12_all_default-warn-trampolines.patch |
81 |
|
82 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/12_all_default-warn-trampolines.patch?rev=1.1&view=markup |
83 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/12_all_default-warn-trampolines.patch?rev=1.1&content-type=text/plain |
84 |
|
85 |
Index: 12_all_default-warn-trampolines.patch |
86 |
=================================================================== |
87 |
Enable -Wtrampolines by default. |
88 |
|
89 |
--- a/gcc/common.opt |
90 |
+++ b/gcc/common.opt |
91 |
@@ -712,7 +712,7 @@ Common Var(warn_system_headers) Warning |
92 |
Do not suppress warnings from system headers. |
93 |
|
94 |
Wtrampolines |
95 |
-Common Var(warn_trampolines) Warning |
96 |
+Common Var(warn_trampolines) Init(1) Warning |
97 |
Warn whenever a trampoline is generated. |
98 |
|
99 |
Wtype-limits |
100 |
|
101 |
|
102 |
|
103 |
1.1 src/patchsets/gcc/8.1.0/gentoo/13_all_default-ssp-fix.patch |
104 |
|
105 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/13_all_default-ssp-fix.patch?rev=1.1&view=markup |
106 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/13_all_default-ssp-fix.patch?rev=1.1&content-type=text/plain |
107 |
|
108 |
Index: 13_all_default-ssp-fix.patch |
109 |
=================================================================== |
110 |
We disable ssp on -nostdlib and -ffreestanding as we did on older gcc |
111 |
and change the buffer size. |
112 |
|
113 |
--- a/gcc/c-family/c-opts.c |
114 |
+++ b/gcc/c-family/c-opts.c |
115 |
@@ -450,7 +450,14 @@ |
116 |
|
117 |
case OPT_ffreestanding: |
118 |
value = !value; |
119 |
+ if (global_options.x_flag_stack_protect == -1) |
120 |
+ global_options.x_flag_stack_protect = 0; |
121 |
/* Fall through. */ |
122 |
+ |
123 |
+ case OPT_nostdlib: |
124 |
+ if (global_options.x_flag_stack_protect == -1) |
125 |
+ global_options.x_flag_stack_protect = 0; |
126 |
+ |
127 |
case OPT_fhosted: |
128 |
flag_hosted = value; |
129 |
flag_no_builtin = !value; |
130 |
--- a/gcc/c-family/c.opt |
131 |
+++ b/gcc/c-family/c.opt |
132 |
@@ -1647,6 +1647,10 @@ nostdinc++ |
133 |
C++ ObjC++ |
134 |
Do not search standard system include directories for C++. |
135 |
|
136 |
+nostdlib |
137 |
+C ObjC C++ ObjC++ |
138 |
+; Documented in common.opt |
139 |
+ |
140 |
o |
141 |
C ObjC C++ ObjC++ Joined Separate |
142 |
; Documented in common.opt |
143 |
--- a/gcc/gcc.c |
144 |
+++ b/gcc/gcc.c |
145 |
@@ -1145,6 +1145,7 @@ |
146 |
%{-help=*:--help=%*}\ |
147 |
%{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\ |
148 |
%{fsyntax-only:-o %j} %{-param*}\ |
149 |
+ %{nostdlib:-nostdlib}\ |
150 |
%{coverage:-fprofile-arcs -ftest-coverage}\ |
151 |
%{fprofile-arcs|fprofile-generate*|coverage:\ |
152 |
%{!fprofile-update=single:\ |
153 |
--- a/gcc/params.def |
154 |
+++ b/gcc/params.def |
155 |
@@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT, |
156 |
DEFPARAM (PARAM_SSP_BUFFER_SIZE, |
157 |
"ssp-buffer-size", |
158 |
"The lower bound for a buffer to be considered for stack smashing protection.", |
159 |
- 8, 1, 0) |
160 |
+ 4, 1, 0) |
161 |
|
162 |
DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING, |
163 |
"min-size-for-stack-sharing", |
164 |
|
165 |
|
166 |
|
167 |
1.1 src/patchsets/gcc/8.1.0/gentoo/25_all_alpha-mieee-default.patch |
168 |
|
169 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/25_all_alpha-mieee-default.patch?rev=1.1&view=markup |
170 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/25_all_alpha-mieee-default.patch?rev=1.1&content-type=text/plain |
171 |
|
172 |
Index: 25_all_alpha-mieee-default.patch |
173 |
=================================================================== |
174 |
Set the default behavior on alpha to use -mieee since the large majority of |
175 |
time we want this (bad/weird things can happen with packages built without |
176 |
it). |
177 |
|
178 |
To satisfy those people who may not want -mieee forced on them all the time, |
179 |
we also provide -mno-ieee. |
180 |
|
181 |
Patch by Mike Frysinger <vapier@g.o> |
182 |
|
183 |
Note: upstream doesn't want to take this due to long standing behavior, and |
184 |
because it'd make behavior across OS's inconsistent: |
185 |
https://gcc.gnu.org/ml/gcc-patches/2003-07/msg02144.html |
186 |
|
187 |
This makes sense for upstream, but Gentoo is more concerned about packages |
188 |
behaving the same across arches under Linux. |
189 |
|
190 |
--- a/gcc/config/alpha/alpha.h |
191 |
+++ b/gcc/config/alpha/alpha.h |
192 |
@@ -96,6 +96,8 @@ along with GCC; see the file COPYING3. If not see |
193 |
while (0) |
194 |
#endif |
195 |
|
196 |
+#define CPP_SPEC "%{!no-ieee:-mieee}" |
197 |
+ |
198 |
/* Run-time compilation parameters selecting different hardware subsets. */ |
199 |
|
200 |
/* Which processor to schedule for. The cpu attribute defines a list that |
201 |
--- a/gcc/config/alpha/alpha.opt |
202 |
+++ b/gcc/config/alpha/alpha.opt |
203 |
@@ -35,7 +35,7 @@ |
204 |
Request IEEE-conformant math library routines (OSF/1). |
205 |
|
206 |
mieee |
207 |
-Target Report RejectNegative Mask(IEEE) |
208 |
+Target Report Mask(IEEE) |
209 |
Emit IEEE-conformant code, without inexact exceptions. |
210 |
|
211 |
mieee-with-inexact |
212 |
|
213 |
|
214 |
|
215 |
|
216 |
1.1 src/patchsets/gcc/8.1.0/gentoo/34_all_ia64_note.GNU-stack.patch |
217 |
|
218 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/34_all_ia64_note.GNU-stack.patch?rev=1.1&view=markup |
219 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/34_all_ia64_note.GNU-stack.patch?rev=1.1&content-type=text/plain |
220 |
|
221 |
Index: 34_all_ia64_note.GNU-stack.patch |
222 |
=================================================================== |
223 |
http://gcc.gnu.org/PR21098 |
224 |
|
225 |
|
226 |
2004-09-20 Jakub Jelinek <jakub@××××××.com> |
227 |
|
228 |
* config/rs6000/ppc-asm.h: Add .note.GNU-stack section also |
229 |
on ppc64-linux. |
230 |
|
231 |
* config/ia64/lib1funcs.asm: Add .note.GNU-stack section on |
232 |
ia64-linux. |
233 |
* config/ia64/crtbegin.asm: Likewise. |
234 |
* config/ia64/crtend.asm: Likewise. |
235 |
* config/ia64/crti.asm: Likewise. |
236 |
* config/ia64/crtn.asm: Likewise. |
237 |
|
238 |
2004-05-14 Jakub Jelinek <jakub@××××××.com> |
239 |
|
240 |
* config/ia64/linux.h (TARGET_ASM_FILE_END): Define. |
241 |
|
242 |
|
243 |
--- a/gcc/config/ia64/linux.h |
244 |
+++ b/gcc/config/ia64/linux.h |
245 |
@@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; |
246 |
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
247 |
<http://www.gnu.org/licenses/>. */ |
248 |
|
249 |
+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack |
250 |
+ |
251 |
/* This is for -profile to use -lc_p instead of -lc. */ |
252 |
#undef CC1_SPEC |
253 |
#define CC1_SPEC "%{profile:-p} %{G*}" |
254 |
--- a/gcc/config/rs6000/ppc-asm.h |
255 |
+++ b/gcc/config/rs6000/ppc-asm.h |
256 |
@@ -352,7 +352,7 @@ GLUE(.L,name): \ |
257 |
#endif |
258 |
#endif |
259 |
|
260 |
-#if defined __linux__ && !defined __powerpc64__ |
261 |
+#if defined __linux__ |
262 |
.section .note.GNU-stack |
263 |
.previous |
264 |
#endif |
265 |
--- a/libgcc/config/ia64/crtbegin.S |
266 |
+++ b/libgcc/config/ia64/crtbegin.S |
267 |
@@ -252,3 +252,7 @@ __do_jv_register_classes: |
268 |
.weak __cxa_finalize |
269 |
#endif |
270 |
.weak _Jv_RegisterClasses |
271 |
+ |
272 |
+#ifdef __linux__ |
273 |
+.section .note.GNU-stack; .previous |
274 |
+#endif |
275 |
--- a/libgcc/config/ia64/crtend.S |
276 |
+++ b/libgcc/config/ia64/crtend.S |
277 |
@@ -119,3 +119,6 @@ __do_global_ctors_aux: |
278 |
|
279 |
br.ret.sptk.many rp |
280 |
.endp __do_global_ctors_aux |
281 |
+#ifdef __linux__ |
282 |
+.section .note.GNU-stack; .previous |
283 |
+#endif |
284 |
--- a/libgcc/config/ia64/crti.S |
285 |
+++ b/libgcc/config/ia64/crti.S |
286 |
@@ -49,5 +49,8 @@ _fini: |
287 |
.save rp, r33 |
288 |
mov r33 = b0 |
289 |
.body |
290 |
+#ifdef __linux__ |
291 |
+.section .note.GNU-stack; .previous |
292 |
+#endif |
293 |
|
294 |
# end of crti.S |
295 |
--- a/libgcc/config/ia64/crtn.S |
296 |
+++ b/libgcc/config/ia64/crtn.S |
297 |
@@ -39,5 +39,8 @@ |
298 |
.restore sp |
299 |
mov r12 = r35 |
300 |
br.ret.sptk.many b0 |
301 |
+#ifdef __linux__ |
302 |
+.section .note.GNU-stack; .previous |
303 |
+#endif |
304 |
|
305 |
# end of crtn.S |
306 |
--- a/libgcc/config/ia64/lib1funcs.S |
307 |
+++ b/libgcc/config/ia64/lib1funcs.S |
308 |
@@ -793,3 +793,6 @@ __floattitf: |
309 |
.endp __floattitf |
310 |
#endif |
311 |
#endif |
312 |
+#ifdef __linux__ |
313 |
+.section .note.GNU-stack; .previous |
314 |
+#endif |
315 |
|
316 |
|
317 |
|
318 |
1.1 src/patchsets/gcc/8.1.0/gentoo/50_all_libiberty-asprintf.patch |
319 |
|
320 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/50_all_libiberty-asprintf.patch?rev=1.1&view=markup |
321 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/50_all_libiberty-asprintf.patch?rev=1.1&content-type=text/plain |
322 |
|
323 |
Index: 50_all_libiberty-asprintf.patch |
324 |
=================================================================== |
325 |
2008-07-25 Magnus Granberg <zorry@×××.nu> |
326 |
|
327 |
* include/libiberty.h (asprintf): Don't declare if defined as a macro |
328 |
|
329 |
--- a/include/libiberty.h |
330 |
+++ b/include/libiberty.h |
331 |
@@ -609,8 +609,11 @@ extern int pwait (int, int *, int); |
332 |
/* Like sprintf but provides a pointer to malloc'd storage, which must |
333 |
be freed by the caller. */ |
334 |
|
335 |
+/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */ |
336 |
+#ifndef asprintf |
337 |
extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; |
338 |
#endif |
339 |
+#endif |
340 |
|
341 |
#if !HAVE_DECL_VASPRINTF |
342 |
/* Like vsprintf but provides a pointer to malloc'd storage, which |
343 |
|
344 |
|
345 |
|
346 |
1.1 src/patchsets/gcc/8.1.0/gentoo/51_all_libiberty-pic.patch |
347 |
|
348 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/51_all_libiberty-pic.patch?rev=1.1&view=markup |
349 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/51_all_libiberty-pic.patch?rev=1.1&content-type=text/plain |
350 |
|
351 |
Index: 51_all_libiberty-pic.patch |
352 |
=================================================================== |
353 |
--- a/libiberty/Makefile.in |
354 |
+++ b/libiberty/Makefile.in |
355 |
@@ -246,6 +246,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
356 |
$(AR) $(AR_FLAGS) $(TARGETLIB) \ |
357 |
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ |
358 |
$(RANLIB) $(TARGETLIB); \ |
359 |
+ cp $(TARGETLIB) ../ ; \ |
360 |
cd ..; \ |
361 |
else true; fi |
362 |
|
363 |
|
364 |
|
365 |
|
366 |
1.1 src/patchsets/gcc/8.1.0/gentoo/54_all_nopie-all-flags.patch |
367 |
|
368 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/54_all_nopie-all-flags.patch?rev=1.1&view=markup |
369 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/54_all_nopie-all-flags.patch?rev=1.1&content-type=text/plain |
370 |
|
371 |
Index: 54_all_nopie-all-flags.patch |
372 |
=================================================================== |
373 |
We need to pass NO_PIE_CFLAGS to ALL_* so gcc don't fail when |
374 |
we compile it with older gcc and pie. |
375 |
|
376 |
--- a/gcc/Makefile.in 2015-06-25 19:18:12.000000000 +0200 |
377 |
+++ b/gcc/Makefile.in 2016-04-22 00:12:54.029178860 +0200 |
378 |
@@ -991,10 +991,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) |
379 |
ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) |
380 |
|
381 |
# This is the variable to use when using $(COMPILER). |
382 |
-ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) |
383 |
+ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) |
384 |
|
385 |
# This is the variable to use when using $(LINKER). |
386 |
-ALL_LINKERFLAGS = $(ALL_CXXFLAGS) |
387 |
+ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) |
388 |
|
389 |
# Build and host support libraries. |
390 |
|
391 |
|
392 |
|
393 |
|
394 |
1.1 src/patchsets/gcc/8.1.0/gentoo/90_all_pr55930-dependency-tracking.patch |
395 |
|
396 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/90_all_pr55930-dependency-tracking.patch?rev=1.1&view=markup |
397 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/90_all_pr55930-dependency-tracking.patch?rev=1.1&content-type=text/plain |
398 |
|
399 |
Index: 90_all_pr55930-dependency-tracking.patch |
400 |
=================================================================== |
401 |
libatomic build failure if configured with --disable-dependency-tracking |
402 |
load_n.c:115:1: fatal error: opening dependency file .deps/load_1_.lo.Ppo: No such file or directory |
403 |
|
404 |
https://bugs.gentoo.org/463463 |
405 |
http://gcc.gnu.org/PR55930 |
406 |
|
407 |
--- a/libatomic/Makefile.in |
408 |
+++ b/libatomic/Makefile.in |
409 |
@@ -298,7 +298,8 @@ PAT_N = $(word 2,$(PAT_SPLIT)) |
410 |
PAT_S = $(word 3,$(PAT_SPLIT)) |
411 |
IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) |
412 |
IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) |
413 |
-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo |
414 |
+@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo |
415 |
+@AMDEP_FALSE@M_DEPS = |
416 |
M_SIZE = -DN=$(PAT_N) |
417 |
M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) |
418 |
M_FILE = $(PAT_BASE)_n.c |
419 |
|
420 |
|
421 |
|
422 |
1.1 src/patchsets/gcc/8.1.0/gentoo/92_all_sh-drop-sysroot-suffix.patch |
423 |
|
424 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/92_all_sh-drop-sysroot-suffix.patch?rev=1.1&view=markup |
425 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/92_all_sh-drop-sysroot-suffix.patch?rev=1.1&content-type=text/plain |
426 |
|
427 |
Index: 92_all_sh-drop-sysroot-suffix.patch |
428 |
=================================================================== |
429 |
From 5eeeff19bb4978a8d3c0d53bc81744bc25d82993 Mon Sep 17 00:00:00 2001 |
430 |
From: Sergei Trofimovich <slyfox@g.o> |
431 |
Date: Sat, 14 Apr 2018 13:07:39 +0100 |
432 |
Subject: [PATCH] gcc/config.gcc: sh-*: Disable sysroot-suffix (PR42947) |
433 |
|
434 |
sh-* is a multilib target. It is also one of 2 sysroot-prefix targets. |
435 |
Unfortunately two options do not mix well. Attempt to use default |
436 |
multilib flavour always prepends sysroot-prefix. |
437 |
|
438 |
Bug: https://bugs.gentoo.org/511548 |
439 |
Bug: https://gcc.gnu.org/PR42947 |
440 |
Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
441 |
--- |
442 |
gcc/config.gcc | 2 -- |
443 |
1 file changed, 2 deletions(-) |
444 |
|
445 |
diff --git a/gcc/config.gcc b/gcc/config.gcc |
446 |
index 55c314afdbd..c320f24f123 100644 |
447 |
--- a/gcc/config.gcc |
448 |
+++ b/gcc/config.gcc |
449 |
@@ -2866,8 +2866,6 @@ sh-*-elf* | sh[12346l]*-*-elf* | \ |
450 |
if test x${enable_incomplete_targets} = xyes ; then |
451 |
tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1" |
452 |
fi |
453 |
- tm_file="$tm_file ./sysroot-suffix.h" |
454 |
- tmake_file="$tmake_file t-sysroot-suffix" |
455 |
;; |
456 |
sh-*-rtems*) |
457 |
tmake_file="${tmake_file} sh/t-sh sh/t-rtems" |
458 |
-- |
459 |
2.17.0 |
460 |
|
461 |
|
462 |
|
463 |
|
464 |
1.1 src/patchsets/gcc/8.1.0/gentoo/README.history |
465 |
|
466 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?rev=1.1&view=markup |
467 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?rev=1.1&content-type=text/plain |
468 |
|
469 |
Index: README.history |
470 |
=================================================================== |
471 |
1.0 05 May 2018 |
472 |
+ 92_all_sh-drop-sysroot-suffix.patch |
473 |
+ 10_all_default-fortify-source.patch |
474 |
+ 11_all_default-warn-format-security.patch |
475 |
+ 12_all_default-warn-trampolines.patch |
476 |
+ 13_all_default-ssp-fix.patch |
477 |
+ 25_all_alpha-mieee-default.patch |
478 |
+ 34_all_ia64_note.GNU-stack.patch |
479 |
+ 50_all_libiberty-asprintf.patch |
480 |
+ 51_all_libiberty-pic.patch |
481 |
+ 54_all_nopie-all-flags.patch |
482 |
+ 90_all_pr55930-dependency-tracking.patch |