1 |
commit: 1e3e5d055fe83557f3d861e2277a98885df4b93e |
2 |
Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 04:03:46 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 31 10:07:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=1e3e5d05 |
7 |
|
8 |
12.0.0: cut patchset 4 |
9 |
|
10 |
- Drop the upstreamed patch (13) |
11 |
- Rebase to avoid fuzz (on top of upstream commit 81faedaa8e2819fc) |
12 |
|
13 |
Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org> |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
12.0.0/gentoo/01_all_default-fortify-source.patch | 2 +- |
17 |
.../gentoo/03_all_default-warn-trampolines.patch | 4 +- |
18 |
12.0.0/gentoo/05_all_alpha-mieee-default.patch | 2 +- |
19 |
12.0.0/gentoo/06_all_ia64_note.GNU-stack.patch | 8 +- |
20 |
12.0.0/gentoo/08_all_libiberty-pic.patch | 2 +- |
21 |
12.0.0/gentoo/09_all_nopie-all-flags.patch | 2 +- |
22 |
12.0.0/gentoo/10_all_sh-drop-sysroot-suffix.patch | 2 +- |
23 |
12.0.0/gentoo/11_all_ia64-TEXTREL.patch | 2 +- |
24 |
.../gentoo/12_all_disable-systemtap-switch.patch | 8 +- |
25 |
12.0.0/gentoo/13_all_m68k-textrel-on-libgcc.patch | 93 ---------------------- |
26 |
12.0.0/gentoo/14_all_respect-build-cxxflags.patch | 6 +- |
27 |
12.0.0/gentoo/20_all_libstdcxx-no-vtv.patch | 12 +-- |
28 |
12.0.0/gentoo/22_all_default_ssp-buffer-size.patch | 2 +- |
29 |
12.0.0/gentoo/23_all_EXTRA_OPTIONS-z-now.patch | 4 +- |
30 |
...all_EXTRA_OPTIONS-fstack-clash-protection.patch | 10 +-- |
31 |
12.0.0/gentoo/26_all_plugin-objdump.patch | 4 +- |
32 |
12.0.0/gentoo/README.history | 19 +++++ |
33 |
17 files changed, 54 insertions(+), 128 deletions(-) |
34 |
|
35 |
diff --git a/12.0.0/gentoo/01_all_default-fortify-source.patch b/12.0.0/gentoo/01_all_default-fortify-source.patch |
36 |
index 5bfec1d..d9f001a 100644 |
37 |
--- a/12.0.0/gentoo/01_all_default-fortify-source.patch |
38 |
+++ b/12.0.0/gentoo/01_all_default-fortify-source.patch |
39 |
@@ -7,7 +7,7 @@ initially Gentoo used too complicated macro. |
40 |
# DP: if the optimization level is > 0 |
41 |
--- a/gcc/c-family/c-cppbuiltin.cc |
42 |
+++ b/gcc/c-family/c-cppbuiltin.cc |
43 |
-@@ -951,6 +951,12 @@ c_cpp_builtins (cpp_reader *pfile) |
44 |
+@@ -1510,6 +1510,12 @@ c_cpp_builtins (cpp_reader *pfile) |
45 |
builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0); |
46 |
builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0); |
47 |
|
48 |
|
49 |
diff --git a/12.0.0/gentoo/03_all_default-warn-trampolines.patch b/12.0.0/gentoo/03_all_default-warn-trampolines.patch |
50 |
index 7a644cb..fb6d8bc 100644 |
51 |
--- a/12.0.0/gentoo/03_all_default-warn-trampolines.patch |
52 |
+++ b/12.0.0/gentoo/03_all_default-warn-trampolines.patch |
53 |
@@ -2,7 +2,7 @@ Enable -Wtrampolines by default. |
54 |
|
55 |
--- a/gcc/common.opt |
56 |
+++ b/gcc/common.opt |
57 |
-@@ -712,7 +712,7 @@ Common Var(warn_system_headers) Warning |
58 |
+@@ -798,7 +798,7 @@ Common Var(warn_system_headers) Warning |
59 |
Do not suppress warnings from system headers. |
60 |
|
61 |
Wtrampolines |
62 |
@@ -10,4 +10,4 @@ Enable -Wtrampolines by default. |
63 |
+Common Var(warn_trampolines) Init(1) Warning |
64 |
Warn whenever a trampoline is generated. |
65 |
|
66 |
- Wtype-limits |
67 |
+ Wtrivial-auto-var-init |
68 |
|
69 |
diff --git a/12.0.0/gentoo/05_all_alpha-mieee-default.patch b/12.0.0/gentoo/05_all_alpha-mieee-default.patch |
70 |
index cf33f14..fd1de71 100644 |
71 |
--- a/12.0.0/gentoo/05_all_alpha-mieee-default.patch |
72 |
+++ b/12.0.0/gentoo/05_all_alpha-mieee-default.patch |
73 |
@@ -16,7 +16,7 @@ behaving the same across arches under Linux. |
74 |
|
75 |
--- a/gcc/config/alpha/alpha.h |
76 |
+++ b/gcc/config/alpha/alpha.h |
77 |
-@@ -96,6 +96,8 @@ along with GCC; see the file COPYING3. If not see |
78 |
+@@ -94,6 +94,8 @@ along with GCC; see the file COPYING3. If not see |
79 |
while (0) |
80 |
#endif |
81 |
|
82 |
|
83 |
diff --git a/12.0.0/gentoo/06_all_ia64_note.GNU-stack.patch b/12.0.0/gentoo/06_all_ia64_note.GNU-stack.patch |
84 |
index 66a787e..7a1d4c6 100644 |
85 |
--- a/12.0.0/gentoo/06_all_ia64_note.GNU-stack.patch |
86 |
+++ b/12.0.0/gentoo/06_all_ia64_note.GNU-stack.patch |
87 |
@@ -20,7 +20,7 @@ http://gcc.gnu.org/PR21098 |
88 |
|
89 |
--- a/gcc/config/ia64/linux.h |
90 |
+++ b/gcc/config/ia64/linux.h |
91 |
-@@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; |
92 |
+@@ -23,6 +23,8 @@ a copy of the GCC Runtime Library Exception along with this program; |
93 |
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
94 |
<http://www.gnu.org/licenses/>. */ |
95 |
|
96 |
@@ -31,7 +31,7 @@ http://gcc.gnu.org/PR21098 |
97 |
#define CC1_SPEC "%{profile:-p} %{G*}" |
98 |
--- a/gcc/config/rs6000/ppc-asm.h |
99 |
+++ b/gcc/config/rs6000/ppc-asm.h |
100 |
-@@ -352,7 +352,7 @@ GLUE(.L,name): \ |
101 |
+@@ -384,7 +384,7 @@ GLUE(.L,name): \ |
102 |
#endif |
103 |
#endif |
104 |
|
105 |
@@ -42,7 +42,7 @@ http://gcc.gnu.org/PR21098 |
106 |
#endif |
107 |
--- a/libgcc/config/ia64/crtbegin.S |
108 |
+++ b/libgcc/config/ia64/crtbegin.S |
109 |
-@@ -252,3 +252,7 @@ __do_jv_register_classes: |
110 |
+@@ -185,3 +185,7 @@ __do_jv_register_classes: |
111 |
.weak __cxa_finalize |
112 |
#endif |
113 |
.weak _Jv_RegisterClasses |
114 |
@@ -52,7 +52,7 @@ http://gcc.gnu.org/PR21098 |
115 |
+#endif |
116 |
--- a/libgcc/config/ia64/crtend.S |
117 |
+++ b/libgcc/config/ia64/crtend.S |
118 |
-@@ -119,3 +119,6 @@ __do_global_ctors_aux: |
119 |
+@@ -114,3 +114,6 @@ __do_global_ctors_aux: |
120 |
|
121 |
br.ret.sptk.many rp |
122 |
.endp __do_global_ctors_aux |
123 |
|
124 |
diff --git a/12.0.0/gentoo/08_all_libiberty-pic.patch b/12.0.0/gentoo/08_all_libiberty-pic.patch |
125 |
index b6160a7..3f0bae1 100644 |
126 |
--- a/12.0.0/gentoo/08_all_libiberty-pic.patch |
127 |
+++ b/12.0.0/gentoo/08_all_libiberty-pic.patch |
128 |
@@ -1,6 +1,6 @@ |
129 |
--- a/libiberty/Makefile.in |
130 |
+++ b/libiberty/Makefile.in |
131 |
-@@ -246,6 +246,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
132 |
+@@ -265,6 +265,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
133 |
$(AR) $(AR_FLAGS) $(TARGETLIB) \ |
134 |
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ |
135 |
$(RANLIB) $(TARGETLIB); \ |
136 |
|
137 |
diff --git a/12.0.0/gentoo/09_all_nopie-all-flags.patch b/12.0.0/gentoo/09_all_nopie-all-flags.patch |
138 |
index 48536e6..0f7c769 100644 |
139 |
--- a/12.0.0/gentoo/09_all_nopie-all-flags.patch |
140 |
+++ b/12.0.0/gentoo/09_all_nopie-all-flags.patch |
141 |
@@ -3,7 +3,7 @@ we compile it with older gcc and pie. |
142 |
|
143 |
--- a/gcc/Makefile.in 2015-06-25 19:18:12.000000000 +0200 |
144 |
+++ b/gcc/Makefile.in 2016-04-22 00:12:54.029178860 +0200 |
145 |
-@@ -991,10 +991,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) |
146 |
+@@ -1054,10 +1054,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) |
147 |
ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) |
148 |
|
149 |
# This is the variable to use when using $(COMPILER). |
150 |
|
151 |
diff --git a/12.0.0/gentoo/10_all_sh-drop-sysroot-suffix.patch b/12.0.0/gentoo/10_all_sh-drop-sysroot-suffix.patch |
152 |
index 3dadd4c..fd3bda5 100644 |
153 |
--- a/12.0.0/gentoo/10_all_sh-drop-sysroot-suffix.patch |
154 |
+++ b/12.0.0/gentoo/10_all_sh-drop-sysroot-suffix.patch |
155 |
@@ -18,7 +18,7 @@ diff --git a/gcc/config.gcc b/gcc/config.gcc |
156 |
index 55c314afdbd..c320f24f123 100644 |
157 |
--- a/gcc/config.gcc |
158 |
+++ b/gcc/config.gcc |
159 |
-@@ -2866,8 +2866,6 @@ sh-*-elf* | sh[12346l]*-*-elf* | \ |
160 |
+@@ -3328,8 +3328,6 @@ sh-*-elf* | sh[12346l]*-*-elf* | \ |
161 |
if test x${enable_incomplete_targets} = xyes ; then |
162 |
tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1" |
163 |
fi |
164 |
|
165 |
diff --git a/12.0.0/gentoo/11_all_ia64-TEXTREL.patch b/12.0.0/gentoo/11_all_ia64-TEXTREL.patch |
166 |
index d9d0ae8..69347f5 100644 |
167 |
--- a/12.0.0/gentoo/11_all_ia64-TEXTREL.patch |
168 |
+++ b/12.0.0/gentoo/11_all_ia64-TEXTREL.patch |
169 |
@@ -3,7 +3,7 @@ Bug: https://gcc.gnu.org/PR84553 |
170 |
Bug: https://bugs.gentoo.org/566118 |
171 |
--- a/gcc/config/ia64/ia64.cc |
172 |
+++ a/gcc/config/ia64/ia64.cc |
173 |
-@@ -10838,12 +10838,14 @@ ia64_hpux_reloc_rw_mask (void) |
174 |
+@@ -10840,12 +10840,14 @@ ia64_hpux_reloc_rw_mask (void) |
175 |
|
176 |
/* For others, relax this so that relocations to local data goes in |
177 |
read-only segments, but we still cannot allow global relocations |
178 |
|
179 |
diff --git a/12.0.0/gentoo/12_all_disable-systemtap-switch.patch b/12.0.0/gentoo/12_all_disable-systemtap-switch.patch |
180 |
index d5ae8d0..4d69141 100644 |
181 |
--- a/12.0.0/gentoo/12_all_disable-systemtap-switch.patch |
182 |
+++ b/12.0.0/gentoo/12_all_disable-systemtap-switch.patch |
183 |
@@ -22,7 +22,7 @@ diff --git a/gcc/configure b/gcc/configure |
184 |
index 3dcf7752b..c2049f117 100755 |
185 |
--- a/gcc/configure |
186 |
+++ b/gcc/configure |
187 |
-@@ -988,6 +988,7 @@ enable_gnu_unique_object |
188 |
+@@ -1015,6 +1015,7 @@ enable_gnu_unique_object |
189 |
enable_linker_build_id |
190 |
enable_libssp |
191 |
enable_default_ssp |
192 |
@@ -30,7 +30,7 @@ index 3dcf7752b..c2049f117 100755 |
193 |
with_long_double_128 |
194 |
with_long_double_format |
195 |
with_gc |
196 |
-@@ -1740,6 +1741,7 @@ Optional Features: |
197 |
+@@ -1773,6 +1774,7 @@ Optional Features: |
198 |
compiler will always pass --build-id to linker |
199 |
--enable-libssp enable linking against libssp |
200 |
--enable-default-ssp enable Stack Smashing Protection as default |
201 |
@@ -38,7 +38,7 @@ index 3dcf7752b..c2049f117 100755 |
202 |
--enable-maintainer-mode |
203 |
enable make rules and dependencies not useful (and |
204 |
sometimes confusing) to the casual installer |
205 |
-@@ -29330,17 +29332,33 @@ fi |
206 |
+@@ -31387,17 +31389,33 @@ fi |
207 |
|
208 |
# Test for <sys/sdt.h> on the target. |
209 |
|
210 |
@@ -80,7 +80,7 @@ index 3dcf7752b..c2049f117 100755 |
211 |
# Some glibc targets used DFmode long double, but with glibc 2.4 |
212 |
--- a/gcc/configure.ac |
213 |
+++ b/gcc/configure.ac |
214 |
-@@ -6000,14 +6000,28 @@ AC_SUBST([enable_default_ssp]) |
215 |
+@@ -6904,14 +6904,28 @@ AC_SUBST([enable_default_ssp]) |
216 |
|
217 |
# Test for <sys/sdt.h> on the target. |
218 |
GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) |
219 |
|
220 |
diff --git a/12.0.0/gentoo/13_all_m68k-textrel-on-libgcc.patch b/12.0.0/gentoo/13_all_m68k-textrel-on-libgcc.patch |
221 |
deleted file mode 100644 |
222 |
index a2aa100..0000000 |
223 |
--- a/12.0.0/gentoo/13_all_m68k-textrel-on-libgcc.patch |
224 |
+++ /dev/null |
225 |
@@ -1,93 +0,0 @@ |
226 |
-https://gcc.gnu.org/PR86224 |
227 |
- |
228 |
-From 1d89df42bdaf0745fd2a0d294471ac16f0553707 Mon Sep 17 00:00:00 2001 |
229 |
-From: Sergei Trofimovich <slyfox@g.o> |
230 |
-Date: Sat, 28 Jul 2018 11:33:27 +0100 |
231 |
-Subject: [PATCH] libgcc: m68k: avoid absolute relocation in shared library |
232 |
- |
233 |
-Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
234 |
---- |
235 |
- libgcc/config/m68k/lb1sf68.S | 19 ++++++++++++++----- |
236 |
- 1 file changed, 14 insertions(+), 5 deletions(-) |
237 |
- |
238 |
-diff --git a/libgcc/config/m68k/lb1sf68.S b/libgcc/config/m68k/lb1sf68.S |
239 |
-index 325a7c17d9b..16c6dc3f5a7 100644 |
240 |
---- a/libgcc/config/m68k/lb1sf68.S |
241 |
-+++ b/libgcc/config/m68k/lb1sf68.S |
242 |
-@@ -435,7 +435,10 @@ $_exception_handler: |
243 |
- .text |
244 |
- FUNC(__mulsi3) |
245 |
- .globl SYM (__mulsi3) |
246 |
-+ .globl SYM (__mulsi3_internal) |
247 |
-+ .hidden SYM (__mulsi3_internal) |
248 |
- SYM (__mulsi3): |
249 |
-+SYM (__mulsi3_internal): |
250 |
- movew sp@(4), d0 /* x0 -> d0 */ |
251 |
- muluw sp@(10), d0 /* x0*y1 */ |
252 |
- movew sp@(6), d1 /* x1 -> d1 */ |
253 |
-@@ -458,7 +461,10 @@ SYM (__mulsi3): |
254 |
- .text |
255 |
- FUNC(__udivsi3) |
256 |
- .globl SYM (__udivsi3) |
257 |
-+ .globl SYM (__udivsi3_internal) |
258 |
-+ .hidden SYM (__udivsi3_internal) |
259 |
- SYM (__udivsi3): |
260 |
-+SYM (__udivsi3_internal): |
261 |
- #ifndef __mcoldfire__ |
262 |
- movel d2, sp@- |
263 |
- movel sp@(12), d1 /* d1 = divisor */ |
264 |
-@@ -534,7 +540,10 @@ L2: subql IMM (1),d4 |
265 |
- .text |
266 |
- FUNC(__divsi3) |
267 |
- .globl SYM (__divsi3) |
268 |
-+ .globl SYM (__divsi3_internal) |
269 |
-+ .hidden SYM (__divsi3_internal) |
270 |
- SYM (__divsi3): |
271 |
-+SYM (__divsi3_internal): |
272 |
- movel d2, sp@- |
273 |
- |
274 |
- moveq IMM (1), d2 /* sign of result stored in d2 (=1 or =-1) */ |
275 |
-@@ -557,7 +566,7 @@ L1: movel sp@(8), d0 /* d0 = dividend */ |
276 |
- |
277 |
- L2: movel d1, sp@- |
278 |
- movel d0, sp@- |
279 |
-- PICCALL SYM (__udivsi3) /* divide abs(dividend) by abs(divisor) */ |
280 |
-+ PICCALL SYM (__udivsi3_internal) /* divide abs(dividend) by abs(divisor) */ |
281 |
- addql IMM (8), sp |
282 |
- |
283 |
- tstb d2 |
284 |
-@@ -577,13 +586,13 @@ SYM (__umodsi3): |
285 |
- movel sp@(4), d0 /* d0 = dividend */ |
286 |
- movel d1, sp@- |
287 |
- movel d0, sp@- |
288 |
-- PICCALL SYM (__udivsi3) |
289 |
-+ PICCALL SYM (__udivsi3_internal) |
290 |
- addql IMM (8), sp |
291 |
- movel sp@(8), d1 /* d1 = divisor */ |
292 |
- #ifndef __mcoldfire__ |
293 |
- movel d1, sp@- |
294 |
- movel d0, sp@- |
295 |
-- PICCALL SYM (__mulsi3) /* d0 = (a/b)*b */ |
296 |
-+ PICCALL SYM (__mulsi3_internal) /* d0 = (a/b)*b */ |
297 |
- addql IMM (8), sp |
298 |
- #else |
299 |
- mulsl d1,d0 |
300 |
-@@ -603,13 +612,13 @@ SYM (__modsi3): |
301 |
- movel sp@(4), d0 /* d0 = dividend */ |
302 |
- movel d1, sp@- |
303 |
- movel d0, sp@- |
304 |
-- PICCALL SYM (__divsi3) |
305 |
-+ PICCALL SYM (__divsi3_internal) |
306 |
- addql IMM (8), sp |
307 |
- movel sp@(8), d1 /* d1 = divisor */ |
308 |
- #ifndef __mcoldfire__ |
309 |
- movel d1, sp@- |
310 |
- movel d0, sp@- |
311 |
-- PICCALL SYM (__mulsi3) /* d0 = (a/b)*b */ |
312 |
-+ PICCALL SYM (__mulsi3_internal) /* d0 = (a/b)*b */ |
313 |
- addql IMM (8), sp |
314 |
- #else |
315 |
- mulsl d1,d0 |
316 |
--- |
317 |
-2.18.0 |
318 |
- |
319 |
|
320 |
diff --git a/12.0.0/gentoo/14_all_respect-build-cxxflags.patch b/12.0.0/gentoo/14_all_respect-build-cxxflags.patch |
321 |
index 14139ea..1f9a774 100644 |
322 |
--- a/12.0.0/gentoo/14_all_respect-build-cxxflags.patch |
323 |
+++ b/12.0.0/gentoo/14_all_respect-build-cxxflags.patch |
324 |
@@ -11,7 +11,7 @@ Fix by Peter Levine. |
325 |
https://bugs.gentoo.org/581406 |
326 |
--- a/Makefile.in |
327 |
+++ b/Makefile.in |
328 |
-@@ -170,6 +170,7 @@ |
329 |
+@@ -176,6 +176,7 @@ |
330 |
# built for the build system to override those in BASE_FLAGS_TO_PASS. |
331 |
EXTRA_BUILD_FLAGS = \ |
332 |
CFLAGS="$(CFLAGS_FOR_BUILD)" \ |
333 |
@@ -19,7 +19,7 @@ https://bugs.gentoo.org/581406 |
334 |
LDFLAGS="$(LDFLAGS_FOR_BUILD)" |
335 |
|
336 |
# This is the list of directories to built for the host system. |
337 |
-@@ -710,6 +711,7 @@ |
338 |
+@@ -842,6 +843,7 @@ |
339 |
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
340 |
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
341 |
"CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
342 |
@@ -29,7 +29,7 @@ https://bugs.gentoo.org/581406 |
343 |
"INSTALL=$(INSTALL)" \ |
344 |
--- a/Makefile.tpl |
345 |
+++ b/Makefile.tpl |
346 |
-@@ -172,6 +172,7 @@ |
347 |
+@@ -179,6 +179,7 @@ |
348 |
# built for the build system to override those in BASE_FLAGS_TO_PASS. |
349 |
EXTRA_BUILD_FLAGS = \ |
350 |
CFLAGS="$(CFLAGS_FOR_BUILD)" \ |
351 |
|
352 |
diff --git a/12.0.0/gentoo/20_all_libstdcxx-no-vtv.patch b/12.0.0/gentoo/20_all_libstdcxx-no-vtv.patch |
353 |
index 68508bd..e557b35 100644 |
354 |
--- a/12.0.0/gentoo/20_all_libstdcxx-no-vtv.patch |
355 |
+++ b/12.0.0/gentoo/20_all_libstdcxx-no-vtv.patch |
356 |
@@ -5,7 +5,7 @@ Bug: https://bugs.gentoo.org/582524 |
357 |
Bug: https://gcc.gnu.org/PR85884 |
358 |
--- a/libstdc++-v3/src/Makefile.am |
359 |
+++ b/libstdc++-v3/src/Makefile.am |
360 |
-@@ -217,7 +217,6 @@ CXXLINK = \ |
361 |
+@@ -277,7 +277,6 @@ CXXLINK = \ |
362 |
$(LIBTOOL) --tag CXX \ |
363 |
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
364 |
--mode=link $(CXX) \ |
365 |
@@ -15,7 +15,7 @@ Bug: https://gcc.gnu.org/PR85884 |
366 |
# Symbol versioning for shared libraries. |
367 |
--- a/libstdc++-v3/src/Makefile.in |
368 |
+++ b/libstdc++-v3/src/Makefile.in |
369 |
-@@ -511,7 +511,6 @@ CXXLINK = \ |
370 |
+@@ -642,7 +642,6 @@ CXXLINK = \ |
371 |
$(LIBTOOL) --tag CXX \ |
372 |
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
373 |
--mode=link $(CXX) \ |
374 |
@@ -25,7 +25,7 @@ Bug: https://gcc.gnu.org/PR85884 |
375 |
@ENABLE_SYMVERS_TRUE@CLEANFILES = libstdc++-symbols.ver $(version_dep) |
376 |
--- a/libstdc++-v3/src/c++11/Makefile.am |
377 |
+++ b/libstdc++-v3/src/c++11/Makefile.am |
378 |
-@@ -204,5 +204,4 @@ CXXLINK = \ |
379 |
+@@ -214,5 +214,4 @@ CXXLINK = \ |
380 |
$(LIBTOOL) --tag CXX --tag disable-shared \ |
381 |
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
382 |
--mode=link $(CXX) \ |
383 |
@@ -33,7 +33,7 @@ Bug: https://gcc.gnu.org/PR85884 |
384 |
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
385 |
--- a/libstdc++-v3/src/c++11/Makefile.in |
386 |
+++ b/libstdc++-v3/src/c++11/Makefile.in |
387 |
-@@ -496,7 +496,6 @@ CXXLINK = \ |
388 |
+@@ -588,7 +588,6 @@ CXXLINK = \ |
389 |
$(LIBTOOL) --tag CXX --tag disable-shared \ |
390 |
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
391 |
--mode=link $(CXX) \ |
392 |
@@ -43,7 +43,7 @@ Bug: https://gcc.gnu.org/PR85884 |
393 |
all: all-am |
394 |
--- a/libstdc++-v3/src/c++98/Makefile.am |
395 |
+++ b/libstdc++-v3/src/c++98/Makefile.am |
396 |
-@@ -273,5 +273,4 @@ CXXLINK = \ |
397 |
+@@ -268,5 +268,4 @@ CXXLINK = \ |
398 |
$(LIBTOOL) --tag CXX --tag disable-shared \ |
399 |
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
400 |
--mode=link $(CXX) \ |
401 |
@@ -51,7 +51,7 @@ Bug: https://gcc.gnu.org/PR85884 |
402 |
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
403 |
--- a/libstdc++-v3/src/c++98/Makefile.in |
404 |
+++ b/libstdc++-v3/src/c++98/Makefile.in |
405 |
-@@ -500,7 +500,6 @@ CXXLINK = \ |
406 |
+@@ -590,7 +590,6 @@ CXXLINK = \ |
407 |
$(LIBTOOL) --tag CXX --tag disable-shared \ |
408 |
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
409 |
--mode=link $(CXX) \ |
410 |
|
411 |
diff --git a/12.0.0/gentoo/22_all_default_ssp-buffer-size.patch b/12.0.0/gentoo/22_all_default_ssp-buffer-size.patch |
412 |
index ae5a707..0e0dd42 100644 |
413 |
--- a/12.0.0/gentoo/22_all_default_ssp-buffer-size.patch |
414 |
+++ b/12.0.0/gentoo/22_all_default_ssp-buffer-size.patch |
415 |
@@ -3,7 +3,7 @@ Change the minimal SSP buffer size. |
416 |
https://bugs.gentoo.org/484714 |
417 |
--- a/gcc/params.opt |
418 |
+++ b/gcc/params.opt |
419 |
-@@ -849,7 +849,7 @@ Common Joined UInteger Var(param_ssa_name_def_chain_limit) Init(512) Param Optim |
420 |
+@@ -1012,7 +1012,7 @@ Common Joined UInteger Var(param_ssa_name_def_chain_limit) Init(512) Param Optim |
421 |
The maximum number of SSA_NAME assignments to follow in determining a value. |
422 |
|
423 |
-param=ssp-buffer-size= |
424 |
|
425 |
diff --git a/12.0.0/gentoo/23_all_EXTRA_OPTIONS-z-now.patch b/12.0.0/gentoo/23_all_EXTRA_OPTIONS-z-now.patch |
426 |
index b244690..8874b32 100644 |
427 |
--- a/12.0.0/gentoo/23_all_EXTRA_OPTIONS-z-now.patch |
428 |
+++ b/12.0.0/gentoo/23_all_EXTRA_OPTIONS-z-now.patch |
429 |
@@ -2,7 +2,7 @@ On Hardened we add some options like -z now |
430 |
|
431 |
--- a/gcc/gcc.cc |
432 |
+++ b/gcc/gcc.cc |
433 |
-@@ -995,6 +995,12 @@ proper position among the other output files. */ |
434 |
+@@ -1001,6 +1001,12 @@ proper position among the other output files. */ |
435 |
#endif |
436 |
#endif |
437 |
|
438 |
@@ -15,7 +15,7 @@ On Hardened we add some options like -z now |
439 |
#ifdef ENABLE_DEFAULT_PIE |
440 |
#define PIE_SPEC "!no-pie" |
441 |
#define NO_FPIE1_SPEC "fno-pie" |
442 |
-@@ -1155,7 +1161,7 @@ proper position among the other output files. */ |
443 |
+@@ -1161,7 +1167,7 @@ proper position among the other output files. */ |
444 |
%(linker) " \ |
445 |
LINK_PLUGIN_SPEC \ |
446 |
"%{flto|flto=*:%<fcompare-debug*} \ |
447 |
|
448 |
diff --git a/12.0.0/gentoo/24_all_EXTRA_OPTIONS-fstack-clash-protection.patch b/12.0.0/gentoo/24_all_EXTRA_OPTIONS-fstack-clash-protection.patch |
449 |
index 5481721..e1b3c54 100644 |
450 |
--- a/12.0.0/gentoo/24_all_EXTRA_OPTIONS-fstack-clash-protection.patch |
451 |
+++ b/12.0.0/gentoo/24_all_EXTRA_OPTIONS-fstack-clash-protection.patch |
452 |
@@ -2,7 +2,7 @@ On Hardened we add some options like -fstack-clash-protection. |
453 |
|
454 |
--- a/gcc/common.opt |
455 |
+++ a/gcc/common.opt |
456 |
-@@ -2367,7 +2367,7 @@ Common Alias(fstack-check=, specific, no |
457 |
+@@ -2698,7 +2698,7 @@ Common Alias(fstack-check=, specific, no |
458 |
Insert stack checking code into the program. Same as -fstack-check=specific. |
459 |
|
460 |
fstack-clash-protection |
461 |
@@ -13,7 +13,7 @@ On Hardened we add some options like -fstack-clash-protection. |
462 |
|
463 |
--- a/gcc/defaults.h |
464 |
+++ b/gcc/defaults.h |
465 |
-@@ -1435,6 +1435,15 @@ see the files COPYING3 and COPYING.RUNTI |
466 |
+@@ -1425,6 +1425,15 @@ see the files COPYING3 and COPYING.RUNTI |
467 |
#define STACK_CHECK_MAX_VAR_SIZE (STACK_CHECK_MAX_FRAME_SIZE / 100) |
468 |
#endif |
469 |
|
470 |
@@ -31,7 +31,7 @@ On Hardened we add some options like -fstack-clash-protection. |
471 |
function descriptors instead. The value of this macro says how |
472 |
--- a/gcc/toplev.cc |
473 |
+++ b/gcc/toplev.cc |
474 |
-@@ -1682,6 +1682,10 @@ process_options (void) |
475 |
+@@ -1610,6 +1610,10 @@ process_options (void) |
476 |
|
477 |
/* -fstack-clash-protection is not currently supported on targets |
478 |
where the stack grows up. */ |
479 |
@@ -45,7 +45,7 @@ On Hardened we add some options like -fstack-clash-protection. |
480 |
|
481 |
--- a/libgcc/Makefile.in |
482 |
+++ b/libgcc/Makefile.in |
483 |
-@@ -225,7 +225,7 @@ endif |
484 |
+@@ -246,7 +246,7 @@ endif |
485 |
LIBGCC2_DEBUG_CFLAGS = -g |
486 |
LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \ |
487 |
$(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \ |
488 |
@@ -54,7 +54,7 @@ On Hardened we add some options like -fstack-clash-protection. |
489 |
$(INHIBIT_LIBC_CFLAGS) |
490 |
|
491 |
# Additional options to use when compiling libgcc2.a. |
492 |
-@@ -279,7 +290,7 @@ INTERNAL_CFLAGS = $(CFLAGS) $(LIBGCC2_CF |
493 |
+@@ -302,7 +302,7 @@ INTERNAL_CFLAGS = $(CFLAGS) $(LIBGCC2_CF |
494 |
$(NO_PIE_CFLAGS) -finhibit-size-directive -fno-inline -fno-exceptions \ |
495 |
-fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \ |
496 |
-fbuilding-libgcc -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \ |
497 |
|
498 |
diff --git a/12.0.0/gentoo/26_all_plugin-objdump.patch b/12.0.0/gentoo/26_all_plugin-objdump.patch |
499 |
index a9c33fd..059bca5 100644 |
500 |
--- a/12.0.0/gentoo/26_all_plugin-objdump.patch |
501 |
+++ b/12.0.0/gentoo/26_all_plugin-objdump.patch |
502 |
@@ -12,7 +12,7 @@ https://gcc.gnu.org/PR95648 |
503 |
else |
504 |
--- a/gcc/configure |
505 |
+++ b/gcc/configure |
506 |
-@@ -30386,7 +30386,7 @@ fi |
507 |
+@@ -32075,7 +32075,7 @@ fi |
508 |
;; |
509 |
*) |
510 |
if test x$build = x$host; then |
511 |
@@ -23,7 +23,7 @@ https://gcc.gnu.org/PR95648 |
512 |
else |
513 |
--- a/libcc1/configure |
514 |
+++ b/libcc1/configure |
515 |
-@@ -14819,7 +14819,7 @@ fi |
516 |
+@@ -15034,7 +15034,7 @@ fi |
517 |
;; |
518 |
*) |
519 |
if test x$build = x$host; then |
520 |
|
521 |
diff --git a/12.0.0/gentoo/README.history b/12.0.0/gentoo/README.history |
522 |
index 99f4801..8d046ab 100644 |
523 |
--- a/12.0.0/gentoo/README.history |
524 |
+++ b/12.0.0/gentoo/README.history |
525 |
@@ -1,3 +1,22 @@ |
526 |
+4 26 Mar 2022 |
527 |
+ |
528 |
+ U 01_all_default-fortify-source.patch |
529 |
+ U 03_all_default-warn-trampolines.patch |
530 |
+ U 05_all_alpha-mieee-default.patch |
531 |
+ U 06_all_ia64_note.GNU-stack.patch |
532 |
+ U 08_all_libiberty-pic.patch |
533 |
+ U 09_all_nopie-all-flags.patch |
534 |
+ U 10_all_sh-drop-sysroot-suffix.patch |
535 |
+ U 11_all_ia64-TEXTREL.patch |
536 |
+ U 12_all_disable-systemtap-switch.patch |
537 |
+ - 13_all_m68k-textrel-on-libgcc.patch |
538 |
+ U 14_all_respect-build-cxxflags.patch |
539 |
+ U 20_all_libstdcxx-no-vtv.patch |
540 |
+ U 22_all_default_ssp-buffer-size.patch |
541 |
+ U 23_all_EXTRA_OPTIONS-z-now.patch |
542 |
+ U 24_all_EXTRA_OPTIONS-fstack-clash-protection.patch |
543 |
+ U 26_all_plugin-objdump.patch |
544 |
+ |
545 |
3 5 Feb 2022 |
546 |
|
547 |
U 01_all_default-fortify-source.patch |