1 === 0342-ARC-Propagate-uncached-type-attribute-to-each-member.patch ===
2 From 62a715c706d8482560dadfa9ead0766f3c20e434 Mon Sep 17 00:00:00 2001
3 From: Claudiu Zissulescu <claziss@gmail.com>
4 Date: Mon, 27 Jan 2020 14:51:03 +0200
5 Subject: [PATCH 0342/2034] [ARC] Propagate uncached type attribute to each
8 Like `packed` type attribute, the ARC's `uncached` type attribute
9 needs to be propagated to each member of the struct where it is used,
10 triggering the .di flag for any access of the struct members. However,
11 any complex CFG manipulation may drop memory pointer type attributes,
12 leading to the impossibility to discriminate the direct accesses from
13 normal ones. To solve this issue, we will treat the direct memory
14 accessed specially via unspecs.
17 xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com>
18 Petro Karashchenko <petro.karashchenko@ring.com>
20 * config/arc/arc.c (arc_is_uncached_mem_p): Check struct
22 (prepare_move_operands): Generate special
23 unspec instruction for direct access.
24 (arc_isuncached_mem_p): Propagate uncached attribute to each
26 * config/arc/arc.md (VUNSPEC_ARC_LDDI): Define.
27 (VUNSPEC_ARC_STDI): Likewise.
28 (ALLI): New mode iterator.
29 (mALLI): New mode attribute.
30 (lddi): New instruction pattern.
32 (stdidi_split): Split instruction for architectures which are not
33 supporting ll64 option.
34 (lddidi_split): Likewise.
37 xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com>
38 Petro Karashchenko <petro.karashchenko@ring.com>
40 * gcc.target/arc/uncached-1.c: Update test.
41 * gcc.target/arc/uncached-2.c: Likewise.
42 * gcc.target/arc/uncached-3.c: New test.
43 * gcc.target/arc/uncached-4.c: Likewise.
44 * gcc.target/arc/uncached-5.c: Likewise.
45 * gcc.target/arc/uncached-6.c: Likewise.
46 * gcc.target/arc/uncached-7.c: Likewise.
47 * gcc.target/arc/uncached-8.c: Likewise.
48 * gcc.target/arc/arc.exp (ll64): New predicate.
50 gcc/ChangeLog | 19 ++++
51 gcc/config/arc/arc.c | 118 ++++++++++++++--------
52 gcc/config/arc/arc.md | 60 +++++++++++
53 gcc/testsuite/ChangeLog | 11 ++
54 gcc/testsuite/gcc.target/arc/arc.exp | 9 ++
55 gcc/testsuite/gcc.target/arc/uncached-1.c | 2 +-
56 gcc/testsuite/gcc.target/arc/uncached-2.c | 2 +-
57 gcc/testsuite/gcc.target/arc/uncached-3.c | 22 ++++
58 gcc/testsuite/gcc.target/arc/uncached-4.c | 42 ++++++++
59 gcc/testsuite/gcc.target/arc/uncached-5.c | 29 ++++++
60 gcc/testsuite/gcc.target/arc/uncached-6.c | 35 +++++++
61 gcc/testsuite/gcc.target/arc/uncached-7.c | 11 ++
62 gcc/testsuite/gcc.target/arc/uncached-8.c | 33 ++++++
63 13 files changed, 351 insertions(+), 42 deletions(-)
64 create mode 100644 gcc/testsuite/gcc.target/arc/uncached-3.c
65 create mode 100644 gcc/testsuite/gcc.target/arc/uncached-4.c
66 create mode 100644 gcc/testsuite/gcc.target/arc/uncached-5.c
67 create mode 100644 gcc/testsuite/gcc.target/arc/uncached-6.c
68 create mode 100644 gcc/testsuite/gcc.target/arc/uncached-7.c
69 create mode 100644 gcc/testsuite/gcc.target/arc/uncached-8.c
71 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
72 index 91dfcd71a4b..2cc61d68cf3 100644
78 diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
79 index 22475f2732e..e1a865f02e6 100644
80 --- a/gcc/config/arc/arc.c
81 +++ b/gcc/config/arc/arc.c
85 diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
86 index cf7aa8d83c9..46cb254ed28 100644
87 --- a/gcc/config/arc/arc.md
88 +++ b/gcc/config/arc/arc.md
92 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
93 index 16ddef07516..991934272e0 100644
94 --- a/gcc/testsuite/ChangeLog
95 +++ b/gcc/testsuite/ChangeLog
99 diff --git a/gcc/testsuite/gcc.target/arc/arc.exp b/gcc/testsuite/gcc.target/arc/arc.exp
100 index 8d1844edd22..501d4589c53 100644
101 --- a/gcc/testsuite/gcc.target/arc/arc.exp
102 +++ b/gcc/testsuite/gcc.target/arc/arc.exp
106 diff --git a/gcc/testsuite/gcc.target/arc/uncached-1.c b/gcc/testsuite/gcc.target/arc/uncached-1.c
107 index 7a6bade81c4..fa5ecb7b7d3 100644
108 --- a/gcc/testsuite/gcc.target/arc/uncached-1.c
109 +++ b/gcc/testsuite/gcc.target/arc/uncached-1.c
113 diff --git a/gcc/testsuite/gcc.target/arc/uncached-2.c b/gcc/testsuite/gcc.target/arc/uncached-2.c
114 index 89eed326e01..9d6bfbbb50e 100644
115 --- a/gcc/testsuite/gcc.target/arc/uncached-2.c
116 +++ b/gcc/testsuite/gcc.target/arc/uncached-2.c
120 diff --git a/gcc/testsuite/gcc.target/arc/uncached-3.c b/gcc/testsuite/gcc.target/arc/uncached-3.c
122 index 00000000000..f2a317b2816
124 +++ b/gcc/testsuite/gcc.target/arc/uncached-3.c
127 diff --git a/gcc/testsuite/gcc.target/arc/uncached-4.c b/gcc/testsuite/gcc.target/arc/uncached-4.c
129 index 00000000000..fecb16648b8
131 +++ b/gcc/testsuite/gcc.target/arc/uncached-4.c
134 diff --git a/gcc/testsuite/gcc.target/arc/uncached-5.c b/gcc/testsuite/gcc.target/arc/uncached-5.c
136 index 00000000000..4fe0464fdde
138 +++ b/gcc/testsuite/gcc.target/arc/uncached-5.c
141 diff --git a/gcc/testsuite/gcc.target/arc/uncached-6.c b/gcc/testsuite/gcc.target/arc/uncached-6.c
143 index 00000000000..581a9eccb3b
145 +++ b/gcc/testsuite/gcc.target/arc/uncached-6.c
148 diff --git a/gcc/testsuite/gcc.target/arc/uncached-7.c b/gcc/testsuite/gcc.target/arc/uncached-7.c
150 index 00000000000..4001b8bd821
152 +++ b/gcc/testsuite/gcc.target/arc/uncached-7.c
155 diff --git a/gcc/testsuite/gcc.target/arc/uncached-8.c b/gcc/testsuite/gcc.target/arc/uncached-8.c
157 index 00000000000..060229b11df
159 +++ b/gcc/testsuite/gcc.target/arc/uncached-8.c
165 === 0814-sra-Avoid-totally-scalarizing-overallping-field_decl.patch ===
166 From 665c5bad168ab63629b29ed2ce08ed042c088dc2 Mon Sep 17 00:00:00 2001
167 From: Martin Jambor <mjambor@suse.cz>
168 Date: Wed, 19 Feb 2020 11:08:40 +0100
169 Subject: [PATCH 0814/2034] sra: Avoid totally scalarizing overallping
170 field_decls (PR 93667)
172 [[no_unique_address]] C++ attribute can cause two fields of a
173 RECORD_TYPE overlap, which currently confuses the totally scalarizing
174 code into creating invalid access tree. For GCC 10, I'd like to
175 simply disable total scalarization of types where this happens.
177 For GCC 11 I'll write down a TODO item to enable total scalarization
178 of cases like this where the problematic fields are basically empty -
179 despite having a non-zero size - i.e. when they are just RECORD_TYPEs
180 without any data fields.
182 2020-02-19 Martin Jambor <mjambor@suse.cz>
186 PR tree-optimization/93667
187 * tree-sra.c (scalarizable_type_p): Return false if record fields
188 do not follow wach other.
192 PR tree-optimization/93667
193 * g++.dg/tree-ssa/pr93667.C: New test.
195 gcc/ChangeLog | 6 ++++++
196 gcc/testsuite/ChangeLog | 5 +++++
197 gcc/testsuite/g++.dg/tree-ssa/pr93667.C | 11 +++++++++++
198 gcc/tree-sra.c | 14 ++++++++++++++
199 4 files changed, 36 insertions(+)
200 create mode 100644 gcc/testsuite/g++.dg/tree-ssa/pr93667.C
202 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
203 index 77c2a9ad810..6b53f9a2f07 100644
209 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
210 index 9b4fe11a6f6..8033fa0a3bb 100644
211 --- a/gcc/testsuite/ChangeLog
212 +++ b/gcc/testsuite/ChangeLog
216 diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr93667.C b/gcc/testsuite/g++.dg/tree-ssa/pr93667.C
218 index 00000000000..d875f53d9ec
220 +++ b/gcc/testsuite/g++.dg/tree-ssa/pr93667.C
223 diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
224 index 0cfac0a8192..4c7d651e6b9 100644
233 === 0413-SRA-Total-scalarization-after-access-propagation-PR9.patch ===
234 From 636e80eea24b780f1d5f4c14c58fc00001df8508 Mon Sep 17 00:00:00 2001
235 From: Martin Jambor <mjambor@suse.cz>
236 Date: Wed, 29 Jan 2020 13:13:13 +0100
237 Subject: [PATCH 0413/2034] SRA: Total scalarization after access propagation
240 2020-01-29 Martin Jambor <mjambor@suse.cz>
242 PR tree-optimization/92706
243 * tree-sra.c (struct access): Adjust comment of
244 grp_total_scalarization.
245 (find_access_in_subtree): Look for single children spanning an entire
247 (scalarizable_type_p): Allow register accesses, adjust callers.
248 (completely_scalarize): Remove function.
249 (scalarize_elem): Likewise.
250 (create_total_scalarization_access): Likewise.
251 (sort_and_splice_var_accesses): Do not track total scalarization
253 (analyze_access_subtree): New parameter totally, adjust to new meaning
254 of grp_total_scalarization.
255 (analyze_access_trees): Pass new parameter to analyze_access_subtree.
256 (can_totally_scalarize_forest_p): New function.
257 (create_total_scalarization_access): Likewise.
258 (create_total_access_and_reshape): Likewise.
259 (total_should_skip_creating_access): Likewise.
260 (totally_scalarize_subtree): Likewise.
261 (analyze_all_variable_accesses): Perform total scalarization after
262 subaccess propagation using the new functions above.
263 (initialize_constant_pool_replacements): Output initializers by
264 traversing the access tree.
267 * gcc.dg/tree-ssa/pr92706-2.c: New test.
268 * gcc.dg/guality/pr59776.c: Xfail tests for s2.g.
271 gcc/testsuite/ChangeLog | 6 +
272 gcc/testsuite/gcc.dg/guality/pr59776.c | 4 +-
273 gcc/testsuite/gcc.dg/tree-ssa/pr92706-2.c | 19 +
274 gcc/tree-sra.c | 666 ++++++++++++++++------
275 5 files changed, 537 insertions(+), 184 deletions(-)
276 create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr92706-2.c
278 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
279 index 16247a59304..61da54df346 100644
285 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
286 index 05518848829..38758207989 100644
287 --- a/gcc/testsuite/ChangeLog
288 +++ b/gcc/testsuite/ChangeLog
292 diff --git a/gcc/testsuite/gcc.dg/guality/pr59776.c b/gcc/testsuite/gcc.dg/guality/pr59776.c
293 index 382abb622bb..6c1c8165b70 100644
294 --- a/gcc/testsuite/gcc.dg/guality/pr59776.c
295 +++ b/gcc/testsuite/gcc.dg/guality/pr59776.c
299 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr92706-2.c b/gcc/testsuite/gcc.dg/tree-ssa/pr92706-2.c
301 index 00000000000..37ab9765db0
303 +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr92706-2.c
306 diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
307 index 36106fecaf1..2b0849858de 100644
316 === 0334-Do-not-generate-a-unique-fnname-for-resolver.patch ===
317 From c2bd2b4664be8b73f8fd58a64dec1e93871797cc Mon Sep 17 00:00:00 2001
318 From: Martin Liska <mliska@suse.cz>
319 Date: Mon, 27 Jan 2020 10:48:18 +0100
320 Subject: [PATCH 0334/2034] Do not generate a unique fnname for resolver.
323 * config/i386/i386-features.c (make_resolver_func):
324 Align the code with ppc64 target implementation.
325 Do not generate a unique name for resolver function.
327 * gcc.target/i386/pr81213.c: Adjust to not expect
328 a globally unique name.
330 gcc/ChangeLog | 7 +++++++
331 gcc/config/i386/i386-features.c | 19 ++++---------------
332 gcc/testsuite/ChangeLog | 6 ++++++
333 gcc/testsuite/gcc.target/i386/pr81213.c | 4 ++--
334 4 files changed, 19 insertions(+), 17 deletions(-)
336 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
337 index 45075840824..59806baa757 100644
343 diff --git a/gcc/config/i386/i386-features.c b/gcc/config/i386/i386-features.c
344 index e580b26b995..b49e6f8d408 100644
345 --- a/gcc/config/i386/i386-features.c
346 +++ b/gcc/config/i386/i386-features.c
350 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
351 index 2de060843d9..22a37dd1ab2 100644
352 --- a/gcc/testsuite/ChangeLog
353 +++ b/gcc/testsuite/ChangeLog
357 diff --git a/gcc/testsuite/gcc.target/i386/pr81213.c b/gcc/testsuite/gcc.target/i386/pr81213.c
358 index 13e15d5fef0..89c47529861 100644
359 --- a/gcc/testsuite/gcc.target/i386/pr81213.c
360 +++ b/gcc/testsuite/gcc.target/i386/pr81213.c
367 === 1850-List-valid-pairs-for-new-and-delete-operators.patch ===
368 From d7a65edb629a010f7ef907d457343abcb569fab7 Mon Sep 17 00:00:00 2001
369 From: Martin Liska <mliska@suse.cz>
370 Date: Thu, 16 Apr 2020 15:39:22 +0200
371 Subject: [PATCH 1850/2034] List valid pairs for new and delete operators.
374 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
375 DECL_IS_REPLACEABLE_OPERATOR during cloning.
376 * tree-ssa-dce.c (valid_new_delete_pair_p): New function.
377 (propagate_necessity): Check operator names.
380 * g++.dg/pr94314.C: Do not use dg-additional-options
381 and remove not needed stdio.h include.
382 * g++.dg/pr94314-2.C: Likewise.
383 * g++.dg/pr94314-3.C: Likewise.
384 * g++.dg/pr94314-4.C: New test.
386 Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
388 gcc/ChangeLog | 9 +++
389 gcc/cgraphclones.c | 2 +
390 gcc/testsuite/ChangeLog | 10 ++++
391 gcc/testsuite/g++.dg/pr94314-2.C | 5 +-
392 gcc/testsuite/g++.dg/pr94314-3.C | 5 +-
393 gcc/testsuite/g++.dg/pr94314-4.C | 30 ++++++++++
394 gcc/testsuite/g++.dg/pr94314.C | 5 +-
395 gcc/tree-ssa-dce.c | 98 ++++++++++++++++++++++++++++----
396 8 files changed, 142 insertions(+), 22 deletions(-)
397 create mode 100644 gcc/testsuite/g++.dg/pr94314-4.C
399 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
400 index 74dbeeb44c6..9e499ec9c86 100644
406 diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
407 index c73b8f810f0..8f541a28b6e 100644
408 --- a/gcc/cgraphclones.c
409 +++ b/gcc/cgraphclones.c
413 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
414 index 756f1d759e6..94d2312022d 100644
415 --- a/gcc/testsuite/ChangeLog
416 +++ b/gcc/testsuite/ChangeLog
420 diff --git a/gcc/testsuite/g++.dg/pr94314-2.C b/gcc/testsuite/g++.dg/pr94314-2.C
421 index 36b93ed6d4d..998ce601767 100644
422 --- a/gcc/testsuite/g++.dg/pr94314-2.C
423 +++ b/gcc/testsuite/g++.dg/pr94314-2.C
427 diff --git a/gcc/testsuite/g++.dg/pr94314-3.C b/gcc/testsuite/g++.dg/pr94314-3.C
428 index 575ba9d8ad8..846a5d6a3d8 100644
429 --- a/gcc/testsuite/g++.dg/pr94314-3.C
430 +++ b/gcc/testsuite/g++.dg/pr94314-3.C
434 diff --git a/gcc/testsuite/g++.dg/pr94314-4.C b/gcc/testsuite/g++.dg/pr94314-4.C
436 index 00000000000..d097f29d4ad
438 +++ b/gcc/testsuite/g++.dg/pr94314-4.C
441 diff --git a/gcc/testsuite/g++.dg/pr94314.C b/gcc/testsuite/g++.dg/pr94314.C
442 index 86e651d10ba..4e5ae122e9f 100644
443 --- a/gcc/testsuite/g++.dg/pr94314.C
444 +++ b/gcc/testsuite/g++.dg/pr94314.C
448 diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c
449 index fd5f24c746c..757cfad5b5e 100644
450 --- a/gcc/tree-ssa-dce.c
451 +++ b/gcc/tree-ssa-dce.c
458 === 0085-Daily-bump.patch ===
459 From 03647d2e26176bb874460b67deab0c30aa715d59 Mon Sep 17 00:00:00 2001
460 From: GCC Administrator <gccadmin@gcc.gnu.org>
461 Date: Thu, 16 Jan 2020 00:16:32 +0000
462 Subject: [PATCH 0085/2034] Daily bump.
466 1 file changed, 1 insertion(+), 1 deletion(-)
468 diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
469 index ba948c594d4..62611957f86 100644
478 === 0040-PR90916-ICE-in-retrieve-specialization.patch ===
479 From a5a3c2dcf73aa245b0eb6f6cf56c4d03ab6056da Mon Sep 17 00:00:00 2001
480 From: Nathan Sidwell <nathans@fb.com>
481 Date: Tue, 14 Jan 2020 11:12:40 -0800
482 Subject: [PATCH 0040/2034] [PR90916] ICE in retrieve specialization
484 https://gcc.gnu.org/ml/gcc-patches/2020-01/msg00809.html
486 * pt.c (retrieve_specialization): Get the TI from the decl or the
487 classtype as appropriate.
489 gcc/cp/ChangeLog | 6 ++++++
490 gcc/cp/pt.c | 15 ++++++++++-----
491 gcc/testsuite/g++.dg/template/pr90916.C | 8 ++++++++
492 3 files changed, 24 insertions(+), 5 deletions(-)
493 create mode 100644 gcc/testsuite/g++.dg/template/pr90916.C
495 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
496 index 004ce0fdcdf..3cc7c48b490 100644
497 --- a/gcc/cp/ChangeLog
498 +++ b/gcc/cp/ChangeLog
502 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
503 index fa82ecad233..4fdc74f9ca8 100644
509 diff --git a/gcc/testsuite/g++.dg/template/pr90916.C b/gcc/testsuite/g++.dg/template/pr90916.C
511 index 00000000000..bdb7e7b58ef
513 +++ b/gcc/testsuite/g++.dg/template/pr90916.C
519 === 2004-amdgcn-Check-HSA-return-codes-PR94629.patch ===
520 From 966de09be91c639d66d252c9ae6ab8da5ebfca18 Mon Sep 17 00:00:00 2001
521 From: Andrew Stubbs <ams@codesourcery.com>
522 Date: Mon, 20 Apr 2020 15:25:31 +0100
523 Subject: [PATCH 2004/2034] amdgcn: Check HSA return codes [PR94629]
525 Ensure that the returned status values are not ignored. The old code was
526 not broken, but this is both safer and satisfies static analysis.
528 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
533 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
535 (GOMP_OFFLOAD_init_device): Check return values from both calls to
536 hsa_agent_iterate_regions.
538 libgomp/ChangeLog | 9 +++++++++
539 libgomp/plugin/plugin-gcn.c | 8 ++++++++
540 2 files changed, 17 insertions(+)
542 diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
543 index c524abbbfb6..ee1764d4ae3 100644
544 --- a/libgomp/ChangeLog
545 +++ b/libgomp/ChangeLog
549 diff --git a/libgomp/plugin/plugin-gcn.c b/libgomp/plugin/plugin-gcn.c
550 index dc72c90962c..4c6a4c03b6e 100644
551 --- a/libgomp/plugin/plugin-gcn.c
552 +++ b/libgomp/plugin/plugin-gcn.c
559 === 0198-Change-recursive-prepare_block_for_update-to-use-a-w.patch ===
560 From 6fc2f9337311c11dabcc464c808cbef205f17a52 Mon Sep 17 00:00:00 2001
561 From: Andrew Pinski <apinski@marvell.com>
562 Date: Tue, 21 Jan 2020 08:34:42 +0000
563 Subject: [PATCH 0198/2034] Change recursive prepare_block_for_update to use a
566 Reported as PR 93321, prepare_block_for_update with some huge
567 recusive inlining can go past the stack limit. Transforming this
568 recursive into worklist improves the stack usage here and we no
569 longer seg fault for the testcase. Note the order we walk the siblings
574 * tree-into-ssa.c (prepare_block_for_update_1): Split out from ...
575 (prepare_block_for_update): This. Use a worklist instead of recursing.
577 gcc/ChangeLog | 8 ++++++
578 gcc/tree-into-ssa.c | 59 ++++++++++++++++++++++++++++++++++++---------
579 2 files changed, 55 insertions(+), 12 deletions(-)
581 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
582 index 8c17e5992d2..262f0d6506f 100644
588 diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c
589 index c27bf2ce121..6528acac31a 100644
590 --- a/gcc/tree-into-ssa.c
591 +++ b/gcc/tree-into-ssa.c
598 === 0184-PR-80005-Fix-__has_include.patch ===
599 From ad1a3914ae8d67c94b0d2428e3f9672e7db491a1 Mon Sep 17 00:00:00 2001
600 From: Nathan Sidwell <nathan@acm.org>
601 Date: Mon, 20 Jan 2020 05:39:59 -0800
602 Subject: [PATCH 0184/2034] [PR 80005] Fix __has_include
604 __has_include is funky in that it is macro-like from the POV of #ifdef and
605 friends, but lexes its parenthesize argument #include-like. We were
606 failing the second part of that, because we used a forwarding macro to an
607 internal name, and hence always lexed the argument in macro-parameter
608 context. We componded that by not setting the right flag when lexing, so
609 it didn't even know. Mostly users got lucky.
611 This reimplements the handline.
612 1) Remove the forwarding, but declare object-like macros that
613 expand to themselves. This satisfies the #ifdef requirement
615 2) Correctly set angled_brackets when lexing the parameter. This tells
616 the lexer (a) <...> is a header name and (b) "..." is too (not a string).
618 3) Remove the in__has_include lexer state, just tell find_file that that's
619 what's happenning, so it doesn't emit an error.
621 We lose the (undocumented) ability to #undef __has_include. That may well
622 have been an accident of implementation. There are no tests for it.
624 We gain __has_include behaviour for all users of the preprocessors -- not
625 just the C-family ones that defined a forwarding macro.
628 PR preprocessor/80005
629 * include/cpplib.h (BT_HAS_ATTRIBUTE): Fix comment.
630 * internal.h (struct lexer_state): Delete in__has_include field.
631 (struct spec_nodes): Rename n__has_include{,_next}__ fields.
632 (_cpp_defined_macro_p): New.
633 (_cpp_find_file): Add has_include parm.
634 * directives.c (lex_macro_node): Combine defined,
635 __has_inline{,_next} checking.
636 (do_ifdef, do_ifndef): Use _cpp_defined_macro_p.
637 (_cpp_init_directives): Refactor.
638 * expr.c (parse_defined): Use _cpp_defined_macro_p.
639 (eval_token): Adjust parse_has_include calls.
640 (parse_has_include): Add OP parameter. Reimplement.
641 * files.c (_cpp_find_file): Add HAS_INCLUDE parm. Use it to
642 inhibit error message.
643 (_cpp_stack_include): Adjust _cpp_find_file call.
644 (_cpp_fake_include, _cpp_compare_file_date): Likewise.
645 (open_file_failed): Remove in__has_include check.
646 (_cpp_has_header): Adjust _cpp_find_file call.
647 * identifiers.c (_cpp_init_hashtable): Don't init
648 __has_include{,_next} here ...
649 * init.c (cpp_init_builtins): ... init them here. Define as
651 (cpp_read_main_file): Adjust _cpp_find_file call.
652 * pch.c (cpp_read_state): Adjust __has_include{,_next} access.
653 * traditional.c (_cpp_scan_out_locgical_line): Likewise.
656 PR preprocessor/80005
657 * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}.
660 PR preprocessor/80005
661 * g++.dg/cpp1y/feat-cxx14.C: Adjust.
662 * g++.dg/cpp1z/feat-cxx17.C: Adjust.
663 * g++.dg/cpp2a/feat-cxx2a.C: Adjust.
664 * g++.dg/cpp/pr80005.C: New.
666 gcc/c-family/ChangeLog | 5 ++++
667 gcc/c-family/c-cppbuiltin.c | 6 -----
668 gcc/testsuite/ChangeLog | 8 +++++++
669 gcc/testsuite/g++.dg/cpp/pr80005.C | 24 +++++++++++++++++++
670 gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C | 10 ++------
671 gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C | 10 ++------
672 gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C | 10 ++------
673 libcpp/ChangeLog | 29 +++++++++++++++++++++-
674 libcpp/directives.c | 29 ++++++++--------------
675 libcpp/expr.c | 32 ++++++++++++-------------
676 libcpp/files.c | 27 +++++++++++----------
677 libcpp/identifiers.c | 3 +--
678 libcpp/include/cpplib.h | 2 +-
679 libcpp/init.c | 14 ++++++++++-
680 libcpp/internal.h | 20 +++++++++++-----
681 libcpp/pch.c | 4 ++--
682 libcpp/traditional.c | 8 +++----
683 17 files changed, 146 insertions(+), 95 deletions(-)
684 create mode 100644 gcc/testsuite/g++.dg/cpp/pr80005.C
686 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
687 index 09ba2c8b40f..fdddb98a74d 100644
688 --- a/gcc/c-family/ChangeLog
689 +++ b/gcc/c-family/ChangeLog
693 diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c
694 index a6308921dc9..70a12055e27 100644
695 --- a/gcc/c-family/c-cppbuiltin.c
696 +++ b/gcc/c-family/c-cppbuiltin.c
700 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
701 index a526e32ac89..67d5f2e9e28 100644
702 --- a/gcc/testsuite/ChangeLog
703 +++ b/gcc/testsuite/ChangeLog
707 diff --git a/gcc/testsuite/g++.dg/cpp/pr80005.C b/gcc/testsuite/g++.dg/cpp/pr80005.C
709 index 00000000000..cc752616782
711 +++ b/gcc/testsuite/g++.dg/cpp/pr80005.C
714 diff --git a/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C b/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
715 index a2a93f437b3..a78b6a36f36 100644
716 --- a/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
717 +++ b/gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
721 diff --git a/gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C b/gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
722 index 55e56a06fe8..e6f456b2415 100644
723 --- a/gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
724 +++ b/gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
728 diff --git a/gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C b/gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C
729 index dd15cd6af3c..82fd602f9f1 100644
730 --- a/gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C
731 +++ b/gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C
735 diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
736 index 3249b93fe88..27a841bbdce 100644
737 --- a/libcpp/ChangeLog
738 +++ b/libcpp/ChangeLog
742 diff --git a/libcpp/directives.c b/libcpp/directives.c
743 index 983206a5838..10735c8c668 100644
744 --- a/libcpp/directives.c
745 +++ b/libcpp/directives.c
749 diff --git a/libcpp/expr.c b/libcpp/expr.c
750 index 317faf50208..df21a4b9fb9 100644
756 diff --git a/libcpp/files.c b/libcpp/files.c
757 index 7abae7ae6ec..260e787c329 100644
763 diff --git a/libcpp/identifiers.c b/libcpp/identifiers.c
764 index 562d8fee3b5..9627e1bf4b0 100644
765 --- a/libcpp/identifiers.c
766 +++ b/libcpp/identifiers.c
770 diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
771 index 1c26c365347..56cbbd82750 100644
772 --- a/libcpp/include/cpplib.h
773 +++ b/libcpp/include/cpplib.h
777 diff --git a/libcpp/init.c b/libcpp/init.c
778 index 2b4923e1451..e798140ef8b 100644
784 diff --git a/libcpp/internal.h b/libcpp/internal.h
785 index 3623baf8191..5453c3bff85 100644
786 --- a/libcpp/internal.h
787 +++ b/libcpp/internal.h
791 diff --git a/libcpp/pch.c b/libcpp/pch.c
792 index 607f805bebe..e631050936b 100644
798 diff --git a/libcpp/traditional.c b/libcpp/traditional.c
799 index 21c63b47dd5..ff06d31a897 100644
800 --- a/libcpp/traditional.c
801 +++ b/libcpp/traditional.c
808 === long-lines.patch ===
809 From eb7c7c524556df5364f03adc20f6a9db20858484 Mon Sep 17 00:00:00 2001
810 From: Jakub Jelinek <jakub@redhat.com>
811 Date: Mon, 13 Jan 2020 14:14:57 +0100
812 Subject: [PATCH 0004/2034] tree-opt: Fix bootstrap failure in
813 tree-ssa-forwprop.c some more PR90838
815 2020-01-13 Jakub Jelinek <jakub@redhat.com>
817 PR tree-optimization/90838
818 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
819 SCALAR_INT_TYPE_MODE directly in CTZ_DEFINED_VALUE_AT_ZERO macro and and SCALAR_INT_TYPE_MODE directly in and so
820 argument rather than to initialize temporary for targets that
821 don't use the mode argument at all. Initialize ctzval to avoid
824 gcc/ChangeLog | 9 +++++++++
825 gcc/tree-ssa-forwprop.c | 6 +++---
826 2 files changed, 12 insertions(+), 3 deletions(-)
828 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
829 index a195863212e..f7df07343d1 100644
835 diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c
836 index aac31d02b6c..56c470f6ecf 100644
837 --- a/gcc/tree-ssa-forwprop.c
838 +++ b/gcc/tree-ssa-forwprop.c
845 === 0735-PR-87488-Add-with-diagnostics-urls-configuration-opt.patch ===
846 From 458c8d6459c4005fc9886b6e25d168a6535ac415 Mon Sep 17 00:00:00 2001
847 From: Bernd Edlinger <bernd.edlinger@hotmail.de>
848 Date: Wed, 29 Jan 2020 15:31:10 +0100
849 Subject: [PATCH 0735/2034] PR 87488: Add --with-diagnostics-urls configuration
852 2020-02-15 David Malcolm <dmalcolm@redhat.com>
853 Bernd Edlinger <bernd.edlinger@hotmail.de>
857 * config.in (DIAGNOSTICS_URLS_DEFAULT): New define.
858 * configure.ac (--with-diagnostics-urls): New configuration
859 option, based on --with-diagnostics-color.
860 (DIAGNOSTICS_URLS_DEFAULT): New define.
861 * config.h: Regenerate.
862 * configure: Regenerate.
863 * diagnostic.c (diagnostic_urls_init): Handle -1 for
864 DIAGNOSTICS_URLS_DEFAULT from configure-time
865 --with-diagnostics-urls=auto-if-env by querying for a GCC_URLS
866 and TERM_URLS environment variable.
867 * diagnostic-url.h (diagnostic_url_format): New enum type.
868 (diagnostic_urls_enabled_p): rename to...
869 (determine_url_format): ... this, and change return type.
870 * diagnostic-color.c (parse_env_vars_for_urls): New helper function.
871 (auto_enable_urls): Disable URLs on xfce4-terminal, gnome-terminal,
872 the linux console, and mingw.
873 (diagnostic_urls_enabled_p): rename to...
874 (determine_url_format): ... this, and adjust.
875 * pretty-print.h (pretty_printer::show_urls): rename to...
876 (pretty_printer::url_format): ... this, and change to enum.
877 * pretty-print.c (pretty_printer::pretty_printer,
878 pp_begin_url, pp_end_url, test_urls): Adjust.
879 * doc/install.texi (--with-diagnostics-urls): Document the new
880 configuration option.
881 (--with-diagnostics-color): Document the existing interaction
882 with GCC_COLORS better.
883 * doc/invoke.texi (-fdiagnostics-urls): Add GCC_URLS and TERM_URLS
884 vindex reference. Update description of defaults based on the above.
885 (-fdiagnostics-color): Update description of how -fdiagnostics-color
886 interacts with GCC_COLORS.
888 gcc/ChangeLog | 36 +++++++++++++++
889 gcc/config.in | 6 +++
890 gcc/configure | 41 ++++++++++++++++-
891 gcc/configure.ac | 28 ++++++++++++
892 gcc/diagnostic-color.c | 101 ++++++++++++++++++++++++++++++++++++++---
893 gcc/diagnostic-url.h | 18 +++++++-
894 gcc/diagnostic.c | 21 +++++++--
895 gcc/doc/install.texi | 15 ++++--
896 gcc/doc/invoke.texi | 39 ++++++++++++++--
897 gcc/pretty-print.c | 44 +++++++++++++++---
898 gcc/pretty-print.h | 5 +-
899 11 files changed, 328 insertions(+), 26 deletions(-)
901 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
902 index e6eb6ab4c21..22f990a3088 100644
908 diff --git a/gcc/config.in b/gcc/config.in
909 index 48292861842..01fb18dbbb5 100644
915 diff --git a/gcc/configure b/gcc/configure
916 index 5fa565a40a4..f55cdb8c77f 100755
922 diff --git a/gcc/configure.ac b/gcc/configure.ac
923 index 671b9a67d81..0e6e475950d 100644
924 --- a/gcc/configure.ac
925 +++ b/gcc/configure.ac
929 diff --git a/gcc/diagnostic-color.c b/gcc/diagnostic-color.c
930 index d5547952921..b1baded2c9e 100644
931 --- a/gcc/diagnostic-color.c
932 +++ b/gcc/diagnostic-color.c
936 diff --git a/gcc/diagnostic-url.h b/gcc/diagnostic-url.h
937 index 6be056941f1..d28460b928b 100644
938 --- a/gcc/diagnostic-url.h
939 +++ b/gcc/diagnostic-url.h
943 diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
944 index 3386f070256..e4a08f76def 100644
945 --- a/gcc/diagnostic.c
946 +++ b/gcc/diagnostic.c
950 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
951 index 6ffafacff50..8ddebbb6267 100644
952 --- a/gcc/doc/install.texi
953 +++ b/gcc/doc/install.texi
957 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
958 index bd9ecebf103..597151670be 100644
959 --- a/gcc/doc/invoke.texi
960 +++ b/gcc/doc/invoke.texi
964 diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c
965 index 817c1059e08..dde138b0533 100644
966 --- a/gcc/pretty-print.c
967 +++ b/gcc/pretty-print.c
971 diff --git a/gcc/pretty-print.h b/gcc/pretty-print.h
972 index 001468c966e..22892f12ab7 100644
973 --- a/gcc/pretty-print.h
974 +++ b/gcc/pretty-print.h
981 === 0031-Fix-typo-and-avoid-possible-memory-leak-in-average_n.patch ===
982 From b38e86ddb7a9b6d7e87d7cc0b23983d027fcbd96 Mon Sep 17 00:00:00 2001
983 From: Kewen Lin <linkw@linux.ibm.com>
984 Date: Tue, 14 Jan 2020 02:34:10 -0600
985 Subject: [PATCH 0031/2034] Fix typo and avoid possible memory leak in
986 average_num_loop_insns
988 Function average_num_loop_insns forgets to free loop body in early
989 return. Besides, overflow comparison checks 1000000 (e6) but the
990 return value is 100000 (e5), fix this typo.
994 2020-01-14 Kewen Lin <linkw@gcc.gnu.org>
996 * cfgloopanal.c (average_num_loop_insns): Free bbs when early
997 return, fix typo on return value.
999 gcc/ChangeLog | 5 +++++
1000 gcc/cfgloopanal.c | 5 ++++-
1001 2 files changed, 9 insertions(+), 1 deletion(-)
1003 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
1004 index 07e5bebe909..f3301b16464 100644
1010 diff --git a/gcc/cfgloopanal.c b/gcc/cfgloopanal.c
1011 index 392b1c337c4..0b33e8272a7 100644
1012 --- a/gcc/cfgloopanal.c
1013 +++ b/gcc/cfgloopanal.c
1020 === 0735-PR-87488-Add-with-diagnostics-urls-configuration-opt.patch ===
1021 From 458c8d6459c4005fc9886b6e25d168a6535ac415 Mon Sep 17 00:00:00 2001
1022 From: Bernd Edlinger <bernd.edlinger@hotmail.de>
1023 Date: Wed, 29 Jan 2020 15:31:10 +0100
1024 Subject: [PATCH 0735/2034] PR 87488: Add --with-diagnostics-urls configuration
1027 2020-02-15 David Malcolm <dmalcolm@redhat.com>
1028 Bernd Edlinger <bernd.edlinger@hotmail.de>
1032 * config.in (DIAGNOSTICS_URLS_DEFAULT): New define.
1033 * configure.ac (--with-diagnostics-urls): New configuration
1034 option, based on --with-diagnostics-color.
1035 (DIAGNOSTICS_URLS_DEFAULT): New define.
1036 * config.h: Regenerate.
1037 * configure: Regenerate.
1038 * diagnostic.c (diagnostic_urls_init): Handle -1 for
1039 DIAGNOSTICS_URLS_DEFAULT from configure-time
1040 --with-diagnostics-urls=auto-if-env by querying for a GCC_URLS
1041 and TERM_URLS environment variable.
1042 * diagnostic-url.h (diagnostic_url_format): New enum type.
1043 (diagnostic_urls_enabled_p): rename to...
1044 (determine_url_format): ... this, and change return type.
1045 * diagnostic-color.c (parse_env_vars_for_urls): New helper function.
1046 (auto_enable_urls): Disable URLs on xfce4-terminal, gnome-terminal,
1047 the linux console, and mingw.
1048 (diagnostic_urls_enabled_p): rename to...
1049 (determine_url_format): ... this, and adjust.
1050 * pretty-print.h (pretty_printer::show_urls): rename to...
1051 (pretty_printer::url_format): ... this, and change to enum.
1052 * pretty-print.c (pretty_printer::pretty_printer,
1053 pp_begin_url, pp_end_url, test_urls): Adjust.
1054 * doc/install.texi (--with-diagnostics-urls): Document the new
1055 configuration option.
1056 (--with-diagnostics-color): Document the existing interaction
1057 with GCC_COLORS better.
1058 * doc/invoke.texi (-fdiagnostics-urls): Add GCC_URLS and TERM_URLS
1059 vindex reference. Update description of defaults based on the above.
1060 (-fdiagnostics-color): Update description of how -fdiagnostics-color
1061 interacts with GCC_COLORS.
1063 gcc/ChangeLog | 36 +++++++++++++++
1064 gcc/config.in | 6 +++
1065 gcc/configure | 41 ++++++++++++++++-
1066 gcc/configure.ac | 28 ++++++++++++
1067 gcc/diagnostic-color.c | 101 ++++++++++++++++++++++++++++++++++++++---
1068 gcc/diagnostic-url.h | 18 +++++++-
1069 gcc/diagnostic.c | 21 +++++++--
1070 gcc/doc/install.texi | 15 ++++--
1071 gcc/doc/invoke.texi | 39 ++++++++++++++--
1072 gcc/pretty-print.c | 44 +++++++++++++++---
1073 gcc/pretty-print.h | 5 +-
1074 11 files changed, 328 insertions(+), 26 deletions(-)
1076 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
1077 index e6eb6ab4c21..22f990a3088 100644
1083 diff --git a/gcc/config.in b/gcc/config.in
1084 index 48292861842..01fb18dbbb5 100644
1090 diff --git a/gcc/configure b/gcc/configure
1091 index 5fa565a40a4..f55cdb8c77f 100755
1097 diff --git a/gcc/configure.ac b/gcc/configure.ac
1098 index 671b9a67d81..0e6e475950d 100644
1099 --- a/gcc/configure.ac
1100 +++ b/gcc/configure.ac
1104 diff --git a/gcc/diagnostic-color.c b/gcc/diagnostic-color.c
1105 index d5547952921..b1baded2c9e 100644
1106 --- a/gcc/diagnostic-color.c
1107 +++ b/gcc/diagnostic-color.c
1111 diff --git a/gcc/diagnostic-url.h b/gcc/diagnostic-url.h
1112 index 6be056941f1..d28460b928b 100644
1113 --- a/gcc/diagnostic-url.h
1114 +++ b/gcc/diagnostic-url.h
1118 diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
1119 index 3386f070256..e4a08f76def 100644
1120 --- a/gcc/diagnostic.c
1121 +++ b/gcc/diagnostic.c
1125 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
1126 index 6ffafacff50..8ddebbb6267 100644
1127 --- a/gcc/doc/install.texi
1128 +++ b/gcc/doc/install.texi
1132 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
1133 index bd9ecebf103..597151670be 100644
1134 --- a/gcc/doc/invoke.texi
1135 +++ b/gcc/doc/invoke.texi
1139 diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c
1140 index 817c1059e08..dde138b0533 100644
1141 --- a/gcc/pretty-print.c
1142 +++ b/gcc/pretty-print.c
1146 diff --git a/gcc/pretty-print.h b/gcc/pretty-print.h
1147 index 001468c966e..22892f12ab7 100644
1148 --- a/gcc/pretty-print.h
1149 +++ b/gcc/pretty-print.h
1156 === co-authored-by.patch ===
1157 From d7a65edb629a010f7ef907d457343abcb569fab7 Mon Sep 17 00:00:00 2001
1158 From: Martin Liska <mliska@suse.cz>
1159 Date: Thu, 16 Apr 2020 15:39:22 +0200
1160 Subject: [PATCH 1850/2034] List valid pairs for new and delete operators.
1163 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
1164 DECL_IS_REPLACEABLE_OPERATOR during cloning.
1165 * tree-ssa-dce.c (valid_new_delete_pair_p): New function.
1166 (propagate_necessity): Check operator names.
1169 * g++.dg/pr94314.C: Do not use dg-additional-options
1170 and remove not needed stdio.h include.
1171 * g++.dg/pr94314-2.C: Likewise.
1172 * g++.dg/pr94314-3.C: Likewise.
1173 * g++.dg/pr94314-4.C: New test.
1175 co-authored-By: Jakub Jelinek <jakub@redhat.com>
1176 Co-Authored-by: John Miller <jm@example.com>
1177 co-authored-by: John Miller2 <jm2@example.com>
1179 gcc/ChangeLog | 9 +++
1180 gcc/cgraphclones.c | 2 +
1181 gcc/testsuite/ChangeLog | 10 ++++
1182 gcc/testsuite/g++.dg/pr94314-2.C | 5 +-
1183 gcc/testsuite/g++.dg/pr94314-3.C | 5 +-
1184 gcc/testsuite/g++.dg/pr94314-4.C | 30 ++++++++++
1185 gcc/testsuite/g++.dg/pr94314.C | 5 +-
1186 gcc/tree-ssa-dce.c | 98 ++++++++++++++++++++++++++++----
1187 8 files changed, 142 insertions(+), 22 deletions(-)
1188 create mode 100644 gcc/testsuite/g++.dg/pr94314-4.C
1190 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
1191 index 74dbeeb44c6..9e499ec9c86 100644
1197 diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
1198 index c73b8f810f0..8f541a28b6e 100644
1199 --- a/gcc/cgraphclones.c
1200 +++ b/gcc/cgraphclones.c
1204 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
1205 index 756f1d759e6..94d2312022d 100644
1206 --- a/gcc/testsuite/ChangeLog
1207 +++ b/gcc/testsuite/ChangeLog
1211 diff --git a/gcc/testsuite/g++.dg/pr94314-2.C b/gcc/testsuite/g++.dg/pr94314-2.C
1212 index 36b93ed6d4d..998ce601767 100644
1213 --- a/gcc/testsuite/g++.dg/pr94314-2.C
1214 +++ b/gcc/testsuite/g++.dg/pr94314-2.C
1218 diff --git a/gcc/testsuite/g++.dg/pr94314-3.C b/gcc/testsuite/g++.dg/pr94314-3.C
1219 index 575ba9d8ad8..846a5d6a3d8 100644
1220 --- a/gcc/testsuite/g++.dg/pr94314-3.C
1221 +++ b/gcc/testsuite/g++.dg/pr94314-3.C
1225 diff --git a/gcc/testsuite/g++.dg/pr94314-4.C b/gcc/testsuite/g++.dg/pr94314-4.C
1226 new file mode 100644
1227 index 00000000000..d097f29d4ad
1229 +++ b/gcc/testsuite/g++.dg/pr94314-4.C
1232 diff --git a/gcc/testsuite/g++.dg/pr94314.C b/gcc/testsuite/g++.dg/pr94314.C
1233 index 86e651d10ba..4e5ae122e9f 100644
1234 --- a/gcc/testsuite/g++.dg/pr94314.C
1235 +++ b/gcc/testsuite/g++.dg/pr94314.C
1239 diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c
1240 index fd5f24c746c..757cfad5b5e 100644
1241 --- a/gcc/tree-ssa-dce.c
1242 +++ b/gcc/tree-ssa-dce.c
1249 === 1699-combine-Fix-split_i2i3-ICE-PR94291.patch ===
1250 From c23c899aedf11069e992eed7358802b262d62f98 Mon Sep 17 00:00:00 2001
1251 From: Jakub Jelinek <jakub@redhat.com>
1252 Date: Tue, 7 Apr 2020 21:30:12 +0200
1253 Subject: [PATCH 1699/2034] combine: Fix split_i2i3 ICE [PR94291]
1255 The following testcase ICEs on armv7hl-linux-gnueabi.
1256 try_combine is called on:
1257 (gdb) p debug_rtx (i3)
1258 (insn 20 12 22 2 (set (mem/c:SI (plus:SI (reg/f:SI 102 sfp)
1259 (const_int -4 [0xfffffffffffffffc])) [1 x+0 S4 A32])
1260 (reg:SI 125)) "pr94291.c":7:8 241 {*arm_movsi_insn}
1261 (expr_list:REG_DEAD (reg:SI 125)
1263 (gdb) p debug_rtx (i2)
1264 (insn 12 7 20 2 (parallel [
1265 (set (reg:CC 100 cc)
1266 (compare:CC (reg:SI 121 [ <retval> ])
1269 (reg:SI 121 [ <retval> ]))
1270 ]) "pr94291.c":7:8 248 {*movsi_compare0}
1271 (expr_list:REG_UNUSED (reg:CC 100 cc)
1273 and tries to recognize cc = r121 cmp 0; [sfp-4] = r121 parallel,
1274 but that isn't recognized, so it splits it into two: split_i2i3
1275 [sfp-4] = r121 followed by cc = r121 cmp 0 which is recognized, but
1276 ICEs because the code below insist that the SET_DEST of newi2pat
1277 (or first set in PARALLEL thereof) must be a REG or SUBREG of REG,
1278 but it is a MEM in this case. I don't see any condition that would
1279 guarantee that, perhaps for the swap_i2i3 case it was somehow guaranteed.
1281 As the code just wants to update LOG_LINKS and LOG_LINKS are only for
1282 registers, not for MEM or anything else, the patch just doesn't update those
1283 if it isn't a REG or SUBREG of REG.
1285 2020-04-07 Jakub Jelinek <jakub@redhat.com>
1287 PR rtl-optimization/94291
1288 PR rtl-optimization/84169
1289 * combine.c (try_combine): For split_i2i3, don't assume SET_DEST
1290 must be a REG or SUBREG of REG; if it is not one of these, don't
1293 * gcc.dg/pr94291.c: New test.
1295 gcc/ChangeLog | 8 +++++++
1296 gcc/combine.c | 42 +++++++++++++++++++---------------
1297 gcc/testsuite/ChangeLog | 6 +++++
1298 gcc/testsuite/gcc.dg/pr94291.c | 14 ++++++++++++
1299 4 files changed, 51 insertions(+), 19 deletions(-)
1300 create mode 100644 gcc/testsuite/gcc.dg/pr94291.c
1302 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
1303 index a1ab9fb4ef3..12803e90b0a 100644
1309 diff --git a/gcc/combine.c b/gcc/combine.c
1310 index 58366a6d331..cff76cd3303 100644
1316 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
1317 index 71b5a14bcbe..3cbf891d58d 100644
1318 --- a/gcc/testsuite/ChangeLog
1319 +++ b/gcc/testsuite/ChangeLog
1323 diff --git a/gcc/testsuite/gcc.dg/pr94291.c b/gcc/testsuite/gcc.dg/pr94291.c
1324 new file mode 100644
1325 index 00000000000..7daa2b01166
1327 +++ b/gcc/testsuite/gcc.dg/pr94291.c
1333 === 0001-Add-patch_area_size-and-patch_area_entry-to-crtl.patch ===
1334 From 6607bdd99994c834f92fce924abdaea3405f62dc Mon Sep 17 00:00:00 2001
1335 From: "H.J. Lu" <hjl.tools@gmail.com>
1336 Date: Fri, 1 May 2020 21:03:10 -0700
1337 Subject: [PATCH] Add patch_area_size and patch_area_entry to crtl
1339 Currently patchable area is at the wrong place. It is placed immediately
1340 after function label and before .cfi_startproc. A backend should be able
1341 to add a pseudo patchable area instruction durectly into RTL. This patch
1342 adds patch_area_size and patch_area_entry to crtl so that the patchable
1343 area info is available in RTL passes.
1345 It also limits patch_area_size and patch_area_entry to 65535, which is
1346 a reasonable maximum size for patchable area.
1351 * cfgexpand.c (pass_expand::execute): Set crtl->patch_area_size
1352 and crtl->patch_area_entry.
1353 * emit-rtl.h (rtl_data): Add patch_area_size and patch_area_entry.
1354 * opts.c (common_handle_option): Limit
1355 function_entry_patch_area_size and function_entry_patch_area_start
1356 to USHRT_MAX. Fix a typo in error message.
1357 * varasm.c (assemble_start_function): Use crtl->patch_area_size
1358 and crtl->patch_area_entry.
1359 * doc/invoke.texi: Document the maximum value for
1360 -fpatchable-function-entry.
1365 * c-attribs.c (handle_patchable_function_entry_attribute): Limit
1366 value to USHRT_MAX (65535).
1369 gcc/ChangeLog | 14 ++++++++
1370 gcc/c-family/ChangeLog | 6 ++++
1371 gcc/c-family/c-attribs.c | 9 +++++
1372 gcc/cfgexpand.c | 33 +++++++++++++++++++
1373 gcc/doc/invoke.texi | 1 +
1374 gcc/emit-rtl.h | 6 ++++
1376 gcc/testsuite/ChangeLog | 7 ++++
1377 .../patchable_function_entry-error-1.c | 9 +++++
1378 .../patchable_function_entry-error-2.c | 9 +++++
1379 .../patchable_function_entry-error-3.c | 17 ++++++++++
1380 gcc/varasm.c | 30 ++---------------
1381 12 files changed, 116 insertions(+), 29 deletions(-)
1382 create mode 100644 gcc/testsuite/c-c++-common/patchable_function_entry-error-1.c
1383 create mode 100644 gcc/testsuite/c-c++-common/patchable_function_entry-error-2.c
1384 create mode 100644 gcc/testsuite/c-c++-common/patchable_function_entry-error-3.c
1386 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
1387 index e85a8e8813e..fb776ba5a0e 100644
1393 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
1394 index c429b49e68c..69ea1fdc4f3 100644
1395 --- a/gcc/c-family/ChangeLog
1396 +++ b/gcc/c-family/ChangeLog
1400 diff --git a/gcc/c-family/c-attribs.c b/gcc/c-family/c-attribs.c
1401 index ac936d5bbbb..a101312c581 100644
1402 --- a/gcc/c-family/c-attribs.c
1403 +++ b/gcc/c-family/c-attribs.c
1407 diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
1408 index a7ec77d5c85..86efa22bf60 100644
1409 --- a/gcc/cfgexpand.c
1410 +++ b/gcc/cfgexpand.c
1414 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
1415 index 527d362533a..767d1f07801 100644
1416 --- a/gcc/doc/invoke.texi
1417 +++ b/gcc/doc/invoke.texi
1421 diff --git a/gcc/emit-rtl.h b/gcc/emit-rtl.h
1422 index a878efe3cf7..3d6565c8a30 100644
1423 --- a/gcc/emit-rtl.h
1424 +++ b/gcc/emit-rtl.h
1428 diff --git a/gcc/opts.c b/gcc/opts.c
1429 index c212a1a57dc..3dccef39701 100644
1435 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
1436 index 176aa117904..185f9ea725e 100644
1437 --- a/gcc/testsuite/ChangeLog
1438 +++ b/gcc/testsuite/ChangeLog
1442 diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-error-1.c b/gcc/testsuite/c-c++-common/patchable_function_entry-error-1.c
1443 new file mode 100644
1444 index 00000000000..f60bf46cfe3
1446 +++ b/gcc/testsuite/c-c++-common/patchable_function_entry-error-1.c
1449 diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-error-2.c b/gcc/testsuite/c-c++-common/patchable_function_entry-error-2.c
1450 new file mode 100644
1451 index 00000000000..90f88c78be7
1453 +++ b/gcc/testsuite/c-c++-common/patchable_function_entry-error-2.c
1456 diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-error-3.c b/gcc/testsuite/c-c++-common/patchable_function_entry-error-3.c
1457 new file mode 100644
1458 index 00000000000..4490e5c15ca
1460 +++ b/gcc/testsuite/c-c++-common/patchable_function_entry-error-3.c
1463 diff --git a/gcc/varasm.c b/gcc/varasm.c
1464 index 271a67abf56..f062e48071f 100644
1473 === 1957-c-generic-lambda-forwarding-function-PR94546.patch ===
1474 From aedd04caa945260ea77fd22f29b77292f7dba72e Mon Sep 17 00:00:00 2001
1475 From: Jason Merrill <jason@redhat.com>
1476 Date: Wed, 22 Apr 2020 02:27:54 -0400
1477 Subject: [PATCH 1957/2034] c++: generic lambda forwarding function [PR94546]
1479 While instantiating test(Plot) we partially instantiate the generic lambda.
1480 We look at forward<T>(rest)... and see that it's just replacing parameter
1481 packs with new parameter packs and tries to do a direct substitution. But
1482 because register_parameter_specializations had built up a
1483 NONTYPE_ARGUMENT_PACK around the new parameter pack, the substitution
1484 failed. So let's not wrap it that way.
1487 2020-04-22 Jason Merrill <jason@redhat.com>
1490 * pt.c (register_parameter_specializations): If the instantiation is
1491 still a parameter pack, don't wrap it in a NONTYPE_ARGUMENT_PACK.
1492 (tsubst_pack_expansion, tsubst_expr): Adjust.
1494 gcc/cp/ChangeLog | 7 +++++
1495 gcc/cp/pt.c | 28 +++++++------------
1496 .../g++.dg/cpp2a/lambda-generic-variadic20.C | 23 +++++++++++++++
1497 3 files changed, 40 insertions(+), 18 deletions(-)
1498 create mode 100644 gcc/testsuite/g++.dg/cpp2a/lambda-generic-variadic20.C
1500 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
1501 index 640e4948130..4b6691a77f0 100644
1502 --- a/gcc/cp/ChangeLog
1503 +++ b/gcc/cp/ChangeLog
1507 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
1508 index 7bf249cee5c..2fe7b66707c 100644
1514 diff --git a/gcc/testsuite/g++.dg/cpp2a/lambda-generic-variadic20.C b/gcc/testsuite/g++.dg/cpp2a/lambda-generic-variadic20.C
1515 new file mode 100644
1516 index 00000000000..3d69dbb8e98
1518 +++ b/gcc/testsuite/g++.dg/cpp2a/lambda-generic-variadic20.C
1524 === 0030-PR-c-92746-ICE-with-noexcept-of-function-concept-che.patch ===
1525 From edabbec31e3bfc9a9757f80c8610706ed00e5a1a Mon Sep 17 00:00:00 2001
1526 From: Jason Merrill <jason@redhat.com>
1527 Date: Mon, 13 Jan 2020 18:13:46 -0500
1528 Subject: [PATCH 0030/2034] PR c++/92746 - ICE with noexcept of function
1531 Another place that needs to specially handle Concepts TS function-style
1534 * except.c (check_noexcept_r): Handle concept-check.
1536 gcc/cp/ChangeLog | 3 +++
1537 gcc/cp/except.c | 2 ++
1538 gcc/testsuite/g++.dg/concepts/fn-concept3.C | 6 ++++++
1539 3 files changed, 11 insertions(+)
1540 create mode 100644 gcc/testsuite/g++.dg/concepts/fn-concept3.C
1542 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
1543 index 59646c70fa4..4729e3d331d 100644
1544 --- a/gcc/cp/ChangeLog
1545 +++ b/gcc/cp/ChangeLog
1549 diff --git a/gcc/cp/except.c b/gcc/cp/except.c
1550 index e073bd4d2bc..55b4b6af442 100644
1551 --- a/gcc/cp/except.c
1552 +++ b/gcc/cp/except.c
1556 diff --git a/gcc/testsuite/g++.dg/concepts/fn-concept3.C b/gcc/testsuite/g++.dg/concepts/fn-concept3.C
1557 new file mode 100644
1558 index 00000000000..ecb7f6b12f7
1560 +++ b/gcc/testsuite/g++.dg/concepts/fn-concept3.C
1566 === 0129-Add-PR-number-to-change-log.patch ===
1567 From f788c2d66a6ee1ded65dafccbc5e485d42af4808 Mon Sep 17 00:00:00 2001
1568 From: Richard Sandiford <richard.sandiford@arm.com>
1569 Date: Fri, 17 Jan 2020 12:22:58 +0000
1570 Subject: [PATCH 0129/2034] Add PR number to change log
1574 1 file changed, 1 insertion(+)
1576 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
1577 index 6c6d586ca75..49ca5f92dec 100644
1586 === 0577-aarch64-Add-an-and.patch ===
1587 From bba0c624c8b1d6e54dc58091dd21b0c2ab000434 Mon Sep 17 00:00:00 2001
1588 From: Richard Sandiford <richard.sandiford@arm.com>
1589 Date: Mon, 3 Feb 2020 21:43:44 +0000
1590 Subject: [PATCH 0577/2034] aarch64: Add an and/ior-based movk pattern
1593 This patch adds a second movk pattern that models the instruction
1594 as a "normal" and/ior operation rather than an insertion. It fixes
1595 the third insv_1.c failure in PR87763, which was a regression from
1598 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
1602 * config/aarch64/aarch64-protos.h (aarch64_movk_shift): Declare.
1603 * config/aarch64/aarch64.c (aarch64_movk_shift): New function.
1604 * config/aarch64/aarch64.md (aarch64_movk<mode>): New pattern.
1608 * gcc.target/aarch64/movk_2.c: New test.
1610 gcc/ChangeLog | 7 ++
1611 gcc/config/aarch64/aarch64-protos.h | 1 +
1612 gcc/config/aarch64/aarch64.c | 24 +++++++
1613 gcc/config/aarch64/aarch64.md | 17 +++++
1614 gcc/testsuite/ChangeLog | 5 ++
1615 gcc/testsuite/gcc.target/aarch64/movk_2.c | 78 +++++++++++++++++++++++
1616 6 files changed, 132 insertions(+)
1617 create mode 100644 gcc/testsuite/gcc.target/aarch64/movk_2.c
1619 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
1620 index efbbbf08225..cea8ffee99c 100644
1626 diff --git a/gcc/config/aarch64/aarch64-protos.h b/gcc/config/aarch64/aarch64-protos.h
1627 index 24cc65a383a..d29975a8921 100644
1628 --- a/gcc/config/aarch64/aarch64-protos.h
1629 +++ b/gcc/config/aarch64/aarch64-protos.h
1633 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
1634 index 6581e4cb075..6a1b4099af1 100644
1635 --- a/gcc/config/aarch64/aarch64.c
1636 +++ b/gcc/config/aarch64/aarch64.c
1640 diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
1641 index 90eebce85c0..9c1f17d0f85 100644
1642 --- a/gcc/config/aarch64/aarch64.md
1643 +++ b/gcc/config/aarch64/aarch64.md
1647 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
1648 index 601bc336290..cdb26581b9c 100644
1649 --- a/gcc/testsuite/ChangeLog
1650 +++ b/gcc/testsuite/ChangeLog
1654 diff --git a/gcc/testsuite/gcc.target/aarch64/movk_2.c b/gcc/testsuite/gcc.target/aarch64/movk_2.c
1655 new file mode 100644
1656 index 00000000000..a0477ad5d42
1658 +++ b/gcc/testsuite/gcc.target/aarch64/movk_2.c
1664 === 1975-S-390-Fix-several-test-cases.patch ===
1665 From 803596fe9591026a50b59ff961ebc114097677b5 Mon Sep 17 00:00:00 2001
1666 From: Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1667 Date: Tue, 10 Mar 2020 10:49:28 +0100
1668 Subject: [PATCH 1975/2034] S/390: Fix several test cases
1672 2020-04-21 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1674 * config/s390/s390.md ("*<risbg_n>_ior_and_sr_ze<mode>"): Lift from SI
1675 mode to DSI. ("*trunc_sidi_and_subreg_ze<clobbercc_or_nocc>"): New
1678 gcc/testsuite/ChangeLog:
1680 2020-04-21 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1682 * gcc.target/s390/addsub-signed-overflow-1.c: Fix options.
1683 * gcc.target/s390/addsub-signed-overflow-2.c: Fix options.
1684 * gcc.target/s390/bswap-1.c: Fix scan assembler regex.
1685 * gcc.target/s390/global-array-element-pic2.c: Fix scan assembler regex.
1686 * gcc.target/s390/load-relative-check.c: Fix options.
1687 * gcc.target/s390/morestack.c: Fix options.
1688 * gcc.target/s390/nobp-return-mem-z900.c: Temporarily silence this case.
1689 * gcc.target/s390/risbg-ll-1.c: Fix scan assembler regex.
1690 * gcc.target/s390/risbg-ll-2.c: Fix scan assembler regex.
1691 * gcc.target/s390/risbg-ll-3.c: Fix scan assembler regex.
1692 * gcc.target/s390/target-attribute/pr82012.c: Fix error message.
1694 gcc/config/s390/s390.md | 39 ++++++++++++-------
1695 .../s390/addsub-signed-overflow-1.c | 2 +-
1696 .../s390/addsub-signed-overflow-2.c | 2 +-
1697 gcc/testsuite/gcc.target/s390/bswap-1.c | 8 ++--
1698 .../s390/global-array-element-pic2.c | 4 +-
1699 .../gcc.target/s390/load-relative-check.c | 2 +-
1700 gcc/testsuite/gcc.target/s390/morestack.c | 2 +-
1701 .../gcc.target/s390/nobp-return-mem-z900.c | 17 ++++++--
1702 gcc/testsuite/gcc.target/s390/risbg-ll-1.c | 13 +++----
1703 gcc/testsuite/gcc.target/s390/risbg-ll-2.c | 6 +--
1704 gcc/testsuite/gcc.target/s390/risbg-ll-3.c | 2 +-
1705 .../s390/target-attribute/pr82012.c | 2 +-
1706 12 files changed, 59 insertions(+), 40 deletions(-)
1708 diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md
1709 index 44b59659e20..cf53ef1b791 100644
1710 --- a/gcc/config/s390/s390.md
1711 +++ b/gcc/config/s390/s390.md
1715 diff --git a/gcc/testsuite/gcc.target/s390/addsub-signed-overflow-1.c b/gcc/testsuite/gcc.target/s390/addsub-signed-overflow-1.c
1716 index 143220d5541..ebc02479587 100644
1717 --- a/gcc/testsuite/gcc.target/s390/addsub-signed-overflow-1.c
1718 +++ b/gcc/testsuite/gcc.target/s390/addsub-signed-overflow-1.c
1722 diff --git a/gcc/testsuite/gcc.target/s390/addsub-signed-overflow-2.c b/gcc/testsuite/gcc.target/s390/addsub-signed-overflow-2.c
1723 index 798e489cece..8bd1a764bc6 100644
1724 --- a/gcc/testsuite/gcc.target/s390/addsub-signed-overflow-2.c
1725 +++ b/gcc/testsuite/gcc.target/s390/addsub-signed-overflow-2.c
1729 diff --git a/gcc/testsuite/gcc.target/s390/bswap-1.c b/gcc/testsuite/gcc.target/s390/bswap-1.c
1730 index edfcdf888c0..c11a0ea780b 100644
1731 --- a/gcc/testsuite/gcc.target/s390/bswap-1.c
1732 +++ b/gcc/testsuite/gcc.target/s390/bswap-1.c
1736 diff --git a/gcc/testsuite/gcc.target/s390/global-array-element-pic2.c b/gcc/testsuite/gcc.target/s390/global-array-element-pic2.c
1737 index b9398a8042f..72b87d40b85 100644
1738 --- a/gcc/testsuite/gcc.target/s390/global-array-element-pic2.c
1739 +++ b/gcc/testsuite/gcc.target/s390/global-array-element-pic2.c
1743 diff --git a/gcc/testsuite/gcc.target/s390/load-relative-check.c b/gcc/testsuite/gcc.target/s390/load-relative-check.c
1744 index 3d4671a6b3f..a55bc2442f1 100644
1745 --- a/gcc/testsuite/gcc.target/s390/load-relative-check.c
1746 +++ b/gcc/testsuite/gcc.target/s390/load-relative-check.c
1750 diff --git a/gcc/testsuite/gcc.target/s390/morestack.c b/gcc/testsuite/gcc.target/s390/morestack.c
1751 index aa28b72aa6c..4cfa220e737 100644
1752 --- a/gcc/testsuite/gcc.target/s390/morestack.c
1753 +++ b/gcc/testsuite/gcc.target/s390/morestack.c
1757 diff --git a/gcc/testsuite/gcc.target/s390/nobp-return-mem-z900.c b/gcc/testsuite/gcc.target/s390/nobp-return-mem-z900.c
1758 index 0b318115a8f..3d6aca1f95f 100644
1759 --- a/gcc/testsuite/gcc.target/s390/nobp-return-mem-z900.c
1760 +++ b/gcc/testsuite/gcc.target/s390/nobp-return-mem-z900.c
1764 diff --git a/gcc/testsuite/gcc.target/s390/risbg-ll-1.c b/gcc/testsuite/gcc.target/s390/risbg-ll-1.c
1765 index 30350d04c45..1cac15820c0 100644
1766 --- a/gcc/testsuite/gcc.target/s390/risbg-ll-1.c
1767 +++ b/gcc/testsuite/gcc.target/s390/risbg-ll-1.c
1771 diff --git a/gcc/testsuite/gcc.target/s390/risbg-ll-2.c b/gcc/testsuite/gcc.target/s390/risbg-ll-2.c
1772 index 754c17311dd..8bf1a0ff88b 100644
1773 --- a/gcc/testsuite/gcc.target/s390/risbg-ll-2.c
1774 +++ b/gcc/testsuite/gcc.target/s390/risbg-ll-2.c
1778 diff --git a/gcc/testsuite/gcc.target/s390/risbg-ll-3.c b/gcc/testsuite/gcc.target/s390/risbg-ll-3.c
1779 index 2a2db543cd9..90d37f2c1ce 100644
1780 --- a/gcc/testsuite/gcc.target/s390/risbg-ll-3.c
1781 +++ b/gcc/testsuite/gcc.target/s390/risbg-ll-3.c
1785 diff --git a/gcc/testsuite/gcc.target/s390/target-attribute/pr82012.c b/gcc/testsuite/gcc.target/s390/target-attribute/pr82012.c
1786 index 2e1f7ae57be..ad1bf76d4d2 100644
1787 --- a/gcc/testsuite/gcc.target/s390/target-attribute/pr82012.c
1788 +++ b/gcc/testsuite/gcc.target/s390/target-attribute/pr82012.c
1795 === 1999-rs6000-Fix-C-14-vs.-C-17-ABI-bug-on-powerpc64le-PR94.patch ===
1796 From a39ed81b8a0b46320a7c6ece3f7ad4c3f8519609 Mon Sep 17 00:00:00 2001
1797 From: Jakub Jelinek <jakub@redhat.com>
1798 Date: Thu, 23 Apr 2020 09:59:57 +0200
1799 Subject: [PATCH 1999/2034] rs6000: Fix C++14 vs. C++17 ABI bug on powerpc64le
1802 As mentioned in the PR and on IRC, the recently added struct-layout-1.exp
1803 new tests FAIL on powerpc64le-linux (among other targets).
1804 FAIL: tmpdir-g++.dg-struct-layout-1/t032 cp_compat_x_tst.o-cp_compat_y_tst.o execute
1805 FAIL: tmpdir-g++.dg-struct-layout-1/t058 cp_compat_x_tst.o-cp_compat_y_tst.o execute
1806 FAIL: tmpdir-g++.dg-struct-layout-1/t059 cp_compat_x_tst.o-cp_compat_y_tst.o execute
1807 in particular. The problem is that the presence or absence of the C++17
1808 artificial empty base fields, which have non-zero TYPE_SIZE, but zero
1809 DECL_SIZE, change the ABI decisions, if it is present (-std=c++17), the type
1810 might not be considered homogeneous, while if it is absent (-std=c++14), it
1813 The following patch fixes that and emits a -Wpsabi inform; perhaps more
1814 often than it could, because the fact that rs6000_discover_homogeneous_aggregate
1815 returns true when it didn't in in GCC 7/8/9 with -std=c++17 doesn't still
1816 mean it will make a different ABI decision, but the warning triggered only
1817 on the test I've changed (the struct-layout-1.exp tests use -w -Wno-psabi
1820 2020-04-23 Jakub Jelinek <jakub@redhat.com>
1823 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Add
1824 cxx17_empty_base_seen argument. Pass it to recursive calls.
1825 Ignore cxx17_empty_base_field_p fields after setting
1826 *cxx17_empty_base_seen to true.
1827 (rs6000_discover_homogeneous_aggregate): Adjust
1828 rs6000_aggregate_candidate caller. With -Wpsabi, diagnose homogeneous
1829 aggregates with C++17 empty base fields.
1831 * g++.dg/tree-ssa/pr27830.C: Use -Wpsabi -w for -std=c++17 and higher.
1833 gcc/ChangeLog | 13 ++++++++++
1834 gcc/config/rs6000/rs6000-call.c | 34 +++++++++++++++++++++----
1835 gcc/testsuite/ChangeLog | 3 +++
1836 gcc/testsuite/g++.dg/tree-ssa/pr27830.C | 2 ++
1837 4 files changed, 47 insertions(+), 5 deletions(-)
1839 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
1840 index 06f7eda0033..93c3076eb86 100644
1846 diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c
1847 index e08621ace27..a9ae7ab70ca 100644
1848 --- a/gcc/config/rs6000/rs6000-call.c
1849 +++ b/gcc/config/rs6000/rs6000-call.c
1853 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
1854 index 684e408c1a5..245c1512c76 100644
1855 --- a/gcc/testsuite/ChangeLog
1856 +++ b/gcc/testsuite/ChangeLog
1860 diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr27830.C b/gcc/testsuite/g++.dg/tree-ssa/pr27830.C
1861 index 01c7fc18783..551ebc428cd 100644
1862 --- a/gcc/testsuite/g++.dg/tree-ssa/pr27830.C
1863 +++ b/gcc/testsuite/g++.dg/tree-ssa/pr27830.C
1870 === 0001-Add-patch_area_size-and-patch_area_entry-to-crtl.patch ===
1871 From 6607bdd99994c834f92fce924abdaea3405f62dc Mon Sep 17 00:00:00 2001
1872 From: "H.J. Lu" <hjl.tools@gmail.com>
1873 Date: Fri, 1 May 2020 21:03:10 -0700
1874 Subject: [PATCH] Add patch_area_size and patch_area_entry to crtl
1876 Currently patchable area is at the wrong place. It is placed immediately
1877 after function label and before .cfi_startproc. A backend should be able
1878 to add a pseudo patchable area instruction durectly into RTL. This patch
1879 adds patch_area_size and patch_area_entry to crtl so that the patchable
1880 area info is available in RTL passes.
1882 It also limits patch_area_size and patch_area_entry to 65535, which is
1883 a reasonable maximum size for patchable area.
1888 * cfgexpand.c (pass_expand::execute): Set crtl->patch_area_size
1889 and crtl->patch_area_entry.
1890 * emit-rtl.h (rtl_data): Add patch_area_size and patch_area_entry.
1891 * opts.c (common_handle_option): Limit
1892 function_entry_patch_area_size and function_entry_patch_area_start
1893 to USHRT_MAX. Fix a typo in error message.
1894 * varasm.c (assemble_start_function): Use crtl->patch_area_size
1895 and crtl->patch_area_entry.
1896 * doc/invoke.texi: Document the maximum value for
1897 -fpatchable-function-entry.
1902 * c-attribs.c (handle_patchable_function_entry_attribute): Limit
1903 value to USHRT_MAX (65535).
1906 gcc/ChangeLog | 14 ++++++++
1907 gcc/c-family/ChangeLog | 6 ++++
1908 gcc/c-family/c-attribs.c | 9 +++++
1909 gcc/cfgexpand.c | 33 +++++++++++++++++++
1910 gcc/doc/invoke.texi | 1 +
1911 gcc/emit-rtl.h | 6 ++++
1913 gcc/testsuite/ChangeLog | 7 ++++
1914 .../patchable_function_entry-error-1.c | 9 +++++
1915 .../patchable_function_entry-error-2.c | 9 +++++
1916 .../patchable_function_entry-error-3.c | 17 ++++++++++
1917 gcc/varasm.c | 30 ++---------------
1918 12 files changed, 116 insertions(+), 29 deletions(-)
1919 create mode 100644 gcc/testsuite/c-c++-common/patchable_function_entry-error-1.c
1920 create mode 100644 gcc/testsuite/c-c++-common/patchable_function_entry-error-2.c
1921 create mode 100644 gcc/testsuite/c-c++-common/patchable_function_entry-error-3.c
1923 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
1924 index e85a8e8813e..fb776ba5a0e 100644
1930 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
1931 index c429b49e68c..69ea1fdc4f3 100644
1932 --- a/gcc/c-family/ChangeLog
1933 +++ b/gcc/c-family/ChangeLog
1937 diff --git a/gcc/c-family/c-attribs.c b/gcc/c-family/c-attribs.c
1938 index ac936d5bbbb..a101312c581 100644
1939 --- a/gcc/c-family/c-attribs.c
1940 +++ b/gcc/c-family/c-attribs.c
1944 diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
1945 index a7ec77d5c85..86efa22bf60 100644
1946 --- a/gcc/cfgexpand.c
1947 +++ b/gcc/cfgexpand.c
1951 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
1952 index 527d362533a..767d1f07801 100644
1953 --- a/gcc/doc/invoke.texi
1954 +++ b/gcc/doc/invoke.texi
1958 diff --git a/gcc/emit-rtl.h b/gcc/emit-rtl.h
1959 index a878efe3cf7..3d6565c8a30 100644
1960 --- a/gcc/emit-rtl.h
1961 +++ b/gcc/emit-rtl.h
1965 diff --git a/gcc/opts.c b/gcc/opts.c
1966 index c212a1a57dc..3dccef39701 100644
1972 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
1973 index 176aa117904..185f9ea725e 100644
1974 --- a/gcc/testsuite/ChangeLog
1975 +++ b/gcc/testsuite/ChangeLog
1979 diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-error-1.c b/gcc/testsuite/c-c++-common/patchable_function_entry-error-1.c
1980 new file mode 100644
1981 index 00000000000..f60bf46cfe3
1983 +++ b/gcc/testsuite/c-c++-common/patchable_function_entry-error-1.c
1986 diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-error-2.c b/gcc/testsuite/c-c++-common/patchable_function_entry-error-2.c
1987 new file mode 100644
1988 index 00000000000..90f88c78be7
1990 +++ b/gcc/testsuite/c-c++-common/patchable_function_entry-error-2.c
1993 diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-error-3.c b/gcc/testsuite/c-c++-common/patchable_function_entry-error-3.c
1994 new file mode 100644
1995 index 00000000000..4490e5c15ca
1997 +++ b/gcc/testsuite/c-c++-common/patchable_function_entry-error-3.c
2000 diff --git a/gcc/varasm.c b/gcc/varasm.c
2001 index 271a67abf56..f062e48071f 100644
2010 === 0002-Bump-date.patch ===
2011 From a139bafeec76732d964b99e8be3d61b3cab0359d Mon Sep 17 00:00:00 2001
2012 From: Martin Liska <mliska@suse.cz>
2013 Date: Tue, 12 May 2020 09:27:51 +0200
2014 Subject: [PATCH 2/2] Bump date.
2017 gcc/DATESTAMP | 2 +-
2018 1 file changed, 1 insertion(+), 1 deletion(-)
2020 diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
2021 index c3d42a6f89a..b03d4a0feab 100644
2030 === 0001-Just-test-it.patch ===
2031 From 6b10b909c0b49ac7ace2cd53021b3ff7ffb2d3f4 Mon Sep 17 00:00:00 2001
2032 From: Martin Liska <mliska@suse.cz>
2033 Date: Tue, 12 May 2020 09:25:54 +0200
2034 Subject: [PATCH 1/2] Just test it.
2038 2020-05-12 Martin Liska <mliska@suse.cz>
2044 gcc/tree-vrp.c | 2 ++
2046 2 files changed, 5 insertions(+)
2048 diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
2049 index a8861670790..32722d2c714 100644
2050 --- a/gcc/tree-vrp.c
2051 +++ b/gcc/tree-vrp.c
2055 diff --git a/gcc/tree.c b/gcc/tree.c
2056 index 0ddf002e9eb..fa7c6b28a4e 100644
2065 === trailing-whitespaces.patch ===
2066 From eb7c7c524556df5364f03adc20f6a9db20858484 Mon Sep 17 00:00:00 2001
2067 From: Jakub Jelinek <jakub@redhat.com>
2068 Date: Mon, 13 Jan 2020 14:14:57 +0100
2069 Subject: [PATCH 0004/2034] tree-opt: Fix bootstrap failure in
2070 tree-ssa-forwprop.c some more PR90838
2072 2020-01-13 Jakub Jelinek <jakub@redhat.com>
2074 PR tree-optimization/90838
2075 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
2076 SCALAR_INT_TYPE_MODE directly in CTZ_DEFINED_VALUE_AT_ZERO macro
2077 argument rather than to initialize temporary for targets that
2078 don't use the mode argument at all. Initialize ctzval to avoid
2081 gcc/ChangeLog | 9 +++++++++
2082 gcc/tree-ssa-forwprop.c | 6 +++---
2083 2 files changed, 12 insertions(+), 3 deletions(-)
2085 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
2086 index a195863212e..f7df07343d1 100644
2092 diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c
2093 index aac31d02b6c..56c470f6ecf 100644
2094 --- a/gcc/tree-ssa-forwprop.c
2095 +++ b/gcc/tree-ssa-forwprop.c
2102 === pr-check1.patch ===
2103 From 5194b51ed9714808d88827531e91474895b6c706 Mon Sep 17 00:00:00 2001
2104 From: Jason Merrill <jason@redhat.com>
2105 Date: Thu, 16 Jan 2020 16:55:39 -0500
2106 Subject: [PATCH 0121/2034] PR c++/93286 - ICE with __is_constructible and
2109 Here we had been recursing in tsubst_copy_and_build if type2 was a TREE_LIST
2110 because that function knew how to deal with pack expansions, and tsubst
2111 didn't. But tsubst_copy_and_build expects to be dealing with expressions,
2112 so we crash when trying to convert_from_reference a type.
2116 * pt.c (tsubst) [TREE_LIST]: Handle pack expansion.
2117 (tsubst_copy_and_build) [TRAIT_EXPR]: Always use tsubst for type2.
2119 gcc/testsuite/ChangeLog:
2120 * g++.dg/ext/is_constructible4.C: New file.
2122 gcc/cp/ChangeLog | 4 ++
2123 gcc/cp/pt.c | 74 ++++++++++++++++++--
2124 gcc/testsuite/g++.dg/ext/is_constructible4.C | 18 +++++
2125 3 files changed, 89 insertions(+), 7 deletions(-)
2126 create mode 100644 gcc/testsuite/g++.dg/ext/is_constructible4.C
2128 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
2129 index 3ca5d7a11b4..c37e461bcc5 100644
2130 --- a/gcc/cp/ChangeLog
2131 +++ b/gcc/cp/ChangeLog
2135 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
2136 index 9bb8cc13e5f..872f8ff8f52 100644
2142 diff --git a/gcc/testsuite/g++.dg/ext/is_constructible4.C b/gcc/testsuite/g++.dg/ext/is_constructible4.C
2143 new file mode 100644
2144 index 00000000000..6dfe3c01661
2146 +++ b/gcc/testsuite/g++.dg/ext/is_constructible4.C
2152 === 0020-IPA-Avoid-segfault-in-devirtualization_time_bonus-PR.patch ===
2153 From 8472660b98a31b32b7d030c2cdc4d41d326364d5 Mon Sep 17 00:00:00 2001
2154 From: Martin Jambor <mjambor@suse.cz>
2155 Date: Mon, 13 Jan 2020 19:13:46 +0100
2156 Subject: [PATCH 0020/2034] IPA: Avoid segfault in devirtualization_time_bonus
2159 2020-01-13 Martin Jambor <mjambor@suse.cz>
2162 * ipa-cp.c (devirtualization_time_bonus): Check whether isummary is
2166 * g++.dg/ipa/pr93223.C: New test.
2169 gcc/testsuite/g++.dg/ipa/pr93223.C | 62 ++++++++++++++++++++++++++++++
2170 2 files changed, 63 insertions(+), 1 deletion(-)
2171 create mode 100644 gcc/testsuite/g++.dg/ipa/pr93223.C
2173 diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
2174 index 612f3d0a89b..17da1d8e8a7 100644
2180 diff --git a/gcc/testsuite/g++.dg/ipa/pr93223.C b/gcc/testsuite/g++.dg/ipa/pr93223.C
2181 new file mode 100644
2182 index 00000000000..87f98b5e244
2184 +++ b/gcc/testsuite/g++.dg/ipa/pr93223.C
2190 === 0043-Compare-TREE_ADDRESSABLE-and-TYPE_MODE-when-ODR-chec.patch ===
2191 From 288c5324bf6e418dd94d718d1619464a4f68ff8e Mon Sep 17 00:00:00 2001
2192 From: Jan Hubicka <jh@suse.cz>
2193 Date: Tue, 14 Jan 2020 21:45:03 +0100
2194 Subject: [PATCH 0043/2034] Compare TREE_ADDRESSABLE and TYPE_MODE when ODR
2198 * ipa-devirt.c (odr_types_equivalent_p): Compare TREE_ADDRESSABLE and
2201 * testsuite/g++.dg/lto/odr-8_0.C: New testcase.
2202 * testsuite/g++.dg/lto/odr-8_1.C: New testcase.
2204 gcc/ChangeLog | 6 ++++++
2205 gcc/ipa-devirt.c | 21 +++++++++++++++++++++
2206 gcc/testsuite/ChangeLog | 6 ++++++
2207 gcc/testsuite/g++.dg/lto/odr-8_0.C | 7 +++++++
2208 gcc/testsuite/g++.dg/lto/odr-8_1.C | 12 ++++++++++++
2209 5 files changed, 52 insertions(+)
2210 create mode 100644 gcc/testsuite/g++.dg/lto/odr-8_0.C
2211 create mode 100644 gcc/testsuite/g++.dg/lto/odr-8_1.C
2213 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
2214 index 38165123654..33ca91a6467 100644
2220 diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
2221 index f0031957375..b609a77701d 100644
2222 --- a/gcc/ipa-devirt.c
2223 +++ b/gcc/ipa-devirt.c
2227 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
2228 index 8e3b9105188..dc42601794b 100644
2229 --- a/gcc/testsuite/ChangeLog
2230 +++ b/gcc/testsuite/ChangeLog
2234 diff --git a/gcc/testsuite/g++.dg/lto/odr-8_0.C b/gcc/testsuite/g++.dg/lto/odr-8_0.C
2235 new file mode 100644
2236 index 00000000000..59f51399fac
2238 +++ b/gcc/testsuite/g++.dg/lto/odr-8_0.C
2241 diff --git a/gcc/testsuite/g++.dg/lto/odr-8_1.C b/gcc/testsuite/g++.dg/lto/odr-8_1.C
2242 new file mode 100644
2243 index 00000000000..742df8cc906
2245 +++ b/gcc/testsuite/g++.dg/lto/odr-8_1.C
2251 === 0096-GCC-PATCH-AArch64-Add-ACLE-intrinsics-for-dot-produc.patch ===
2252 From 8c197c851e7528baba7cb837f34c05ba2242f705 Mon Sep 17 00:00:00 2001
2253 From: Stam Markianos-Wright <stam.markianos-wright@arm.com>
2254 Date: Thu, 16 Jan 2020 14:20:48 +0000
2255 Subject: [PATCH 0096/2034] [GCC][PATCH][AArch64]Add ACLE intrinsics for dot
2256 product (usdot - vector, <us/su>dot - by element) for AArch64 AdvSIMD ARMv8.6
2261 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
2263 * config/aarch64/aarch64-builtins.c: (enum aarch64_type_qualifiers):
2264 New qualifier_lane_quadtup_index, TYPES_TERNOP_SSUS,
2265 TYPES_QUADOPSSUS_LANE_QUADTUP, TYPES_QUADOPSSSU_LANE_QUADTUP.
2266 (aarch64_simd_expand_args): Add case SIMD_ARG_LANE_QUADTUP_INDEX.
2267 (aarch64_simd_expand_builtin): Add qualifier_lane_quadtup_index.
2268 * config/aarch64/aarch64-simd-builtins.def (usdot, usdot_lane,
2269 usdot_laneq, sudot_lane,sudot_laneq): New.
2270 * config/aarch64/aarch64-simd.md (aarch64_usdot): New.
2271 (aarch64_<sur>dot_lane): New.
2272 * config/aarch64/arm_neon.h (vusdot_s32): New.
2274 (vusdot_lane_s32): New.
2275 (vsudot_lane_s32): New.
2276 * config/aarch64/iterators.md (DOTPROD_I8MM): New iterator.
2277 (UNSPEC_USDOT, UNSPEC_SUDOT): New unspecs.
2279 gcc/testsuite/ChangeLog:
2281 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
2283 * gcc.target/aarch64/advsimd-intrinsics/vdot-compile-3-1.c: New test.
2284 * gcc.target/aarch64/advsimd-intrinsics/vdot-compile-3-2.c: New test.
2285 * gcc.target/aarch64/advsimd-intrinsics/vdot-compile-3-3.c: New test.
2286 * gcc.target/aarch64/advsimd-intrinsics/vdot-compile-3-4.c: New test.
2288 gcc/ChangeLog | 18 +++
2289 gcc/config/aarch64/aarch64-builtins.c | 45 +++++-
2290 gcc/config/aarch64/aarch64-simd-builtins.def | 5 +
2291 gcc/config/aarch64/aarch64-simd.md | 34 +++++
2292 gcc/config/aarch64/arm_neon.h | 83 +++++++++++
2293 gcc/config/aarch64/iterators.md | 7 +
2294 gcc/testsuite/ChangeLog | 7 +
2295 .../aarch64/advsimd-intrinsics/vdot-3-1.c | 136 +++++++++++++++++
2296 .../aarch64/advsimd-intrinsics/vdot-3-2.c | 137 ++++++++++++++++++
2297 .../aarch64/advsimd-intrinsics/vdot-3-3.c | 31 ++++
2298 .../aarch64/advsimd-intrinsics/vdot-3-4.c | 31 ++++
2299 11 files changed, 531 insertions(+), 3 deletions(-)
2300 create mode 100755 gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-1.c
2301 create mode 100755 gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-2.c
2302 create mode 100755 gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-3.c
2303 create mode 100755 gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-4.c
2305 diff --git a/gcc/ChangeLog b/gcc/ChangeLog
2306 index 9a949980699..49dcecb6777 100644
2312 diff --git a/gcc/config/aarch64/aarch64-builtins.c b/gcc/config/aarch64/aarch64-builtins.c
2313 index f0e0461b7f0..f50c4857e1c 100644
2314 --- a/gcc/config/aarch64/aarch64-builtins.c
2315 +++ b/gcc/config/aarch64/aarch64-builtins.c
2319 diff --git a/gcc/config/aarch64/aarch64-simd-builtins.def b/gcc/config/aarch64/aarch64-simd-builtins.def
2320 index 57fc5933b43..4744dd1f6b2 100644
2321 --- a/gcc/config/aarch64/aarch64-simd-builtins.def
2322 +++ b/gcc/config/aarch64/aarch64-simd-builtins.def
2326 diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md
2327 index 2989096b170..9e56e8caf35 100644
2328 --- a/gcc/config/aarch64/aarch64-simd.md
2329 +++ b/gcc/config/aarch64/aarch64-simd.md
2333 diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h
2334 index eaba156e26c..c96214003dd 100644
2335 --- a/gcc/config/aarch64/arm_neon.h
2336 +++ b/gcc/config/aarch64/arm_neon.h
2340 diff --git a/gcc/config/aarch64/iterators.md b/gcc/config/aarch64/iterators.md
2341 index b9843b83c5f..83720d9802a 100644
2342 --- a/gcc/config/aarch64/iterators.md
2343 +++ b/gcc/config/aarch64/iterators.md
2347 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
2348 index 0d8aa6063a7..8b01aa06a40 100644
2349 --- a/gcc/testsuite/ChangeLog
2350 +++ b/gcc/testsuite/ChangeLog
2354 diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-1.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-1.c
2355 new file mode 100755
2356 index 00000000000..ac4f821e771
2358 +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-1.c
2361 diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-2.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-2.c
2362 new file mode 100755
2363 index 00000000000..96bca2356e4
2365 +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-2.c
2368 diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-3.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-3.c
2369 new file mode 100755
2370 index 00000000000..18ecabef8dc
2372 +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-3.c
2375 diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-4.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-4.c
2376 new file mode 100755
2377 index 00000000000..66c87d48694
2379 +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vdot-3-4.c
2385 === 0001-c-Alias.patch ===
2386 From 3f1a149fc35cdba988464562e2fb824b10652d6b Mon Sep 17 00:00:00 2001
2387 From: Nathan Sidwell <nathan@acm.org>
2388 Date: Tue, 19 May 2020 13:29:19 -0700
2389 Subject: [PATCH] c++: Alias template instantiation template info
2391 I discovered that the alias instantiation machinery would setup
2392 template_info, and then sometime later overwrite that with equivalent
2393 info. This broke modules, because the template info, once set, is
2394 logically immutable. Let's just not do that.
2396 * pt.c (lookup_template_class_1): Do not reinit template_info of an
2399 (cherry picked from commit 74744bb1f2847b5b9ce3e97e0fec9c23bb0e499f)
2401 gcc/cp/pt.c | 17 +++++++++++++++--
2402 1 file changed, 15 insertions(+), 2 deletions(-)
2404 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
2405 index b8f03d18541..7230ac724ba 100644
2413 === 0001-RISC-V-Make-unique.patch ===
2414 From adce62f53d8ad00e8110a6a2de7962d7a850de16 Mon Sep 17 00:00:00 2001
2415 From: Keith Packard <keithp@keithp.com>
2416 Date: Wed, 29 Apr 2020 09:49:56 -0700
2417 Subject: [PATCH] RISC-V: Make unique SECCAT_SRODATA names start with .srodata
2420 default_unique_section uses ".sdata2" as a prefix for SECCAT_SRODATA
2421 unique sections, but RISC-V uses ".srodata" instead. Override the
2422 TARGET_ASM_UNIQUE_SECTION function to catch this case, allowing the
2423 default to be used for all other sections.
2426 * config/riscv/riscv.c (riscv_unique_section): New.
2427 (TARGET_ASM_UNIQUE_SECTION): New.
2429 Signed-off-by: Keith Packard <keithp@keithp.com>
2430 Reviewed-by: Keith Packard <keithp@keithp.com>
2431 Reviewed-on: Keith Packard <keithp@keithp.com>
2432 Co-Authored-by: Keith Packard <keithp@keithp.com>
2434 gcc/ChangeLog | 5 +++++
2435 gcc/config/riscv/riscv.c | 40 ++++++++++++++++++++++++++++++++++++++++
2436 2 files changed, 45 insertions(+)
2438 diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c
2439 index e4c08d780db..1ad9799fce4 100644
2440 --- a/gcc/config/riscv/riscv.c
2441 +++ b/gcc/config/riscv/riscv.c