+2021-07-13 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2021-07-05 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/101291
+ * cfgloopmanip.c (loop_version): Set the loop copy of the
+ versioned loop to the new loop.
+
+2021-07-13 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2021-07-12 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/101394
+ * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
+ copies from abnormals for a full redundancy.
+
+2021-07-13 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2021-07-12 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/101423
+ * gimple.c (gimple_could_trap_p_1): Internal function calls
+ do not trap.
+ * tree-eh.c (tree_could_trap_p): Likewise.
+
+2021-07-13 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2021-07-01 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/100778
+ * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
+ vectorized ops ahead of their scalar BB.
+
+2021-07-13 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2021-05-28 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/100778
+ * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
+ trapping ops in different BBs.
+
2021-07-09 Martin Jambor <mjambor@suse.cz>
Backported from master:
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-07-09 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101181
+ * constraint.cc (tsubst_requires_expr): Pass complain/in_decl to
+ add_extra_args.
+ * cp-tree.h (add_extra_args): Add complain/in_decl parameters.
+ * pt.c (build_extra_args): Make a copy of args.
+ (add_extra_args): Add complain/in_decl parameters. Enable the
+ code for handling the case where the extra arguments are
+ dependent.
+ (tsubst_pack_expansion): Pass complain/in_decl to
+ add_extra_args.
+ (tsubst_template_args): Handle missing template arguments.
+ (tsubst_expr) <case IF_STMT>: Pass complain/in_decl to
+ add_extra_args.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-07-09 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101247
+ * pt.c (any_template_parm_r) <case TEMPLATE_DECL>: Just walk the
+ DECL_CONTEXT.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-07-02 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101247
+ * pt.c (any_template_parm_r) <case TEMPLATE_DECL>: Rewrite to
+ use common_enclosing_class and to not depend on the TREE_TYPE
+ of outer levels pointing to the corresponding primary template.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-07-01 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101194
+ * constexpr.c (cxx_eval_array_reference): When the element type
+ is an empty type and the corresponding element is omitted, just
+ return an empty CONSTRUCTOR instead of attempting value
+ initialization.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-06-24 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/98832
+ * pt.c (maybe_aggr_guide): Handle alias templates appropriately.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-06-24 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101182
+ * constraint.cc (evaluate_requires_expr): Adjust function comment.
+ * cp-gimplify.c (cp_genericize_r) <case REQUIRES_EXPR>: Move to ...
+ (cp_fold) <case REQUIRES_EXPR>: ... here.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-06-07 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/100918
+ * parser.c (cp_parser_lookup_name): Check access of the lookup
+ result before we potentially adjust an injected-class-name to
+ its TEMPLATE_DECL.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-05-26 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/97420
+ * cvt.c (noexcept_conv_p): Remove redundant checks and simplify.
+ (fnptr_conv_p): Don't call non_reference. Use INDIRECT_TYPE_P
+ instead of TYPE_PTR_P.
+ * pt.c (convert_nontype_argument_function): Look through
+ implicit INDIRECT_REFs before calling strip_fnptr_conv.
+
2021-07-09 Jason Merrill <jason@redhat.com>
PR c++/101098
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-07-09 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101181
+ * g++.dg/cpp2a/concepts-requires26.C: New test.
+ * g++.dg/cpp2a/lambda-uneval16.C: New test.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-07-09 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101247
+ * g++.dg/cpp2a/concepts-memtmpl4.C: Uncomment the commented out
+ example, which we now handle correctly.
+ * g++.dg/cpp2a/concepts-memtmpl5.C: New test.
+ * g++.dg/cpp2a/concepts-memtmpl5a.C: New test.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-07-02 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101247
+ * g++.dg/cpp2a/concepts-memtmpl4.C: New test.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-07-01 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101194
+ * g++.dg/cpp0x/constexpr-empty16.C: New test.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-06-24 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/98832
+ * g++.dg/cpp2a/class-deduction-alias9.C: New test.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-06-24 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/101182
+ * g++.dg/cpp2a/concepts-requires25.C: New test.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-06-07 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/100918
+ * g++.dg/template/access38.C: New test.
+
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-05-26 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/97420
+ * g++.dg/cpp0x/noexcept68.C: New test.
+
+2021-07-13 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2021-07-12 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/101394
+ * gcc.dg/torture/pr101394.c: New testcase.
+
+2021-07-13 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2021-07-01 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/100778
+ * gcc.dg/torture/pr100778.c: New testcase.
+
+2021-07-13 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2021-05-28 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/100778
+ * gcc.dg/vect/bb-slp-pr100778-1.c: New testcase.
+
2021-07-09 Jason Merrill <jason@redhat.com>
PR c++/101098
+2021-07-13 Patrick Palka <ppalka@redhat.com>
+
+ Backported from master:
+ 2021-06-18 Patrick Palka <ppalka@redhat.com>
+
+ PR libstdc++/100387
+ * include/bits/ranges_algo.h (__minmax_fn::operator()): Rewrite
+ to limit comparison complexity to 3*N/2.
+ (__minmax_element_fn::operator()): Likewise.
+ (shift_right): Avoid premature std::move of __result.
+ * testsuite/25_algorithms/minmax/constrained.cc (test04, test05):
+ New tests.
+ * testsuite/25_algorithms/minmax_element/constrained.cc (test02):
+ Likewise.
+
2021-06-22 Thomas Rodgers <rodgert@appliantology.com>
Backported from master: