gcc-changelog: Support 'Backported from master'.

Message ID eee9577e-8706-3af0-d3be-18618de11e58@suse.cz
State New
Headers show
Series
  • gcc-changelog: Support 'Backported from master'.
Related show

Commit Message

Martin Liška June 17, 2020, 8:46 a.m.
Hey.

Jakub asked me to add 'Backported from master' heading to backports
that were created from git cherry-pick -x.

So it will newly generate:

git gcc-verify e1d68582022cfa2b1dc76646724b397ba2739439 -p
Checking e1d68582022cfa2b1dc76646724b397ba2739439: OK
------ gcc/ChangeLog ------
2020-06-12  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-06-12  Martin Liska  <mliska@suse.cz>
		    Jakub Jelinek  <jakub@redhat.com>

	PR sanitizer/95634
	* asan.c (asan_emit_stack_protection): Fix emission for ilp32
	by using Pmode instead of ptr_mode.

One minor limitation is that the timestamp (commit date)
of the original commit is lost so that's why we print:

	Backported from master:
	2020-06-12  Martin Liska  <mliska@suse.cz>

I'm also attaching new ChangeLog entries for:
git gcc-verify origin/releases/gcc-10~120..origin/releases/gcc-10 -p

Ready for master?

Martin

contrib/ChangeLog:

	* gcc-changelog/git_commit.py: Print 'Backported from master'
	heading to backported commits.
	* gcc-changelog/test_email.py: Test it.
	* gcc-changelog/test_patches.txt: Add new patch.
---
  contrib/gcc-changelog/git_commit.py    | 30 ++++++++++++++++++++------
  contrib/gcc-changelog/test_email.py    | 11 ++++++++++
  contrib/gcc-changelog/test_patches.txt | 29 +++++++++++++++++++++++++
  3 files changed, 63 insertions(+), 7 deletions(-)

-- 
2.27.0
Checking f00c9e9793dc7a89023aba7d3b64f05d15fbc5eb: OK
Checking 29e9bc108f2c205b770b115aeade51674bfb5b1c: OK
------ gcc/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	* config/arm/arm_mve.h (__arm_vbicq_n_u16): Correct the intrinsic
	arguments.
	(__arm_vbicq_n_s16): Likewise.
	(__arm_vbicq_n_u32): Likewise.
	(__arm_vbicq_n_s32): Likewise.
	(__arm_vbicq): Modify polymorphic variant.
------ gcc/testsuite/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	* gcc.target/arm/mve/intrinsics/vbicq_f16.c: Modify.
	* gcc.target/arm/mve/intrinsics/vbicq_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_n_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_n_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_n_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_u8.c: Likewise.
Checking aac5ae144363dbd857654511fbf335e53c8f7cf5: OK
------ gcc/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	PR target/94735
	* config/arm/predicates.md (mve_scatter_memory): Define to
	match (mem (reg)) for scatter store memory.
	* config/arm/mve.md (mve_vstrbq_scatter_offset_<supf><mode>): Modify
	define_insn to define_expand.
	(mve_vstrbq_scatter_offset_p_<supf><mode>): Likewise.
	(mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
	(mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
	(mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
	(mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
	(mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
	(mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
	(mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
	(mve_vstrhq_scatter_offset_fv8hf): Likewise.
	(mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
	(mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
	(mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
	(mve_vstrwq_scatter_offset_fv4sf): Likewise.
	(mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
	(mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
	(mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
	(mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
	(mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
	(mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
	(mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
	(mve_vstrbq_scatter_offset_<supf><mode>_insn): Define insn for scatter
	stores.
	(mve_vstrbq_scatter_offset_p_<supf><mode>_insn): Likewise.
	(mve_vstrhq_scatter_offset_<supf><mode>_insn): Likewise.
	(mve_vstrhq_scatter_shifted_offset_p_<supf><mode>_insn): Likewise.
	(mve_vstrhq_scatter_shifted_offset_<supf><mode>_insn): Likewise.
	(mve_vstrdq_scatter_offset_p_<supf>v2di_insn): Likewise.
	(mve_vstrdq_scatter_offset_<supf>v2di_insn): Likewise.
	(mve_vstrdq_scatter_shifted_offset_p_<supf>v2di_insn): Likewise.
	(mve_vstrdq_scatter_shifted_offset_<supf>v2di_insn): Likewise.
	(mve_vstrhq_scatter_offset_fv8hf_insn): Likewise.
	(mve_vstrhq_scatter_offset_p_fv8hf_insn): Likewise.
	(mve_vstrhq_scatter_shifted_offset_fv8hf_insn): Likewise.
	(mve_vstrhq_scatter_shifted_offset_p_fv8hf_insn): Likewise.
	(mve_vstrwq_scatter_offset_fv4sf_insn): Likewise.
	(mve_vstrwq_scatter_offset_p_fv4sf_insn): Likewise.
	(mve_vstrwq_scatter_offset_p_<supf>v4si_insn): Likewise.
	(mve_vstrwq_scatter_offset_<supf>v4si_insn): Likewise.
	(mve_vstrwq_scatter_shifted_offset_fv4sf_insn): Likewise.
	(mve_vstrwq_scatter_shifted_offset_p_fv4sf_insn): Likewise.
	(mve_vstrwq_scatter_shifted_offset_p_<supf>v4si_insn): Likewise.
	(mve_vstrwq_scatter_shifted_offset_<supf>v4si_insn): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	PR target/94735
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_base.c: New test.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_base_p.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_offset.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_offset_p.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_shifted_offset.c:
	Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_shifted_offset_p.c:
	Likewise.
Checking 1aabb312fa0ad07793a974ee5cf92a1e65b659fe: OK
------ gcc/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	* config/arm/arm.c (mve_vector_mem_operand): Fix unwanted
	fall-throughs.
Checking 32c348ce3efd1d693df43045338c8c3e33798edd: OK
------ gcc/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
	    Andre Vieira   <andre.simoesdiasvieira@arm.com>

	PR target/94959
	* config/arm/arm-protos.h (arm_mode_base_reg_class): Function
	declaration.
	(mve_vector_mem_operand): Likewise.
	* config/arm/arm.c (thumb2_legitimate_address_p): For MVE target check
	the load from memory to a core register is legitimate for give mode.
	(mve_vector_mem_operand): Define function.
	(arm_print_operand): Modify comment.
	(arm_mode_base_reg_class): Define.
	* config/arm/arm.h (MODE_BASE_REG_CLASS): Modify to add check for
	TARGET_HAVE_MVE and expand to arm_mode_base_reg_class on TRUE.
	* config/arm/constraints.md (Ux): Likewise.
	(Ul): Likewise.
	* config/arm/mve.md (mve_mov): Replace constraint Us with Ux and also
	add support for missing Vector Store Register and Vector Load Register.
	Add a new alternative to support load from memory to PC (or label) in
	vector store/load.
	(mve_vstrbq_<supf><mode>): Modify constraint Us to Ux.
	(mve_vldrbq_<supf><mode>): Modify constriant Us to Ux, predicate to
	mve_memory_operand and also modify the MVE instructions to emit.
	(mve_vldrbq_z_<supf><mode>): Modify constraint Us to Ux.
	(mve_vldrhq_fv8hf): Modify constriant Us to Ux, predicate to
	mve_memory_operand and also modify the MVE instructions to emit.
	(mve_vldrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
	mve_memory_operand and also modify the MVE instructions to emit.
	(mve_vldrhq_z_fv8hf): Likewise.
	(mve_vldrhq_z_<supf><mode>): Likewise.
	(mve_vldrwq_fv4sf): Likewise.
	(mve_vldrwq_<supf>v4si): Likewise.
	(mve_vldrwq_z_fv4sf): Likewise.
	(mve_vldrwq_z_<supf>v4si): Likewise.
	(mve_vld1q_f<mode>): Modify constriant Us to Ux.
	(mve_vld1q_<supf><mode>): Likewise.
	(mve_vstrhq_fv8hf): Modify constriant Us to Ux, predicate to
	mve_memory_operand.
	(mve_vstrhq_p_fv8hf): Modify constriant Us to Ux, predicate to
	mve_memory_operand and also modify the MVE instructions to emit.
	(mve_vstrhq_p_<supf><mode>): Likewise.
	(mve_vstrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
	mve_memory_operand.
	(mve_vstrwq_fv4sf): Modify constriant Us to Ux.
	(mve_vstrwq_p_fv4sf): Modify constriant Us to Ux and also modify the MVE
	instructions to emit.
	(mve_vstrwq_p_<supf>v4si): Likewise.
	(mve_vstrwq_<supf>v4si): Likewise.Modify constriant Us to Ux.
	* config/arm/predicates.md (mve_memory_operand): Define.
------ gcc/testsuite/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
	    Andre Vieira   <andre.simoesdiasvieira@arm.com>

	PR target/94959
	* gcc.target/arm/mve/intrinsics/mve_vector_float2.c: Modify.
	* gcc.target/arm/mve/intrinsics/mve_vldr.c: New test.
	* gcc.target/arm/mve/intrinsics/mve_vldr_z.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstr.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstr_p.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_f16.c: Modify.
	* gcc.target/arm/mve/intrinsics/vld1q_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_f16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrbq_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrbq_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrbq_z_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrbq_z_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrdq_gather_base_wb_s64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrdq_gather_base_wb_u64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrdq_gather_base_wb_z_s64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrdq_gather_base_wb_z_u64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_f16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_f16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_z_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_z_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_z_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_z_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_z_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_z_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vuninitializedq_float.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vuninitializedq_float1.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vuninitializedq_int.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vuninitializedq_int1.c: Likewise.
Checking 7d249d84e4c1be7c6f857c3a9d7791623a0e9d00: OK
------ gcc/testsuite/ChangeLog ------ 
2020-06-16  Tobias Burnus  <tobias@codesourcery.com>

	Backported from master:
	2020-06-16  Tobias Burnus  <tobias@codesourcery.com>

	PR middle-end/95622
	* lib/target-supports.exp (check_effective_target_offloading_enabled):
	New.
	* c-c++-common/goacc/kernels-alias-ipa-pta-2.c: Use it for xfail.
	* c-c++-common/goacc/kernels-alias-ipa-pta-4.c: Likewise.
	* c-c++-common/goacc/kernels-alias-ipa-pta.c: Likewise.
Checking 32f2eef94c285f365f44ce2add07704eaeabf133: OK
Checking 8a3453786c3c2d6343c5258e564ad139d5ad116f: OK
------ gcc/ChangeLog ------ 
2020-06-15  Andrew Stubbs  <ams@codesourcery.com>

	Backported from master:
	2020-06-15  Andrew Stubbs  <ams@codesourcery.com>

	* config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.
Checking 0a76844b5d2db59768835318d001aa6548265cd1: OK
------ gcc/ChangeLog ------ 
2020-06-15  Tobias Burnus  <tobias@codesourcery.com>

	Backported from master:
	2020-06-15  Tobias Burnus  <tobias@codesourcery.com>

	* omp-offload.c (add_decls_addresses_to_decl_constructor,
	omp_finish_file): With in_lto_p, stream out all offload-table
	items even if the symtab_node does not exist.
Checking 9074deee2c5039ff26c8587cc598bc658d8ff32f: OK
------ gcc/ChangeLog ------ 
2020-06-15  Tobias Burnus  <tobias@codesourcery.com>

	Backported from master:
	2020-06-15  Tobias Burnus  <tobias@codesourcery.com>

	PR lto/94848
	PR middle-end/95551
	* omp-offload.c (add_decls_addresses_to_decl_constructor,
	omp_finish_file): Skip removed items.
	* lto-cgraph.c (output_offload_tables): Likewise; set force_output
	to this node for variables and functions.
------ libgomp/ChangeLog ------ 
2020-06-15  Tobias Burnus  <tobias@codesourcery.com>

	Backported from master:
	2020-06-15  Tobias Burnus  <tobias@codesourcery.com>

	PR lto/94848
	PR middle-end/95551
	* testsuite/libgomp.fortran/target-var.f90: New test.
Checking 0a274fa150fea4c6d66e7ee3a950d1659c9f1a14: OK
Checking fbd1bae3d8260b5e5bfc4d7cffe8c6e659abe235: OK
------ gcc/cp/ChangeLog ------ 
2020-06-14  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-14  Iain Sandoe  <iain@sandoe.co.uk>

	* coroutines.cc (instantiate_coro_traits): Pass a reference
	to lambda closure objects to traits instantiation.
	(morph_fn_to_coro): Likewise for promise parameter
	preview and allocator lookup.
Checking b0feef39fe53fbc46c22ac0c745f91dbf96cdd00: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95544
	* check.c (invalid_null_arg): Rename to gfc_invalid_null_arg.
	(gfc_check_associated, gfc_check_kind, gfc_check_merge)
	(gfc_check_shape, gfc_check_size, gfc_check_spread)
	(gfc_check_transfer): Adjust.
	(gfc_check_len_lentrim, gfc_check_trim): Check for NULL() argument.
	* gfortran.h: Declare gfc_invalid_null_arg ().
	* intrinsic.c (check_arglist): Check for NULL() argument.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95544
	* gfortran.dg/pr95544.f90: New file.
Checking 294105192c9f6bdcebce81752fc1e64e2b7adebb: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-05  Steve Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/93366
	* check.c (gfc_check_associated, invalid_null_arg): Factorize
	check for presence of invalid NULL() argument.
	(gfc_check_kind, gfc_check_merge, gfc_check_shape)
	(gfc_check_sizeof, gfc_check_spread, gfc_check_transfer): Use this
	check for presence of invalid NULL() arguments.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-05  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/93366
	* gfortran.dg/pr93366.f90: New test.
Checking 8c8102817739505fe47a949fc4ec38fe62518818: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95503
	* expr.c (gfc_check_pointer_assign): Skip contiguity check of rhs
	of pointer assignment if lhs cannot be simply contiguous.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95503
	* gfortran.dg/pr95503.f90: New test.
Checking 0c39742d618bad5ab5b9dc8ae040612a61e92103: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/94109
	* class.c (finalize_component): Return early if finalization has
	already happened for expression and component within namespace.
	* gfortran.h (gfc_was_finalized): New type.
	(gfc_namespace): Add member was_finalzed.
	(gfc_expr): Remove finalized.
	* symbol.c (gfc_free_namespace): Free was_finalized.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/94109
	* gfortran.dg/finalize_34.f90: Adjust free counts.
	* gfortran.dg/finalize_36.f90: New test.
Checking a44761a6aa30d743a01c930dcfc70f11b9369fd8: OK
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Marek Polacek  <polacek@redhat.com>

	Backported from master:
	2020-06-14  Marek Polacek  <polacek@redhat.com>

	* g++.dg/cpp0x/initlist-array12.C: Fix the definition of
	initializer_list for ilp32 target.
Checking b2229175b53e3b1c58b4aa963e3d0bb06ca063bf: OK
------ gcc/c-family/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-06-09  Jakub Jelinek  <jakub@redhat.com>

	PR c/95580
	* c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
	case when MEM_REF's first argument has type pointer to incomplete type.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-06-09  Jakub Jelinek  <jakub@redhat.com>

	PR c/95580
	* gcc.dg/pr95580.c: New test.
Checking c75a2abc3a976096b89475f062d4795247aa02b8: OK
------ gcc/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-06-08  Jakub Jelinek  <jakub@redhat.com>

	PR target/95528
	* tree-ssa-forwprop.c (simplify_vector_constructor): Don't use
	VEC_UNPACK*_EXPR or VEC_PACK_TRUNC_EXPR with scalar modes unless the
	type is vector boolean.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-06-08  Jakub Jelinek  <jakub@redhat.com>

	PR target/95528
	* g++.dg/opt/pr95528.C: New test.
Checking 808f30b0772733886cefe7dead50862c169bcb2b: OK
------ gcc/cp/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-28  Jakub Jelinek  <jakub@redhat.com>

	PR c++/95328
	* decl.c (cp_finish_decomp): Call complete_type before checking
	COMPLETE_TYPE_P.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-28  Jakub Jelinek  <jakub@redhat.com>

	PR c++/95328
	* g++.dg/cpp1z/decomp53.C: New test.
Checking 6d6df84dc031924cb95599a6c498aa27d3bceac4: OK
------ gcc/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-26  Jakub Jelinek  <jakub@redhat.com>

	PR c++/95197
	* gimplify.c (find_combined_omp_for): Move to omp-general.c.
	* omp-general.h (find_combined_omp_for): Declare.
	* omp-general.c: Include tree-iterator.h.
	(find_combined_omp_for): New function, moved from gimplify.c.
------ gcc/cp/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-26  Jakub Jelinek  <jakub@redhat.com>

	PR c++/95197
	* cp-gimplify.c: Include omp-general.h.
	(cp_genericize_r) <case OMP_DISTRIBUTE>: For class iteration
	variables in composite distribute parallel for, instantiate copy
	ctor of their types.
Checking e09d626551fef9b5719073427170d11e97038c44: OK
------ gcc/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-14  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/95108
	* omp-simd-clone.c (struct modify_stmt_info): Add after_stmt member.
	(ipa_simd_modify_stmt_ops): For PHIs, only add before first stmt in
	entry block if info->after_stmt is NULL, otherwise add after that stmt
	and update it after adding each stmt.
	(ipa_simd_modify_function_body): Initialize info.after_stmt.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-14  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/95108
	* gcc.dg/gomp/pr95108.c: New test.
Checking 16710ff9803bc48aabdfecce30866ffac6d29342: OK
------ gcc/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-13  Jakub Jelinek  <jakub@redhat.com>

	PR debug/95080
	* cfgrtl.c (purge_dead_edges): Skip over debug and note insns even
	if the last insn is a note.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-13  Jakub Jelinek  <jakub@redhat.com>

	PR debug/95080
	* g++.dg/opt/pr95080.C: New test.
Checking 892b4f74d9b05821f87fec9fc104fba6325972e1: OK
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Iain Buclaw  <ibuclaw@gdcproject.org>

	Backported from master:
	2020-06-14  Iain Buclaw  <ibuclaw@gdcproject.org>

	PR testsuite/95575
	* lib/gdc-utils.exp (gdc-do-test): Re-add $subdir link and inclusion
	in filename.
Checking 94ccc38063dc9769538cd4336fb7a1fd88419284: OK
Checking b88498204521731f46b439b33f936009fedfdf35: OK
------ gcc/cp/ChangeLog ------ 
2020-06-13  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-13  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95440
	* call.c (add_candidates): Use vec_safe_length() for
	testing the arguments list.
	(build_new_method_call_1): Use vec_safe_is_empty() when
	checking for an empty args list.
------ gcc/testsuite/ChangeLog ------ 
2020-06-13  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-13  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95440
	* g++.dg/coroutines/pr95440.C: New test.
Checking 652ec7e8c046b239c42dedd295acf1815ed2b93a: OK
------ gcc/cp/ChangeLog ------ 
2020-06-13  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-13  Patrick Palka  <ppalka@redhat.com>

	PR c++/93467
	* constraint.cc (associate_classtype_constraints): If there is a
	discrepancy between the current template depth and the template
	depth of the original declaration, then adjust the template
	parameter depth within the current constraints appropriately.
	* pt.c (tsubst_friend_class): Substitute into and set the
	constraints on the injected declaration.
------ gcc/testsuite/ChangeLog ------ 
2020-06-13  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-13  Patrick Palka  <ppalka@redhat.com>

	PR c++/93467
	* g++.dg/cpp2a/concepts-friend6.C: New test.
	* g++.dg/cpp2a/concepts-friend7.C: New test.
Checking 3af22062bee49639269c4fa0e82e3850366f4939: OK
Checking 703f9d8687ecbd86cd88ec0bf16088bb9e36303e: OK
Checking 284f809ef7fe8fa6b518c103d31e514a98f0f36e: OK
------ gcc/cp/ChangeLog ------ 
2020-06-12  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-12  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95350
	* coroutines.cc (struct param_info): Remove rv_ref field.
	(build_actor_fn): Remove specifial rvalue ref handling.
	(morph_fn_to_coro): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-06-12  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-12  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95350
	* g++.dg/coroutines/torture/func-params-08.C: Adjust test to
	reflect that all rvalue refs are dangling.
	* g++.dg/coroutines/torture/func-params-09-awaitable-parms.C:
	Likewise.
	* g++.dg/coroutines/pr95350.C: New test.
Checking e1d68582022cfa2b1dc76646724b397ba2739439: OK
------ gcc/ChangeLog ------ 
2020-06-12  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-06-12  Martin Liska  <mliska@suse.cz>
		    Jakub Jelinek  <jakub@redhat.com>

	PR sanitizer/95634
	* asan.c (asan_emit_stack_protection): Fix emission for ilp32
	by using Pmode instead of ptr_mode.
Checking 036b288ca4cf5d3b1d908ef97c25b7f92153ff8a: OK
------ gcc/ChangeLog ------ 
2020-06-12  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-05-19  Martin Liska  <mliska@suse.cz>

	PR sanitizer/94910
	* asan.c (asan_emit_stack_protection): Emit
	also **SavedFlagPtr(FakeStack, class_id) = 0 in order to release
	a stack frame.
Checking d78c4732bc30514ad8c89f3c9d7a96087d6b8551: OK
Checking 23dd42562369911a92d7da045ebe2c03b286a769: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95560
	* name-lookup.c (check_local_shadow): Check if types are
	non-null before calling same_type_p.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95560
	* g++.dg/warn/Wshadow-local-3.C: New test.
Checking ae275b986b8cc747a5b4f389cb05a71fdee1f886: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95066
	* decl.c (duplicate_decls): Set DECL_HAS_DEPENDENT_EXPLICIT_SPEC_P.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95066
	* g++.dg/cpp2a/explicit16.C: New test.
Checking de946847b7cf88c503c6e843fc6263ef7a1911fc: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/94937
	* cvt.c (cp_get_fndecl_from_callee): Return NULL_TREE if the function
	type is not INDIRECT_TYPE_P.
	* decl.c (omp_declare_variant_finalize_one): Call
	cp_get_callee_fndecl_nofold instead of looking for the function decl
	manually.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/94937
	* g++.dg/cpp1z/constexpr-if34.C: New test.
	* g++.dg/cpp2a/is-constant-evaluated10.C: New test.
Checking 4c07da7bec0c952e4918323222c2baa85f0a29f1: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95344
	* cp-gimplify.c (cp_fold) <case MODIFY_EXPR>: Don't set
	TREE_THIS_VOLATILE here.
	(cp_fold): Set it here along with TREE_NO_WARNING.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95344
	* c-c++-common/Wparentheses-2.c: New test.
Checking 18436d87ff85282b200579cb8da496659632ad6b: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/94955
	* typeck.c (cp_build_binary_op): Use fold_for_warn instead of
	cp_fold_rvalue.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/94955
	* g++.dg/cpp0x/constexpr-shift2.C: New test.
Checking 53e91f867bd1c3773d37b2efb8875b8b1416a9d2: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/90915
	* parser.c (cp_parser_has_attribute_expression): Sorry on a
	type-dependent argument.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/90915
	* g++.dg/ext/builtin-has-attribute.C: New test.
Checking 3b9a3b484f7c89bc5064bf32ecfa2b4aee218d5f: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Harald Anlauf  <anlauf@gmx.de>
		    Steven G. Kargl   <kargl@gcc.gnu.org>

	PR fortran/95611
	* decl.c (access_attr_decl): Use correct symbol in error message.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Harald Anlauf  <anlauf@gmx.de>
		    Steven G. Kargl   <kargl@gcc.gnu.org>

	PR fortran/95611
	* gfortran.dg/pr95611.f90: New file.
Checking 800dac8fca3cf75512913e380df339fa2253ba76: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-11  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95137
	* coroutines.cc (expand_one_await_expression): Build separate
	DTOR trees for the awaitable object on the destroy and resume
	paths.
Checking 605e9b1a9b3250537a7269eba7e9c316b0f00d29: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95091
	* class.c (gfc_hash_value): Add cast.
Checking bf6199ecc9c2dc9f6b5eca3d18ff48b374a8feb9: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-07  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95091
	* class.c (get_unique_type_string, gfc_hash_value): Enlarge
	buffers, and check whether the strings returned by
	get_unique_type_string() fit.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-07  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95091
	* gfortran.dg/pr95091.f90: New file.
Checking 3e9261f0e013108135bf09f0f91b279b9c5cbd9e: OK
------ libstdc++-v3/ChangeLog ------ 
2020-06-11  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-11  Patrick Palka  <ppalka@redhat.com>

	PR libstdc++/95578
	* include/bits/ranges_algo.h (__lexicographical_compare_fn):
	Also check that the iterator and sentinel have the same type before
	applying the unwrapping optimization for __normal_iterator.
	Split the check into two, one for the first iterator/sentinel
	pair and another for second iterator/sentinel pair.  Remove uses
	of __niter_base, and remove uses of std::move on a
	__normal_iterator.
	* include/bits/ranges_algobase.h (__equal_fn): Likewise.
	(__copy_or_move): Likewise.  Perform similar adjustments for
	the reverse_iterator and move_iterator optimizations.  Inline
	the checks into the if-constexprs, and use using-declarations to
	make them less visually noisy.  Remove uses of __niter_wrap.
	(__copy_or_move_backward): Likewise.
	* testsuite/25_algorithms/copy/95578.cc: New test.
	* testsuite/25_algorithms/copy_backward/95578.cc: New test.
	* testsuite/25_algorithms/equal/95578.cc: New test.
	* testsuite/25_algorithms/lexicographical_compare/95578.cc: New test.
	* testsuite/25_algorithms/move/95578.cc: New test.
	* testsuite/25_algorithms/move_backward/95578.cc: New test.
Checking 36b4ff352d5f78951ebb870d7f06ffe8d925218a: OK
Checking 5bb75908cbcc0d2ddfbadedfcd716b33694fd9c4: OK
------ gcc/cp/ChangeLog ------ 
2020-06-10  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-10  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95346
	* coroutines.cc (morph_fn_to_coro): Ensure that the get-
	return-object is constructed correctly; When it is not the
	final return value, pass it to the CTOR of the return type
	as an rvalue, per the standard comment.
------ gcc/testsuite/ChangeLog ------ 
2020-06-10  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-10  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95346
	* g++.dg/coroutines/pr95346.C: New test.
Checking 977a173c196dc5ba5ac2e1b890083beb0451cf60: OK
------ gcc/cp/ChangeLog ------ 
2020-06-10  Marek Polacek  <polacek@redhat.com>

	PR c++/95562
	* parser.c (cp_parser_direct_declarator): Clear
	CP_PARSER_FLAGS_DELAY_NOEXCEPT if the declarator kind is not
	cdk_id.
------ gcc/testsuite/ChangeLog ------ 
2020-06-10  Marek Polacek  <polacek@redhat.com>

	PR c++/95562
	* g++.dg/cpp0x/noexcept60.C: New test.
Checking cc00eb0af30ab3281d4dbade9f2c1b3a4b63f99f: OK
Checking 57ae358584f402145bad6fede8c539a225f90966: OK
------ gcc/cp/ChangeLog ------ 
2020-06-09  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-09  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95345
	* coroutines.cc (finish_co_await_expr): Revise to allow for
	parameter packs.
	(finish_co_yield_expr): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-06-09  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-09  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95345
	* g++.dg/coroutines/pr95345.C: New test.
Checking 7783ab7bceb912373d9513af658aba40ede87b1b: OK
Checking 127bf4228d0cb21f28fd5ed4dd820fa4760fc771: OK
------ gcc/ChangeLog ------ 
2020-06-08  Martin Jambor  <mjambor@suse.cz>

	Backported from master:
	2020-05-27  Martin Jambor  <mjambor@suse.cz>

	PR ipa/95113
	* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move non-call
	exceptions check to...
	* tree-eh.c (stmt_unremovable_because_of_non_call_eh_p): ...this
	new function.
	* tree-eh.h (stmt_unremovable_because_of_non_call_eh_p): Declare it.
	* ipa-sra.c (isra_track_scalar_value_uses): Use it.  New parameter
	fun.
------ gcc/testsuite/ChangeLog ------ 
2020-06-08  Martin Jambor  <mjambor@suse.cz>

	Backported from master:
	2020-05-27  Martin Jambor  <mjambor@suse.cz>

	PR ipa/95113
	* gcc.dg/ipa/pr95113.c: New test.
Checking e4f719b4e1f14016dfc777227e42bd1080245248: OK
------ gcc/testsuite/ChangeLog ------ 
2020-06-08  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-06-08  Mark Eggleston  <markeggleston@gcc.gnu.org>

	PR fortran/92993
	* gfortran.dg/pr92993.f90: New test.
Checking ad48414d2c0783929ed8b97df6b536457d5334dc: OK
Checking ac9b05305d376cfa391dd57a46515cbdc165f094: OK
------ gcc/cp/ChangeLog ------ 
2020-06-07  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-07  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95050
	* coroutines.cc (build_co_await): Wrap the co_await expression
	in a TARGET_EXPR, where needed.
	(finish_co_yield_expr): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-06-07  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-07  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95050
	* g++.dg/coroutines/pr95050.C: New test.
Checking 5025a854baad3aa3f7df4870c45507fe50324f7c: OK
Checking 03da87235697eab344cde609d81d3f405f450c42: OK
------ gcc/cp/ChangeLog ------ 
2020-06-06  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/94817
	PR c++/94829
	PR c++/95087
	* coroutines.cc (morph_fn_to_coro): Set unformed outline
	functions to error_mark_node.  For early error returns suppress
	warnings about missing ramp return values.  Fix reinstatement
	of the function body on pre-existing initial error.  If we see
	an early fatal error, drop the erroneous function body.
	* decl.c (finish_function): Use the normal error path for fails
	in the ramp function, do not try to compile the helpers if the
	transform fails.
------ gcc/testsuite/ChangeLog ------ 
2020-06-06  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/94817
	PR c++/94829
	PR c++/95087
	* g++.dg/coroutines/coro-missing-final-suspend.C: New test.
	* g++.dg/coroutines/coro-missing-initial-suspend.C: New test.
	* g++.dg/coroutines/coro-missing-promise-yield.C: Check for
	continuation of compilation.
	* g++.dg/coroutines/coro-missing-promise.C: Likewise.
	* g++.dg/coroutines/coro-missing-ret-value.C: Likewise
	* g++.dg/coroutines/coro-missing-ret-void.C: Likewise
	* g++.dg/coroutines/coro-missing-ueh-3.C: Likewise
	* g++.dg/coroutines/pr94817.C: New test.
	* g++.dg/coroutines/pr94829.C: New test.
	* g++.dg/coroutines/co-return-syntax-08-bad-return.C:
	Adjust the testcase to do the compile (rather than an
	-fsyntax-only parse).
	* g++.dg/coroutines/coro1-ret-int-yield-int.h
	(MISSING_INITIAL_SUSPEND, MISSING_FINAL_SUSPEND): New.
Checking 7eb958eb4b5af910817f023ebac5a5ae2f5b7b6c: OK
Checking 2927ec5bc1276188efae82301d8fcffe4a245d1e: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-30  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95373
	* primary.c (is_inquiry_ref): Move validity check of inquiry
	references against selected Fortran standard from here...
	(gfc_match_varspec) ...to here.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-30  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95373
	* gfortran.dg/pr95373_1.f90: Adjust error messages.
	* gfortran.dg/pr95373_2.f90: Adjust error message.
Checking d7760318305a0eab43d59d9884486569409c2d52: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-28  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95373
	* primary.c (is_inquiry_ref): Check validity of inquiry
	references against selected Fortran standard.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-28  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95373
	* gfortran.dg/pr95373_1.f90: New test.
	* gfortran.dg/pr95373_2.f90: New test.
Checking 1e20cd1b583347cb2ea8591a45d99df143f7c41a: OK
------ gcc/fortran/ChangeLog ------ 
2020-05-24  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95106
	* trans-common.c (gfc_sym_mangled_common_id): Enlarge temporaries
	for name-mangling.
------ gcc/testsuite/ChangeLog ------ 
2020-05-24  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95106
	* gfortran.dg/equiv_11.f90: New test.
Checking 36442ee216acbe9a345ae625be53efbde8626477: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95530
	PR fortran/95537
	* decl.c (gfc_match_decl_type_spec): Enlarge buffer, and enhance
	string copy to detect buffer overflow.
	* gfortran.h (gfc_common_head): Enlarge buffer.
	* trans-common.c (finish_equivalences): Enhance string copy to
	detect buffer overflow.
Checking b3c17dfef86311a8b27b8e19854fd44cf8da29ee: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-30  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95090
	* class.c (get_unique_type_string): Use buffer overrun check.
Checking 78c4b06ac3df51c460de835917549c8555ee4eaf: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-29  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95090
	* class.c (get_unique_type_string): Enlarge temporary for
	name-mangling.  Use strncpy to prevent buffer overrun.
	(get_unique_hashed_string): Enlarge temporary.
	(gfc_hash_value): Enlarge temporary for name-mangling.
Checking 2ee8913bbbb0c278169b18b0123316ea4745120f: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-27  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95090
	* iresolve.c (gfc_get_string): Enlarge temporary for
	name-mangling.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-27  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95090
	* gfortran.dg/pr95090.f90: New test.
Checking 4b3ea558da6479dabe5841bcb0f6bad3f7fea858: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-04  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95500
	* trans-expr.c (gfc_conv_expr_reference): Do not dereference NULL
	pointer.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-04  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95500
	* gfortran.dg/pr95500.f90: New test.
Checking 27e985479e931771472663cad34f8b99c6f62627: OK
------ gcc/ChangeLog ------ 
2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* gimplify.c (gimplify_adjust_omp_clauses): Remove
	'GOMP_MAP_STRUCT' mapping from OpenACC 'exit data' directives.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* c-c++-common/goacc/struct-enter-exit-data-1.c: New file.
------ libgomp/ChangeLog ------ 
2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
	special handling.
Checking 96d8d068f3d6f3efebdca65f0a7b86e0609ee66f: OK
------ libgomp/ChangeLog ------ 
2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
	Simplify.
Checking 52d737058897eb438099b57234d41330147d0b6f: OK
------ libgomp/ChangeLog ------ 
2020-06-05  Julian Brown  <julian@codesourcery.com>

	Backported from master:
	2020-06-05  Julian Brown  <julian@codesourcery.com>

	* testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
Checking 26b07cf99bdf36423a5a5e2323b549be009bbde9: OK
------ gcc/ChangeLog ------ 
2020-06-05  H.J. Lu  <hjl.tools@gmail.com>

	* config/i386/driver-i386.c (host_detect_local_cpu): Support
	Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
	processor families.
Checking 676250d6f9692a8e338bb758c808209ac6c00df1: OK
------ gcc/ChangeLog ------ 
2020-06-05  Lili Cui  <lili.cui@intel.com>

	PR target/95525
	* config/i386/i386.h (PTA_WAITPKG): Change bitmask value.
Checking ae7aed03f202b3e1d0872ab7db32c9f7a663a24d: OK
Checking 6b45b400c51be06f2d0e37a7b461cbd4ce9fe37d: OK
------ gcc/cp/ChangeLog ------ 
2020-06-04  Jason Merrill  <jason@redhat.com>

	PR c++/93310
	* constexpr.c (cxx_eval_constant_expression) [OBJ_TYPE_REF]:
	Evaluate OBJ_TYPE_REF_EXPR.
------ gcc/testsuite/ChangeLog ------ 
2020-06-04  Jason Merrill  <jason@redhat.com>

	PR c++/93310
	* g++.dg/cpp2a/constexpr-virtual16.C: New test.
	* g++.dg/cpp2a/constexpr-virtual17.C: New test.
	* g++.dg/cpp2a/constexpr-new12.C: Adjust diagnostic.
Checking e244b0acf3111c95bb1559e7610f84740b90589f: OK
------ gcc/cp/ChangeLog ------ 
2020-06-04  Jason Merrill  <jason@redhat.com>

	PR c++/95158
	* class.c (lookup_vfn_in_binfo): New.
	* call.c (build_over_call): Use it.
	* cp-tree.h (resolves_to_fixed_type_p): Add default argument.
	(lookup_vfn_in_binfo): Declare.
------ gcc/testsuite/ChangeLog ------ 
2020-06-04  Jason Merrill  <jason@redhat.com>

	PR c++/95158
	* g++.dg/template/virtual5.C: New test.
Checking 4664ca1bc40318dbe60591cfe6d31c3d36d439c3: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
	Evaluate 'copyfrom' individually for each entry.
	* testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
Checking 5a1b479aedd83d0362f870f480a24a011e703de4: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
	Evaluate 'finalize' individually for each entry.
	* testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
	* testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
	file.
Checking 62eeb36773d37fbfda9183ce50b724f834a875f2: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
	usage.
	* testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
Checking 125621f569cfac9f4caa6afc1976d42b3d21359e: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
	checking.
	(acc_unmap_data, goacc_exit_data_internal): Restore
	'is_tgt_unmapped' checking.
	* testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
	file.
	* testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
Checking 1bca30efec5d684f03dfb88ed93cbe26e68d35b0: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
Checking 0c59837c89bd62e2addf4b34704a1ebe7e3bffab: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	PR libgomp/92854
	* oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
Checking 364f46de9f02dc00e8ff51cc9e2662ae37520389: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	PR libgomp/92854
	* testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
	more.
Checking c44c9858962ab8045d57d531a83b430dd7be8d5a: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
	'gomp_map_vars'.
	 (acc_map_data): Clean up accordingly.
Checking d7af812aaca41c3f7425593dcf8c36803e6a1f1e: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
	of over-eager 'finalize' clause.
	* testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
	file.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
Checking 52022880530d3ae9cdae81db74a40a92f2265c2c: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
Checking 16faaf529cfdefbf577cf6affc5869506b484599: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Julian Brown  <julian@codesourcery.com>

	Backported from master:
	2020-06-04  Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
	error path.
	(goacc_detach_internal): Likewise.
Checking 96bfb6e1d2dadef180c02d0e006ae72315305e76: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
	the checkpoint.
	* testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
	* testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
	* testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
	* testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
	* testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
Checking 6effd8a7264427785f999536fc37fd771df190ee: OK
------ gcc/cp/ChangeLog ------ 
2020-06-04  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-04  Patrick Palka  <ppalka@redhat.com>

	* pt.c (process_partial_specialization): Pass the full set of
	generic template arguments to strictly_subsumes.
------ gcc/testsuite/ChangeLog ------ 
2020-06-04  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-04  Patrick Palka  <ppalka@redhat.com>

	* g++.dg/cpp2a/concepts-partial-spec8.C: New test.
Checking a3a71447513cd6aee06631e1cc73a530e2c7fd95: OK
------ gcc/cp/ChangeLog ------ 
2020-06-04  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-04  Patrick Palka  <ppalka@redhat.com>

	PR c++/92103
	* pt.c (most_specialized_partial_spec): Reorganize the loop over
	DECL_TEMPLATE_SPECIALIZATIONS.  Check constraints_satisfied_p on
	the original template declaration, not on the tsubsted one.
------ gcc/testsuite/ChangeLog ------ 
2020-06-04  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-04  Patrick Palka  <ppalka@redhat.com>

	PR c++/92103
	* g++.dg/cpp2a/concepts-partial-spec7.C: New test.
Checking 5006eb931b0c35853796bbf3377a24e074123446: OK
Checking 22b55c108396a36930a6fafc7435a226723c25ef: OK
------ gcc/po/ChangeLog ------ 
2020-06-03  Joseph Myers  <joseph@codesourcery.com>

	* sv.po: Update.
Checking dd65f29a90714a45866230719be73aeebd757be4: OK
Checking e2ce47e31dec49aa32b7fa71994cac53ca195b17: OK
------ gcc/ChangeLog ------ 
2020-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/aarch64/aarch64-cores.def (zeus): Define.
	* config/aarch64/aarch64-tune.md: Regenerate.
	* doc/invoke.texi (AArch64 Options): Document zeus -mcpu option.
Checking 40912c25b57b4e21aae20a4896624387aa13f7ed: OK
------ gcc/cp/ChangeLog ------ 
2020-06-02  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-02  Patrick Palka  <ppalka@redhat.com>

	PR c++/92633
	PR c++/92838
	* pt.c (tsubst_function_decl): Don't do set_constraints when
	regenerating a lambda.
	(tsubst_lambda_expr): Substitute into the lambda's constraints
	and do set_constraints here.
------ gcc/testsuite/ChangeLog ------ 
2020-06-02  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-02  Patrick Palka  <ppalka@redhat.com>

	PR c++/92633
	PR c++/92838
	* g++.dg/cpp2a/concepts-lambda11.C: New test.
	* g++.dg/cpp2a/concepts-lambda12.C: New test.
Checking 0971201a1e5e1e5df7de666ea1c4b2605a51cc76: OK
------ gcc/cp/ChangeLog ------ 
2020-06-02  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-02  Patrick Palka  <ppalka@redhat.com>

	PR c++/95020
	* constraint.cc (tsubst_requires_expr): Produce a new
	requires-expression when processing_template_decl, even if
	template arguments are not dependent.
------ gcc/testsuite/ChangeLog ------ 
2020-06-02  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-02  Patrick Palka  <ppalka@redhat.com>

	PR c++/95020
	* g++.dg/cpp2a/concepts-lambda7.C: New test.
Checking 89b625be0aab128b2316a937881147cd4a2e354a: OK
------ gcc/ChangeLog ------ 
2020-06-02  Iain Buclaw  <ibuclaw@gdcproject.org>

	Backported from master:
	2020-06-02  Iain Buclaw  <ibuclaw@gdcproject.org>

	PR target/95420
	* config.gcc (arm-wrs-vxworks7*): Set default cpu to generic-armv7-a.
Checking e1ed588122920e95df75f9d8a1825f695d2c3000: OK
------ gcc/d/ChangeLog ------ 
2020-06-02  Iain Buclaw  <ibuclaw@gdcproject.org>

	Backported from master:
	2020-06-02  Iain Buclaw  <ibuclaw@gdcproject.org>

	* d-builtins.cc (build_frontend_type): Handle struct fields with NULL
	DECL_NAME.  Use byte_position to get the real field offset.
Checking cc2da346a2d9d595128371cc71d24201996e86f0: OK
Checking b703627d668257c0955a43838288e91973bf2721: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backported from master:
	2020-05-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/94361
	* class.c (finalize_component): Use expr->finalized instead of
	comp->finalized.
	* gfortran.h (gfc_component): Remove finalized member.
	(gfc_expr): Add it here instead.
------ gcc/testsuite/ChangeLog ------ 
2020-06-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backported from master:
	2020-05-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/94361
	* gfortran.dg/finalize_28.f90: Adjusted free counts.
	* gfortran.dg/finalize_33.f90: Likewise.
	* gfortran.dg/finalize_34.f90: Likewise.
	* gfortran.dg/finalize_35.f90: New test.
Checking 5b546b19d4ad345ed2c046ca8bc67172254aa62f: OK
Checking aacc2c3bdab71e486a69e4b43445e5dd8423253e: OK
Checking 6632f2920f08f5b45ffd1ada7006d4591ef9b172: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	PR c++/95386
	* constraint.cc (satisfaction_value): Relax to accept any
	INTEGER_CST that satisfies integer_zerop or integer_onep.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	PR c++/95386
	* g++.dg/concepts/pr95386.C: New test.
Checking 03c344ad180e094140be514a5e7cbaf95b5dcd2e: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-30  Patrick Palka  <ppalka@redhat.com>

	PR c++/92652
	PR c++/93698
	PR c++/94128
	* parser.c (cp_parser_requires_clause_expression): Temporarily
	increment processing_template_decl only if it is 0.
	(cp_parser_constraint_expression): Likewise.
	(cp_parser_requires_expression): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-30  Patrick Palka  <ppalka@redhat.com>

	PR c++/92652
	PR c++/93698
	PR c++/94128
	* g++.dg/cpp2a/concepts-lambda8.C: New test.
	* g++.dg/cpp2a/concepts-lambda9.C: New test.
	* g++.dg/cpp2a/concepts-lambda10.C: New test.
Checking 798a9da416bbfd8996da9a5d53955b082d5b94fe: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-30  Patrick Palka  <ppalka@redhat.com>

	PR c++/95241
	* constexpr.c (get_or_insert_ctor_field): Add limited support
	for RANGE_EXPR index lookups.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-30  Patrick Palka  <ppalka@redhat.com>

	PR c++/95241
	* g++.dg/cpp0x/constexpr-array25.C: New test.
Checking 9e81c820a3e48ead478dabbd6988482747f7a521: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-30  Patrick Palka  <ppalka@redhat.com>
		    Jason Merrill  <jason@redhat.com>

	PR c++/95181
	* class.c (add_method): Let special member function templates
	coexist if they are not equivalently constrained, or in a class
	template.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-30  Patrick Palka  <ppalka@redhat.com>
		    Jason Merrill  <jason@redhat.com>

	PR c++/95181
	* g++.dg/concepts/pr95181.C: New test.
	* g++.dg/concepts/pr95181-2.C: New test.
Checking c07c745b1ef62f633024824b7e125027f10c969b: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Jason Merrill  <jason@redhat.com>

	Backported from master:
	2020-05-30  Jason Merrill  <jason@redhat.com>

	PR c++/95371
	* pt.c (process_template_parm): Set DECL_TEMPLATE_INFO
	on the DECL_TEMPLATE_RESULT.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Jason Merrill  <jason@redhat.com>

	Backported from master:
	2020-05-30  Jason Merrill  <jason@redhat.com>

	PR c++/95371
	* g++.dg/cpp2a/concepts-ttp1.C: New test.
Checking af254bf1c6dd18fd453c033984cbcc413ce3a5e5: OK
Checking f123dbb2dd2b3f7be81c90258ade9e6099ba19e3: OK
------ gcc/testsuite/ChangeLog ------ 
2020-05-29  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-29  Jakub Jelinek  <jakub@redhat.com>

	PR libfortran/95390
	* gfortran.dg/findloc_8.f90: New test.
------ libgfortran/ChangeLog ------ 
2020-05-29  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-29  Jakub Jelinek  <jakub@redhat.com>

	PR libfortran/95390
	* Makefile.am (i_findloc0_c): Add findloc0_i10.c.
	(i_findloc1_c): Add findloc1_i10.c.
	* gfortran.map (GFORTRAN_10.2): New symbol version, export
	_gfortran_{,m,s}findloc{0,1}_c10 symbols.
	* Makefile.in: Regenerated.
	* generated/findloc0_c10.c: Generated.
	* generated/findloc1_c10.c: Generated.
Checking 2991e83b34a3af4237a207010a5ec147b83fc5b7: OK
------ gcc/testsuite/ChangeLog ------ 
2020-05-29  Marek Polacek  <polacek@redhat.com>

	* g++.dg/ext/tmplattr10.C: Only run in c++11.
Checking 49824d35e0c87a5fdb3f5ea41223aa21d6ca6bfc: OK
------ gcc/ChangeLog ------ 
2020-05-29  Alex Coplan  <alex.coplan@arm.com>

	Backported from master:
	2020-05-29  Alex Coplan  <alex.coplan@arm.com>

	PR target/94591
	* config/aarch64/aarch64.c (aarch64_evpc_rev_local): Don't match
	identity permutation.
------ gcc/testsuite/ChangeLog ------ 
2020-05-29  Alex Coplan  <alex.coplan@arm.com>

	Backported from master:
	2020-05-29  Alex Coplan  <alex.coplan@arm.com>

	PR target/94591
	* gcc.c-torture/execute/pr94591.c: New test.
Checking 49a35d1f699892907d7a34198274a286993c0f22: OK
------ gcc/ChangeLog ------ 
2020-05-29  Andrew Stubbs  <ams@codesourcery.com>

	* config/gcn/gcn-valu.md (add<mode>3_zext_dup): Change to a
	define_expand, and rename the original to ...
	(add<mode>3_vcc_zext_dup): ... this, and add a custom VCC operand.
	(add<mode>3_zext_dup_exec): Likewise, with ...
	(add<mode>3_vcc_zext_dup_exec): ... this.
	(add<mode>3_zext_dup2): Likewise, with ...
	(add<mode>3_zext_dup_exec): ... this.
	(add<mode>3_zext_dup2_exec): Likewise, with ...
	(add<mode>3_zext_dup2): ... this.
	* config/gcn/gcn.c (gcn_expand_scalar_to_vector_address): Switch
	addv64di3_zext* calls to use addv64di3_vcc_zext*.
------ gcc/testsuite/ChangeLog ------ 
2020-05-29  Andrew Stubbs  <ams@codesourcery.com>

	* gcc.target/gcn/gcn.exp: New file.
	* gcc.target/gcn/vcc-clobber.c: New file.
Checking 0579f339110acb85d5bda128588f4d57c45dfe7a: OK
------ gcc/ChangeLog ------ 
2020-05-29  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-05-27  Dong JianQiang  <dongjianqiang2@huawei.com>

	PR gcov-profile/95332
	* gcov-io.c (gcov_var::endian): Move field.
	(from_file): Add IN_GCOV_TOOL check.
	* gcov-io.h (gcov_magic): Ditto.
------ libgcc/ChangeLog ------ 
2020-05-29  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-05-27  Dong JianQiang  <dongjianqiang2@huawei.com>

	PR gcov-profile/95332
	* libgcov-util.c (read_gcda_file): Call gcov_magic.
	* libgcov.h (gcov_magic): Disable GCC poison.
Checking 81211dbf7fd3e858e1027a6fda40cc47b5503499: OK
------ contrib/ChangeLog ------ 
2020-05-29  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-05-29  Martin Liska  <mliska@suse.cz>

	* git-backport.py: The script did 'git co HEAD~' when
	there was no modified ChangeLog file in a successful
	git cherry pick.
	Run cherry-pick --continue without editor.
Checking 778363009b8e3233d1000172813f2cca701e9c07: OK
Checking e1396ee72e68cc8fba99ce986f2910cd39e335b8: OK
------ libgfortran/ChangeLog ------ 
2020-05-28  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-28  Harald Anlauf  <anlauf@gmx.de>

	PR libfortran/95104
	* io/unit.c (unlock_unit): Guard by check for NULL pointer.
Checking c082cb8a2523d8c5afe5710e265bc72dd71aa60b: OK
------ gcc/ChangeLog ------ 
2020-05-28  Richard Sandiford  <richard.sandiford@arm.com>

	PR testsuite/95361
	* config/aarch64/aarch64.c (aarch64_expand_epilogue): Only
	redefine the CFA if we have CFI operations.
------ gcc/testsuite/ChangeLog ------ 
2020-05-28  Richard Sandiford  <richard.sandiford@arm.com>

	PR testsuite/95361
	* gcc.target/aarch64/sve/pr95361.c: New test.
Checking f2fe2ad8d379297dcf571b2b9c46200c5ae5391f: OK
------ gcc/fortran/ChangeLog ------ 
2020-05-28  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-05-28  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Mark Eggleston  <markeggleston@gcc.gnu.org>

	PR fortran/94397
	* match.c (gfc_match_type_spec): New variable ok initialised
	to true. Set ok with the return value of gfc_reduce_init_expr
	called only if the expression is not EXPR_CONSTANT and is not
	EXPR_VARIABLE. Add !ok to the check for type not being integer
	or the rank being greater than zero.
------ gcc/testsuite/ChangeLog ------ 
2020-05-28  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-05-28  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Mark Eggleston  <markeggleston@gcc.gnu.org>

	PR fortran/94397
	* gfortran.dg/pr94397.F90: New test.
Checking 04b134837967ef392be361add19c60a1e9cad11d: OK
------ gcc/ChangeLog ------ 
2020-05-28  Uroš Bizjak  <ubizjak@gmail.com>

	* config/i386/mmx.md (mmx_haddsubv2sf3): Correct
	RTL template to model horizontal subtraction and addition.
Checking 31d827e98ab32060ef522fa5f3e42c1175e1a439: OK
------ gcc/ChangeLog ------ 
2020-05-28  Uroš Bizjak  <ubizjak@gmail.com>

	PR target/95355
	* config/i386/sse.md
	(<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>):
	Remove %q operand modifier from insn template.
	(avx512f_<code>v8hiv8di2<mask_name>): Ditto.
------ gcc/testsuite/ChangeLog ------ 
2020-05-28  Uroš Bizjak  <ubizjak@gmail.com>

	PR target/95355
	* gcc.target/i386/pr95355.c: New test.
Checking 26a42e9df9689765831f018eb14f1ae885212335: OK
------ gcc/ChangeLog ------ 
2020-05-28  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-05-28  Martin Liska  <mliska@suse.cz>

	PR web/95380
	* doc/invoke.texi: Add missing params, remove max-once-peeled-insns and
	rename ipcp-unit-growth to ipa-cp-unit-growth.
Checking 4e2c7f9a29c212db4bf428799a2d62f79f392511: OK
------ gcc/fortran/ChangeLog ------ 
2020-05-28  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-05-28  Tobias Burnus  <tobias@codesourcery.com>
		    Mark Eggleston  <markeggleston@gnu.gcc.org>

	PR fortran/50392
	* trans-decl.c (gfc_get_symbol_decl): Remove unnecessary block
	delimiters.  Add auxiliary variables if a label is assigned to
	a return variable. (gfc_gat_fake_result): If the symbol has an
	assign attribute set declaration from the symbol's backend
	declaration.
------ gcc/testsuite/ChangeLog ------ 
2020-05-28  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-05-28  Tobias Burnus  <tobias@codesourcery.com>

	PR fortran/50392
	* gfortran.dg/pr50392.f: New test.
Checking e8c250211da834cb4823ae40079746338124cac8: OK

Comments

H.J. Lu via Gcc-patches June 17, 2020, 8:58 a.m. | #1
On Wed, Jun 17, 2020 at 10:46:19AM +0200, Martin Liška wrote:
> One minor limitation is that the timestamp (commit date)

> of the original commit is lost so that's why we print:


Why?  You have the
(cherry picked from commit 8cff672cb9a132d3d3158c2edfc9a64b55292b80)
line, so you can
git log -1 --format=%ci 8cff672cb9a132d3d3158c2edfc9a64b55292b80
2020-06-11 11:02:58 +0200
and just pick the date from there? (or %cI or %ct or whatever is most
appropriate).

	Jakub
Martin Liška June 17, 2020, 9:30 a.m. | #2
On 6/17/20 10:58 AM, Jakub Jelinek wrote:
> On Wed, Jun 17, 2020 at 10:46:19AM +0200, Martin Liška wrote:

>> One minor limitation is that the timestamp (commit date)

>> of the original commit is lost so that's why we print:

> 

> Why?  You have the

> (cherry picked from commit 8cff672cb9a132d3d3158c2edfc9a64b55292b80)

> line, so you can

> git log -1 --format=%ci 8cff672cb9a132d3d3158c2edfc9a64b55292b80

> 2020-06-11 11:02:58 +0200

> and just pick the date from there? (or %cI or %ct or whatever is most

> appropriate).


I've just implemented that. Effectively adding a new hook that is only implemented
by git_repository.py (using GitPython). For server hook we don't need it.

Is the output better now?

Martin

> 

> 	Jakub

>
From ccfd5448c3476dab570ecd7facf0a43afc4c1c4d Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>

Date: Wed, 17 Jun 2020 10:41:17 +0200
Subject: [PATCH] gcc-changelog: Support 'Backported from master'.

contrib/ChangeLog:

	* gcc-changelog/git_commit.py: Print 'Backported from master'
	heading to backported commits.
	* gcc-changelog/test_email.py: Test it.
	* gcc-changelog/test_patches.txt: Add new patch.
	* gcc-changelog/git_repository.py: Add commit_to_date hook.
	* gcc-changelog/git_email.py: Add fuzzy implementation
	of commit_to_date_hook.
---
 contrib/gcc-changelog/git_commit.py     | 39 ++++++++++++++++++++-----
 contrib/gcc-changelog/git_email.py      |  2 +-
 contrib/gcc-changelog/git_repository.py | 10 ++++++-
 contrib/gcc-changelog/test_email.py     | 10 +++++++
 contrib/gcc-changelog/test_patches.txt  | 29 ++++++++++++++++++
 5 files changed, 80 insertions(+), 10 deletions(-)

diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index e868e028225..ab9fdbd52fd 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -163,6 +163,7 @@ CHERRY_PICK_PREFIX = '(cherry picked from commit '
 REVIEW_PREFIXES = ('reviewed-by: ', 'reviewed-on: ', 'signed-off-by: ',
                    'acked-by: ', 'tested-by: ', 'reported-by: ',
                    'suggested-by: ')
+DATE_FORMAT = '%Y-%m-%d'
 
 
 class Error:
@@ -246,7 +247,7 @@ class ChangeLogEntry:
 
 class GitCommit:
     def __init__(self, hexsha, date, author, body, modified_files,
-                 strict=True):
+                 strict=True, commit_to_date_hook=None):
         self.hexsha = hexsha
         self.lines = body
         self.modified_files = modified_files
@@ -259,6 +260,8 @@ class GitCommit:
         self.top_level_authors = []
         self.co_authors = []
         self.top_level_prs = []
+        self.cherry_pick_commit = None
+        self.commit_to_date_hook = commit_to_date_hook
 
         project_files = [f for f in self.modified_files
                          if self.is_changelog_filename(f[0])
@@ -402,6 +405,8 @@ class GitCommit:
                 elif lowered_line.startswith(REVIEW_PREFIXES):
                     continue
                 elif line.startswith(CHERRY_PICK_PREFIX):
+                    commit = line[len(CHERRY_PICK_PREFIX):].rstrip(')')
+                    self.cherry_pick_commit = commit
                     continue
 
                 # ChangeLog name will be deduced later
@@ -592,24 +597,42 @@ class GitCommit:
                     err = Error(msg % (entry.folder, changelog_location), file)
                     self.errors.append(err)
 
+    @classmethod
+    def format_authors_in_changelog(cls, authors, timestamp, prefix=''):
+        output = ''
+        for i, author in enumerate(authors):
+            if i == 0:
+                output += '%s%s  %s\n' % (prefix, timestamp, author)
+            else:
+                output += '%s\t    %s\n' % (prefix, author)
+        output += '\n'
+        return output
+
     def to_changelog_entries(self, use_commit_ts=False):
+        current_timestamp = self.date.strftime(DATE_FORMAT)
         for entry in self.changelog_entries:
             output = ''
             timestamp = entry.datetime
+            if self.cherry_pick_commit:
+                timestamp = self.commit_to_date_hook(self.cherry_pick_commit)
+                if timestamp:
+                    timestamp = timestamp.strftime(DATE_FORMAT)
             if not timestamp or use_commit_ts:
-                timestamp = self.date.strftime('%Y-%m-%d')
+                timestamp = current_timestamp
             authors = entry.authors if entry.authors else [self.author]
             # add Co-Authored-By authors to all ChangeLog entries
             for author in self.co_authors:
                 if author not in authors:
                     authors.append(author)
 
-            for i, author in enumerate(authors):
-                if i == 0:
-                    output += '%s  %s\n' % (timestamp, author)
-                else:
-                    output += '\t    %s\n' % author
-            output += '\n'
+            if self.cherry_pick_commit:
+                output += self.format_authors_in_changelog([self.author],
+                                                           current_timestamp)
+                output += '\tBackported from master:\n'
+                output += self.format_authors_in_changelog(authors,
+                                                           timestamp, '\t')
+            else:
+                output += self.format_authors_in_changelog(authors, timestamp)
             for pr in entry.prs:
                 output += '\t%s\n' % pr
             for line in entry.lines:
diff --git a/contrib/gcc-changelog/git_email.py b/contrib/gcc-changelog/git_email.py
index bf74bd8b156..2083d7b7ec9 100755
--- a/contrib/gcc-changelog/git_email.py
+++ b/contrib/gcc-changelog/git_email.py
@@ -67,7 +67,7 @@ class GitEmail(GitCommit):
                 t = 'M'
             modified_files.append((target, t))
         super().__init__(None, date, author, body, modified_files,
-                         strict=strict)
+                         strict=strict, commit_to_date_hook=lambda x: date)
 
 
 # With zero arguments, process every patch file in the ./patches directory.
diff --git a/contrib/gcc-changelog/git_repository.py b/contrib/gcc-changelog/git_repository.py
index e3b6c4d7a38..a419bd97701 100755
--- a/contrib/gcc-changelog/git_repository.py
+++ b/contrib/gcc-changelog/git_repository.py
@@ -32,6 +32,13 @@ from git_commit import GitCommit
 def parse_git_revisions(repo_path, revisions, strict=False):
     repo = Repo(repo_path)
 
+    def commit_to_date(commit):
+        try:
+            c = repo.commit(commit)
+            return datetime.utcfromtimestamp(c.committed_date)
+        except ValueError:
+            return None
+
     parsed_commits = []
     if '..' in revisions:
         commits = list(repo.iter_commits(revisions))
@@ -60,6 +67,7 @@ def parse_git_revisions(repo_path, revisions, strict=False):
         author = '%s  <%s>' % (commit.author.name, commit.author.email)
         git_commit = GitCommit(commit.hexsha, date, author,
                                commit.message.split('\n'), modified_files,
-                               strict=strict)
+                               strict=strict,
+                               commit_to_date_hook=commit_to_date)
         parsed_commits.append(git_commit)
     return parsed_commits
diff --git a/contrib/gcc-changelog/test_email.py b/contrib/gcc-changelog/test_email.py
index a185b85e838..1c9f8847fe7 100755
--- a/contrib/gcc-changelog/test_email.py
+++ b/contrib/gcc-changelog/test_email.py
@@ -351,3 +351,13 @@ class TestGccChangelog(unittest.TestCase):
         assert len(modified_files) == 3
         assert modified_files[1] == ('gcc/ada/libgnat/s-atopar.adb', 'D')
         assert modified_files[2] == ('gcc/ada/libgnat/s-aoinar.adb', 'A')
+
+    def test_backport(self):
+        email = self.from_patch_glob('0001-asan-fix-RTX-emission.patch')
+        assert not email.errors
+        assert len(email.changelog_entries) == 1
+        entry = list(email.to_changelog_entries())[0][1]
+        assert entry.startswith('2020-06-11  Martin Liska  <mliska@suse.cz>')
+        assert '\tBackported from master:' in entry
+        assert '\t2020-06-11  Martin Liska  <mliska@suse.cz>' in entry
+        assert '\t\t    Jakub Jelinek  <jakub@redhat.com>' in entry
diff --git a/contrib/gcc-changelog/test_patches.txt b/contrib/gcc-changelog/test_patches.txt
index 1dec932f783..1463fb94936 100644
--- a/contrib/gcc-changelog/test_patches.txt
+++ b/contrib/gcc-changelog/test_patches.txt
@@ -3131,3 +3131,32 @@ index 60d83c30771..9e7efd13ecc 100644
 +
 -- 
 2.26.2
+
+=== 0001-asan-fix-RTX-emission.patch ===
+From e1d68582022cfa2b1dc76646724b397ba2739439 Mon Sep 17 00:00:00 2001
+From: Martin Liska <mliska@suse.cz>
+Date: Thu, 11 Jun 2020 09:34:41 +0200
+Subject: [PATCH] asan: fix RTX emission for ilp32
+
+gcc/ChangeLog:
+
+	PR sanitizer/95634
+	* asan.c (asan_emit_stack_protection): Fix emission for ilp32
+	by using Pmode instead of ptr_mode.
+
+Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
+(cherry picked from commit 8cff672cb9a132d3d3158c2edfc9a64b55292b80)
+---
+ gcc/asan.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/gcc/asan.c b/gcc/asan.c
+index 823eb539993..4ec22162c12 100644
+--- a/gcc/asan.c
++++ b/gcc/asan.c
+@@ -1 +1,2 @@
+ 
++
+-- 
+2.27.0
+
-- 
2.27.0
Checking f00c9e9793dc7a89023aba7d3b64f05d15fbc5eb: OK
Checking 29e9bc108f2c205b770b115aeade51674bfb5b1c: OK
------ gcc/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	* config/arm/arm_mve.h (__arm_vbicq_n_u16): Correct the intrinsic
	arguments.
	(__arm_vbicq_n_s16): Likewise.
	(__arm_vbicq_n_u32): Likewise.
	(__arm_vbicq_n_s32): Likewise.
	(__arm_vbicq): Modify polymorphic variant.
------ gcc/testsuite/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	* gcc.target/arm/mve/intrinsics/vbicq_f16.c: Modify.
	* gcc.target/arm/mve/intrinsics/vbicq_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_n_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_n_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_n_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_n_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vbicq_u8.c: Likewise.
Checking aac5ae144363dbd857654511fbf335e53c8f7cf5: OK
------ gcc/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	PR target/94735
	* config/arm/predicates.md (mve_scatter_memory): Define to
	match (mem (reg)) for scatter store memory.
	* config/arm/mve.md (mve_vstrbq_scatter_offset_<supf><mode>): Modify
	define_insn to define_expand.
	(mve_vstrbq_scatter_offset_p_<supf><mode>): Likewise.
	(mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
	(mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
	(mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
	(mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
	(mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
	(mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
	(mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
	(mve_vstrhq_scatter_offset_fv8hf): Likewise.
	(mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
	(mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
	(mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
	(mve_vstrwq_scatter_offset_fv4sf): Likewise.
	(mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
	(mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
	(mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
	(mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
	(mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
	(mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
	(mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
	(mve_vstrbq_scatter_offset_<supf><mode>_insn): Define insn for scatter
	stores.
	(mve_vstrbq_scatter_offset_p_<supf><mode>_insn): Likewise.
	(mve_vstrhq_scatter_offset_<supf><mode>_insn): Likewise.
	(mve_vstrhq_scatter_shifted_offset_p_<supf><mode>_insn): Likewise.
	(mve_vstrhq_scatter_shifted_offset_<supf><mode>_insn): Likewise.
	(mve_vstrdq_scatter_offset_p_<supf>v2di_insn): Likewise.
	(mve_vstrdq_scatter_offset_<supf>v2di_insn): Likewise.
	(mve_vstrdq_scatter_shifted_offset_p_<supf>v2di_insn): Likewise.
	(mve_vstrdq_scatter_shifted_offset_<supf>v2di_insn): Likewise.
	(mve_vstrhq_scatter_offset_fv8hf_insn): Likewise.
	(mve_vstrhq_scatter_offset_p_fv8hf_insn): Likewise.
	(mve_vstrhq_scatter_shifted_offset_fv8hf_insn): Likewise.
	(mve_vstrhq_scatter_shifted_offset_p_fv8hf_insn): Likewise.
	(mve_vstrwq_scatter_offset_fv4sf_insn): Likewise.
	(mve_vstrwq_scatter_offset_p_fv4sf_insn): Likewise.
	(mve_vstrwq_scatter_offset_p_<supf>v4si_insn): Likewise.
	(mve_vstrwq_scatter_offset_<supf>v4si_insn): Likewise.
	(mve_vstrwq_scatter_shifted_offset_fv4sf_insn): Likewise.
	(mve_vstrwq_scatter_shifted_offset_p_fv4sf_insn): Likewise.
	(mve_vstrwq_scatter_shifted_offset_p_<supf>v4si_insn): Likewise.
	(mve_vstrwq_scatter_shifted_offset_<supf>v4si_insn): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	PR target/94735
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_base.c: New test.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_base_p.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_offset.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_offset_p.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_shifted_offset.c:
	Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstore_scatter_shifted_offset_p.c:
	Likewise.
Checking 1aabb312fa0ad07793a974ee5cf92a1e65b659fe: OK
------ gcc/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

	* config/arm/arm.c (mve_vector_mem_operand): Fix unwanted
	fall-throughs.
Checking 32c348ce3efd1d693df43045338c8c3e33798edd: OK
------ gcc/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
	    Andre Vieira   <andre.simoesdiasvieira@arm.com>

	PR target/94959
	* config/arm/arm-protos.h (arm_mode_base_reg_class): Function
	declaration.
	(mve_vector_mem_operand): Likewise.
	* config/arm/arm.c (thumb2_legitimate_address_p): For MVE target check
	the load from memory to a core register is legitimate for give mode.
	(mve_vector_mem_operand): Define function.
	(arm_print_operand): Modify comment.
	(arm_mode_base_reg_class): Define.
	* config/arm/arm.h (MODE_BASE_REG_CLASS): Modify to add check for
	TARGET_HAVE_MVE and expand to arm_mode_base_reg_class on TRUE.
	* config/arm/constraints.md (Ux): Likewise.
	(Ul): Likewise.
	* config/arm/mve.md (mve_mov): Replace constraint Us with Ux and also
	add support for missing Vector Store Register and Vector Load Register.
	Add a new alternative to support load from memory to PC (or label) in
	vector store/load.
	(mve_vstrbq_<supf><mode>): Modify constraint Us to Ux.
	(mve_vldrbq_<supf><mode>): Modify constriant Us to Ux, predicate to
	mve_memory_operand and also modify the MVE instructions to emit.
	(mve_vldrbq_z_<supf><mode>): Modify constraint Us to Ux.
	(mve_vldrhq_fv8hf): Modify constriant Us to Ux, predicate to
	mve_memory_operand and also modify the MVE instructions to emit.
	(mve_vldrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
	mve_memory_operand and also modify the MVE instructions to emit.
	(mve_vldrhq_z_fv8hf): Likewise.
	(mve_vldrhq_z_<supf><mode>): Likewise.
	(mve_vldrwq_fv4sf): Likewise.
	(mve_vldrwq_<supf>v4si): Likewise.
	(mve_vldrwq_z_fv4sf): Likewise.
	(mve_vldrwq_z_<supf>v4si): Likewise.
	(mve_vld1q_f<mode>): Modify constriant Us to Ux.
	(mve_vld1q_<supf><mode>): Likewise.
	(mve_vstrhq_fv8hf): Modify constriant Us to Ux, predicate to
	mve_memory_operand.
	(mve_vstrhq_p_fv8hf): Modify constriant Us to Ux, predicate to
	mve_memory_operand and also modify the MVE instructions to emit.
	(mve_vstrhq_p_<supf><mode>): Likewise.
	(mve_vstrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
	mve_memory_operand.
	(mve_vstrwq_fv4sf): Modify constriant Us to Ux.
	(mve_vstrwq_p_fv4sf): Modify constriant Us to Ux and also modify the MVE
	instructions to emit.
	(mve_vstrwq_p_<supf>v4si): Likewise.
	(mve_vstrwq_<supf>v4si): Likewise.Modify constriant Us to Ux.
	* config/arm/predicates.md (mve_memory_operand): Define.
------ gcc/testsuite/ChangeLog ------ 
2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
	    Andre Vieira   <andre.simoesdiasvieira@arm.com>

	PR target/94959
	* gcc.target/arm/mve/intrinsics/mve_vector_float2.c: Modify.
	* gcc.target/arm/mve/intrinsics/mve_vldr.c: New test.
	* gcc.target/arm/mve/intrinsics/mve_vldr_z.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstr.c: Likewise.
	* gcc.target/arm/mve/intrinsics/mve_vstr_p.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_f16.c: Modify.
	* gcc.target/arm/mve/intrinsics/vld1q_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_f16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vld1q_z_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrbq_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrbq_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrbq_z_s8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrbq_z_u8.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrdq_gather_base_wb_s64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrdq_gather_base_wb_u64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrdq_gather_base_wb_z_s64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrdq_gather_base_wb_z_u64.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_f16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_f16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_s16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_u16.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrhq_z_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_z_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_z_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_gather_base_wb_z_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_z_f32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_z_s32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vldrwq_z_u32.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vuninitializedq_float.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vuninitializedq_float1.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vuninitializedq_int.c: Likewise.
	* gcc.target/arm/mve/intrinsics/vuninitializedq_int1.c: Likewise.
Checking 7d249d84e4c1be7c6f857c3a9d7791623a0e9d00: OK
------ gcc/testsuite/ChangeLog ------ 
2020-06-16  Tobias Burnus  <tobias@codesourcery.com>

	Backported from master:
	2020-06-16  Tobias Burnus  <tobias@codesourcery.com>

	PR middle-end/95622
	* lib/target-supports.exp (check_effective_target_offloading_enabled):
	New.
	* c-c++-common/goacc/kernels-alias-ipa-pta-2.c: Use it for xfail.
	* c-c++-common/goacc/kernels-alias-ipa-pta-4.c: Likewise.
	* c-c++-common/goacc/kernels-alias-ipa-pta.c: Likewise.
Checking 32f2eef94c285f365f44ce2add07704eaeabf133: OK
Checking 8a3453786c3c2d6343c5258e564ad139d5ad116f: OK
------ gcc/ChangeLog ------ 
2020-06-15  Andrew Stubbs  <ams@codesourcery.com>

	Backported from master:
	2020-05-15  Andrew Stubbs  <ams@codesourcery.com>

	* config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.
Checking 0a76844b5d2db59768835318d001aa6548265cd1: OK
------ gcc/ChangeLog ------ 
2020-06-15  Tobias Burnus  <tobias@codesourcery.com>

	Backported from master:
	2020-06-09  Tobias Burnus  <tobias@codesourcery.com>

	* omp-offload.c (add_decls_addresses_to_decl_constructor,
	omp_finish_file): With in_lto_p, stream out all offload-table
	items even if the symtab_node does not exist.
Checking 9074deee2c5039ff26c8587cc598bc658d8ff32f: OK
------ gcc/ChangeLog ------ 
2020-06-15  Tobias Burnus  <tobias@codesourcery.com>

	Backported from master:
	2020-06-08  Tobias Burnus  <tobias@codesourcery.com>

	PR lto/94848
	PR middle-end/95551
	* omp-offload.c (add_decls_addresses_to_decl_constructor,
	omp_finish_file): Skip removed items.
	* lto-cgraph.c (output_offload_tables): Likewise; set force_output
	to this node for variables and functions.
------ libgomp/ChangeLog ------ 
2020-06-15  Tobias Burnus  <tobias@codesourcery.com>

	Backported from master:
	2020-06-08  Tobias Burnus  <tobias@codesourcery.com>

	PR lto/94848
	PR middle-end/95551
	* testsuite/libgomp.fortran/target-var.f90: New test.
Checking 0a274fa150fea4c6d66e7ee3a950d1659c9f1a14: OK
Checking fbd1bae3d8260b5e5bfc4d7cffe8c6e659abe235: OK
------ gcc/cp/ChangeLog ------ 
2020-06-14  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-11  Iain Sandoe  <iain@sandoe.co.uk>

	* coroutines.cc (instantiate_coro_traits): Pass a reference
	to lambda closure objects to traits instantiation.
	(morph_fn_to_coro): Likewise for promise parameter
	preview and allocator lookup.
Checking b0feef39fe53fbc46c22ac0c745f91dbf96cdd00: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95544
	* check.c (invalid_null_arg): Rename to gfc_invalid_null_arg.
	(gfc_check_associated, gfc_check_kind, gfc_check_merge)
	(gfc_check_shape, gfc_check_size, gfc_check_spread)
	(gfc_check_transfer): Adjust.
	(gfc_check_len_lentrim, gfc_check_trim): Check for NULL() argument.
	* gfortran.h: Declare gfc_invalid_null_arg ().
	* intrinsic.c (check_arglist): Check for NULL() argument.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95544
	* gfortran.dg/pr95544.f90: New file.
Checking 294105192c9f6bdcebce81752fc1e64e2b7adebb: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-05  Steve Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/93366
	* check.c (gfc_check_associated, invalid_null_arg): Factorize
	check for presence of invalid NULL() argument.
	(gfc_check_kind, gfc_check_merge, gfc_check_shape)
	(gfc_check_sizeof, gfc_check_spread, gfc_check_transfer): Use this
	check for presence of invalid NULL() arguments.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-05  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/93366
	* gfortran.dg/pr93366.f90: New test.
Checking 8c8102817739505fe47a949fc4ec38fe62518818: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95503
	* expr.c (gfc_check_pointer_assign): Skip contiguity check of rhs
	of pointer assignment if lhs cannot be simply contiguous.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95503
	* gfortran.dg/pr95503.f90: New test.
Checking 0c39742d618bad5ab5b9dc8ae040612a61e92103: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/94109
	* class.c (finalize_component): Return early if finalization has
	already happened for expression and component within namespace.
	* gfortran.h (gfc_was_finalized): New type.
	(gfc_namespace): Add member was_finalzed.
	(gfc_expr): Remove finalized.
	* symbol.c (gfc_free_namespace): Free was_finalized.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/94109
	* gfortran.dg/finalize_34.f90: Adjust free counts.
	* gfortran.dg/finalize_36.f90: New test.
Checking a44761a6aa30d743a01c930dcfc70f11b9369fd8: OK
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Marek Polacek  <polacek@redhat.com>

	Backported from master:
	2020-05-28  Marek Polacek  <polacek@redhat.com>

	* g++.dg/cpp0x/initlist-array12.C: Fix the definition of
	initializer_list for ilp32 target.
Checking b2229175b53e3b1c58b4aa963e3d0bb06ca063bf: OK
------ gcc/c-family/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-06-09  Jakub Jelinek  <jakub@redhat.com>

	PR c/95580
	* c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
	case when MEM_REF's first argument has type pointer to incomplete type.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-06-09  Jakub Jelinek  <jakub@redhat.com>

	PR c/95580
	* gcc.dg/pr95580.c: New test.
Checking c75a2abc3a976096b89475f062d4795247aa02b8: OK
------ gcc/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-06-08  Jakub Jelinek  <jakub@redhat.com>

	PR target/95528
	* tree-ssa-forwprop.c (simplify_vector_constructor): Don't use
	VEC_UNPACK*_EXPR or VEC_PACK_TRUNC_EXPR with scalar modes unless the
	type is vector boolean.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-06-08  Jakub Jelinek  <jakub@redhat.com>

	PR target/95528
	* g++.dg/opt/pr95528.C: New test.
Checking 808f30b0772733886cefe7dead50862c169bcb2b: OK
------ gcc/cp/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-28  Jakub Jelinek  <jakub@redhat.com>

	PR c++/95328
	* decl.c (cp_finish_decomp): Call complete_type before checking
	COMPLETE_TYPE_P.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-28  Jakub Jelinek  <jakub@redhat.com>

	PR c++/95328
	* g++.dg/cpp1z/decomp53.C: New test.
Checking 6d6df84dc031924cb95599a6c498aa27d3bceac4: OK
------ gcc/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-26  Jakub Jelinek  <jakub@redhat.com>

	PR c++/95197
	* gimplify.c (find_combined_omp_for): Move to omp-general.c.
	* omp-general.h (find_combined_omp_for): Declare.
	* omp-general.c: Include tree-iterator.h.
	(find_combined_omp_for): New function, moved from gimplify.c.
------ gcc/cp/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-26  Jakub Jelinek  <jakub@redhat.com>

	PR c++/95197
	* cp-gimplify.c: Include omp-general.h.
	(cp_genericize_r) <case OMP_DISTRIBUTE>: For class iteration
	variables in composite distribute parallel for, instantiate copy
	ctor of their types.
Checking e09d626551fef9b5719073427170d11e97038c44: OK
------ gcc/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-14  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/95108
	* omp-simd-clone.c (struct modify_stmt_info): Add after_stmt member.
	(ipa_simd_modify_stmt_ops): For PHIs, only add before first stmt in
	entry block if info->after_stmt is NULL, otherwise add after that stmt
	and update it after adding each stmt.
	(ipa_simd_modify_function_body): Initialize info.after_stmt.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-14  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/95108
	* gcc.dg/gomp/pr95108.c: New test.
Checking 16710ff9803bc48aabdfecce30866ffac6d29342: OK
------ gcc/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-13  Jakub Jelinek  <jakub@redhat.com>

	PR debug/95080
	* cfgrtl.c (purge_dead_edges): Skip over debug and note insns even
	if the last insn is a note.
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-13  Jakub Jelinek  <jakub@redhat.com>

	PR debug/95080
	* g++.dg/opt/pr95080.C: New test.
Checking 892b4f74d9b05821f87fec9fc104fba6325972e1: OK
------ gcc/testsuite/ChangeLog ------ 
2020-06-14  Iain Buclaw  <ibuclaw@gdcproject.org>

	Backported from master:
	2020-06-14  Iain Buclaw  <ibuclaw@gdcproject.org>

	PR testsuite/95575
	* lib/gdc-utils.exp (gdc-do-test): Re-add $subdir link and inclusion
	in filename.
Checking 94ccc38063dc9769538cd4336fb7a1fd88419284: OK
Checking b88498204521731f46b439b33f936009fedfdf35: OK
------ gcc/cp/ChangeLog ------ 
2020-06-13  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-10  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95440
	* call.c (add_candidates): Use vec_safe_length() for
	testing the arguments list.
	(build_new_method_call_1): Use vec_safe_is_empty() when
	checking for an empty args list.
------ gcc/testsuite/ChangeLog ------ 
2020-06-13  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-10  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95440
	* g++.dg/coroutines/pr95440.C: New test.
Checking 652ec7e8c046b239c42dedd295acf1815ed2b93a: OK
------ gcc/cp/ChangeLog ------ 
2020-06-13  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-11  Patrick Palka  <ppalka@redhat.com>

	PR c++/93467
	* constraint.cc (associate_classtype_constraints): If there is a
	discrepancy between the current template depth and the template
	depth of the original declaration, then adjust the template
	parameter depth within the current constraints appropriately.
	* pt.c (tsubst_friend_class): Substitute into and set the
	constraints on the injected declaration.
------ gcc/testsuite/ChangeLog ------ 
2020-06-13  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-11  Patrick Palka  <ppalka@redhat.com>

	PR c++/93467
	* g++.dg/cpp2a/concepts-friend6.C: New test.
	* g++.dg/cpp2a/concepts-friend7.C: New test.
Checking 3af22062bee49639269c4fa0e82e3850366f4939: OK
Checking 703f9d8687ecbd86cd88ec0bf16088bb9e36303e: OK
Checking 284f809ef7fe8fa6b518c103d31e514a98f0f36e: OK
------ gcc/cp/ChangeLog ------ 
2020-06-12  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-01  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95350
	* coroutines.cc (struct param_info): Remove rv_ref field.
	(build_actor_fn): Remove specifial rvalue ref handling.
	(morph_fn_to_coro): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-06-12  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-01  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95350
	* g++.dg/coroutines/torture/func-params-08.C: Adjust test to
	reflect that all rvalue refs are dangling.
	* g++.dg/coroutines/torture/func-params-09-awaitable-parms.C:
	Likewise.
	* g++.dg/coroutines/pr95350.C: New test.
Checking e1d68582022cfa2b1dc76646724b397ba2739439: OK
------ gcc/ChangeLog ------ 
2020-06-12  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-06-11  Martin Liska  <mliska@suse.cz>
		    Jakub Jelinek  <jakub@redhat.com>

	PR sanitizer/95634
	* asan.c (asan_emit_stack_protection): Fix emission for ilp32
	by using Pmode instead of ptr_mode.
Checking 036b288ca4cf5d3b1d908ef97c25b7f92153ff8a: OK
------ gcc/ChangeLog ------ 
2020-06-12  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-06-10  Martin Liska  <mliska@suse.cz>

	PR sanitizer/94910
	* asan.c (asan_emit_stack_protection): Emit
	also **SavedFlagPtr(FakeStack, class_id) = 0 in order to release
	a stack frame.
Checking d78c4732bc30514ad8c89f3c9d7a96087d6b8551: OK
Checking 23dd42562369911a92d7da045ebe2c03b286a769: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95560
	* name-lookup.c (check_local_shadow): Check if types are
	non-null before calling same_type_p.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95560
	* g++.dg/warn/Wshadow-local-3.C: New test.
Checking ae275b986b8cc747a5b4f389cb05a71fdee1f886: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95066
	* decl.c (duplicate_decls): Set DECL_HAS_DEPENDENT_EXPLICIT_SPEC_P.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95066
	* g++.dg/cpp2a/explicit16.C: New test.
Checking de946847b7cf88c503c6e843fc6263ef7a1911fc: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/94937
	* cvt.c (cp_get_fndecl_from_callee): Return NULL_TREE if the function
	type is not INDIRECT_TYPE_P.
	* decl.c (omp_declare_variant_finalize_one): Call
	cp_get_callee_fndecl_nofold instead of looking for the function decl
	manually.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/94937
	* g++.dg/cpp1z/constexpr-if34.C: New test.
	* g++.dg/cpp2a/is-constant-evaluated10.C: New test.
Checking 4c07da7bec0c952e4918323222c2baa85f0a29f1: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95344
	* cp-gimplify.c (cp_fold) <case MODIFY_EXPR>: Don't set
	TREE_THIS_VOLATILE here.
	(cp_fold): Set it here along with TREE_NO_WARNING.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/95344
	* c-c++-common/Wparentheses-2.c: New test.
Checking 18436d87ff85282b200579cb8da496659632ad6b: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/94955
	* typeck.c (cp_build_binary_op): Use fold_for_warn instead of
	cp_fold_rvalue.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/94955
	* g++.dg/cpp0x/constexpr-shift2.C: New test.
Checking 53e91f867bd1c3773d37b2efb8875b8b1416a9d2: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/90915
	* parser.c (cp_parser_has_attribute_expression): Sorry on a
	type-dependent argument.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Marek Polacek  <polacek@redhat.com>

	PR c++/90915
	* g++.dg/ext/builtin-has-attribute.C: New test.
Checking 3b9a3b484f7c89bc5064bf32ecfa2b4aee218d5f: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Harald Anlauf  <anlauf@gmx.de>
		    Steven G. Kargl   <kargl@gcc.gnu.org>

	PR fortran/95611
	* decl.c (access_attr_decl): Use correct symbol in error message.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-11  Harald Anlauf  <anlauf@gmx.de>
		    Steven G. Kargl   <kargl@gcc.gnu.org>

	PR fortran/95611
	* gfortran.dg/pr95611.f90: New file.
Checking 800dac8fca3cf75512913e380df339fa2253ba76: OK
------ gcc/cp/ChangeLog ------ 
2020-06-11  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-09  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95137
	* coroutines.cc (expand_one_await_expression): Build separate
	DTOR trees for the awaitable object on the destroy and resume
	paths.
Checking 605e9b1a9b3250537a7269eba7e9c316b0f00d29: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-07  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95091
	* class.c (gfc_hash_value): Add cast.
Checking bf6199ecc9c2dc9f6b5eca3d18ff48b374a8feb9: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-07  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95091
	* class.c (get_unique_type_string, gfc_hash_value): Enlarge
	buffers, and check whether the strings returned by
	get_unique_type_string() fit.
------ gcc/testsuite/ChangeLog ------ 
2020-06-11  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-07  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95091
	* gfortran.dg/pr95091.f90: New file.
Checking 3e9261f0e013108135bf09f0f91b279b9c5cbd9e: OK
------ libstdc++-v3/ChangeLog ------ 
2020-06-11  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-10  Patrick Palka  <ppalka@redhat.com>

	PR libstdc++/95578
	* include/bits/ranges_algo.h (__lexicographical_compare_fn):
	Also check that the iterator and sentinel have the same type before
	applying the unwrapping optimization for __normal_iterator.
	Split the check into two, one for the first iterator/sentinel
	pair and another for second iterator/sentinel pair.  Remove uses
	of __niter_base, and remove uses of std::move on a
	__normal_iterator.
	* include/bits/ranges_algobase.h (__equal_fn): Likewise.
	(__copy_or_move): Likewise.  Perform similar adjustments for
	the reverse_iterator and move_iterator optimizations.  Inline
	the checks into the if-constexprs, and use using-declarations to
	make them less visually noisy.  Remove uses of __niter_wrap.
	(__copy_or_move_backward): Likewise.
	* testsuite/25_algorithms/copy/95578.cc: New test.
	* testsuite/25_algorithms/copy_backward/95578.cc: New test.
	* testsuite/25_algorithms/equal/95578.cc: New test.
	* testsuite/25_algorithms/lexicographical_compare/95578.cc: New test.
	* testsuite/25_algorithms/move/95578.cc: New test.
	* testsuite/25_algorithms/move_backward/95578.cc: New test.
Checking 36b4ff352d5f78951ebb870d7f06ffe8d925218a: OK
Checking 5bb75908cbcc0d2ddfbadedfcd716b33694fd9c4: OK
------ gcc/cp/ChangeLog ------ 
2020-06-10  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-04  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95346
	* coroutines.cc (morph_fn_to_coro): Ensure that the get-
	return-object is constructed correctly; When it is not the
	final return value, pass it to the CTOR of the return type
	as an rvalue, per the standard comment.
------ gcc/testsuite/ChangeLog ------ 
2020-06-10  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-04  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95346
	* g++.dg/coroutines/pr95346.C: New test.
Checking 977a173c196dc5ba5ac2e1b890083beb0451cf60: OK
------ gcc/cp/ChangeLog ------ 
2020-06-10  Marek Polacek  <polacek@redhat.com>

	PR c++/95562
	* parser.c (cp_parser_direct_declarator): Clear
	CP_PARSER_FLAGS_DELAY_NOEXCEPT if the declarator kind is not
	cdk_id.
------ gcc/testsuite/ChangeLog ------ 
2020-06-10  Marek Polacek  <polacek@redhat.com>

	PR c++/95562
	* g++.dg/cpp0x/noexcept60.C: New test.
Checking cc00eb0af30ab3281d4dbade9f2c1b3a4b63f99f: OK
Checking 57ae358584f402145bad6fede8c539a225f90966: OK
------ gcc/cp/ChangeLog ------ 
2020-06-09  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-03  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95345
	* coroutines.cc (finish_co_await_expr): Revise to allow for
	parameter packs.
	(finish_co_yield_expr): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-06-09  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-03  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95345
	* g++.dg/coroutines/pr95345.C: New test.
Checking 7783ab7bceb912373d9513af658aba40ede87b1b: OK
Checking 127bf4228d0cb21f28fd5ed4dd820fa4760fc771: OK
------ gcc/ChangeLog ------ 
2020-06-08  Martin Jambor  <mjambor@suse.cz>

	Backported from master:
	2020-06-04  Martin Jambor  <mjambor@suse.cz>

	PR ipa/95113
	* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move non-call
	exceptions check to...
	* tree-eh.c (stmt_unremovable_because_of_non_call_eh_p): ...this
	new function.
	* tree-eh.h (stmt_unremovable_because_of_non_call_eh_p): Declare it.
	* ipa-sra.c (isra_track_scalar_value_uses): Use it.  New parameter
	fun.
------ gcc/testsuite/ChangeLog ------ 
2020-06-08  Martin Jambor  <mjambor@suse.cz>

	Backported from master:
	2020-06-04  Martin Jambor  <mjambor@suse.cz>

	PR ipa/95113
	* gcc.dg/ipa/pr95113.c: New test.
Checking e4f719b4e1f14016dfc777227e42bd1080245248: OK
------ gcc/testsuite/ChangeLog ------ 
2020-06-08  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-06-08  Mark Eggleston  <markeggleston@gcc.gnu.org>

	PR fortran/92993
	* gfortran.dg/pr92993.f90: New test.
Checking ad48414d2c0783929ed8b97df6b536457d5334dc: OK
Checking ac9b05305d376cfa391dd57a46515cbdc165f094: OK
------ gcc/cp/ChangeLog ------ 
2020-06-07  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-02  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95050
	* coroutines.cc (build_co_await): Wrap the co_await expression
	in a TARGET_EXPR, where needed.
	(finish_co_yield_expr): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-06-07  Iain Sandoe  <iain@sandoe.co.uk>

	Backported from master:
	2020-06-02  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/95050
	* g++.dg/coroutines/pr95050.C: New test.
Checking 5025a854baad3aa3f7df4870c45507fe50324f7c: OK
Checking 03da87235697eab344cde609d81d3f405f450c42: OK
------ gcc/cp/ChangeLog ------ 
2020-06-06  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/94817
	PR c++/94829
	PR c++/95087
	* coroutines.cc (morph_fn_to_coro): Set unformed outline
	functions to error_mark_node.  For early error returns suppress
	warnings about missing ramp return values.  Fix reinstatement
	of the function body on pre-existing initial error.  If we see
	an early fatal error, drop the erroneous function body.
	* decl.c (finish_function): Use the normal error path for fails
	in the ramp function, do not try to compile the helpers if the
	transform fails.
------ gcc/testsuite/ChangeLog ------ 
2020-06-06  Iain Sandoe  <iain@sandoe.co.uk>

	PR c++/94817
	PR c++/94829
	PR c++/95087
	* g++.dg/coroutines/coro-missing-final-suspend.C: New test.
	* g++.dg/coroutines/coro-missing-initial-suspend.C: New test.
	* g++.dg/coroutines/coro-missing-promise-yield.C: Check for
	continuation of compilation.
	* g++.dg/coroutines/coro-missing-promise.C: Likewise.
	* g++.dg/coroutines/coro-missing-ret-value.C: Likewise
	* g++.dg/coroutines/coro-missing-ret-void.C: Likewise
	* g++.dg/coroutines/coro-missing-ueh-3.C: Likewise
	* g++.dg/coroutines/pr94817.C: New test.
	* g++.dg/coroutines/pr94829.C: New test.
	* g++.dg/coroutines/co-return-syntax-08-bad-return.C:
	Adjust the testcase to do the compile (rather than an
	-fsyntax-only parse).
	* g++.dg/coroutines/coro1-ret-int-yield-int.h
	(MISSING_INITIAL_SUSPEND, MISSING_FINAL_SUSPEND): New.
Checking 7eb958eb4b5af910817f023ebac5a5ae2f5b7b6c: OK
Checking 2927ec5bc1276188efae82301d8fcffe4a245d1e: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-30  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95373
	* primary.c (is_inquiry_ref): Move validity check of inquiry
	references against selected Fortran standard from here...
	(gfc_match_varspec) ...to here.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-30  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95373
	* gfortran.dg/pr95373_1.f90: Adjust error messages.
	* gfortran.dg/pr95373_2.f90: Adjust error message.
Checking d7760318305a0eab43d59d9884486569409c2d52: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-28  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95373
	* primary.c (is_inquiry_ref): Check validity of inquiry
	references against selected Fortran standard.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-28  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95373
	* gfortran.dg/pr95373_1.f90: New test.
	* gfortran.dg/pr95373_2.f90: New test.
Checking 1e20cd1b583347cb2ea8591a45d99df143f7c41a: OK
------ gcc/fortran/ChangeLog ------ 
2020-05-24  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95106
	* trans-common.c (gfc_sym_mangled_common_id): Enlarge temporaries
	for name-mangling.
------ gcc/testsuite/ChangeLog ------ 
2020-05-24  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95106
	* gfortran.dg/equiv_11.f90: New test.
Checking 36442ee216acbe9a345ae625be53efbde8626477: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95530
	PR fortran/95537
	* decl.c (gfc_match_decl_type_spec): Enlarge buffer, and enhance
	string copy to detect buffer overflow.
	* gfortran.h (gfc_common_head): Enlarge buffer.
	* trans-common.c (finish_equivalences): Enhance string copy to
	detect buffer overflow.
Checking b3c17dfef86311a8b27b8e19854fd44cf8da29ee: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-30  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95090
	* class.c (get_unique_type_string): Use buffer overrun check.
Checking 78c4b06ac3df51c460de835917549c8555ee4eaf: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-29  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95090
	* class.c (get_unique_type_string): Enlarge temporary for
	name-mangling.  Use strncpy to prevent buffer overrun.
	(get_unique_hashed_string): Enlarge temporary.
	(gfc_hash_value): Enlarge temporary for name-mangling.
Checking 2ee8913bbbb0c278169b18b0123316ea4745120f: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-27  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95090
	* iresolve.c (gfc_get_string): Enlarge temporary for
	name-mangling.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-27  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95090
	* gfortran.dg/pr95090.f90: New test.
Checking 4b3ea558da6479dabe5841bcb0f6bad3f7fea858: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-04  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95500
	* trans-expr.c (gfc_conv_expr_reference): Do not dereference NULL
	pointer.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-06-04  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Harald Anlauf  <anlauf@gmx.de>

	PR fortran/95500
	* gfortran.dg/pr95500.f90: New test.
Checking 27e985479e931771472663cad34f8b99c6f62627: OK
------ gcc/ChangeLog ------ 
2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* gimplify.c (gimplify_adjust_omp_clauses): Remove
	'GOMP_MAP_STRUCT' mapping from OpenACC 'exit data' directives.
------ gcc/testsuite/ChangeLog ------ 
2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* c-c++-common/goacc/struct-enter-exit-data-1.c: New file.
------ libgomp/ChangeLog ------ 
2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
	special handling.
Checking 96d8d068f3d6f3efebdca65f0a7b86e0609ee66f: OK
------ libgomp/ChangeLog ------ 
2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
	Simplify.
Checking 52d737058897eb438099b57234d41330147d0b6f: OK
------ libgomp/ChangeLog ------ 
2020-06-05  Julian Brown  <julian@codesourcery.com>

	Backported from master:
	2020-06-05  Julian Brown  <julian@codesourcery.com>

	* testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
Checking 26b07cf99bdf36423a5a5e2323b549be009bbde9: OK
------ gcc/ChangeLog ------ 
2020-06-05  H.J. Lu  <hjl.tools@gmail.com>

	* config/i386/driver-i386.c (host_detect_local_cpu): Support
	Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
	processor families.
Checking 676250d6f9692a8e338bb758c808209ac6c00df1: OK
------ gcc/ChangeLog ------ 
2020-06-05  Lili Cui  <lili.cui@intel.com>

	PR target/95525
	* config/i386/i386.h (PTA_WAITPKG): Change bitmask value.
Checking ae7aed03f202b3e1d0872ab7db32c9f7a663a24d: OK
Checking 6b45b400c51be06f2d0e37a7b461cbd4ce9fe37d: OK
------ gcc/cp/ChangeLog ------ 
2020-06-04  Jason Merrill  <jason@redhat.com>

	PR c++/93310
	* constexpr.c (cxx_eval_constant_expression) [OBJ_TYPE_REF]:
	Evaluate OBJ_TYPE_REF_EXPR.
------ gcc/testsuite/ChangeLog ------ 
2020-06-04  Jason Merrill  <jason@redhat.com>

	PR c++/93310
	* g++.dg/cpp2a/constexpr-virtual16.C: New test.
	* g++.dg/cpp2a/constexpr-virtual17.C: New test.
	* g++.dg/cpp2a/constexpr-new12.C: Adjust diagnostic.
Checking e244b0acf3111c95bb1559e7610f84740b90589f: OK
------ gcc/cp/ChangeLog ------ 
2020-06-04  Jason Merrill  <jason@redhat.com>

	PR c++/95158
	* class.c (lookup_vfn_in_binfo): New.
	* call.c (build_over_call): Use it.
	* cp-tree.h (resolves_to_fixed_type_p): Add default argument.
	(lookup_vfn_in_binfo): Declare.
------ gcc/testsuite/ChangeLog ------ 
2020-06-04  Jason Merrill  <jason@redhat.com>

	PR c++/95158
	* g++.dg/template/virtual5.C: New test.
Checking 4664ca1bc40318dbe60591cfe6d31c3d36d439c3: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
	Evaluate 'copyfrom' individually for each entry.
	* testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
Checking 5a1b479aedd83d0362f870f480a24a011e703de4: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
	Evaluate 'finalize' individually for each entry.
	* testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
	* testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
	file.
Checking 62eeb36773d37fbfda9183ce50b724f834a875f2: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
	usage.
	* testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
Checking 125621f569cfac9f4caa6afc1976d42b3d21359e: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
	checking.
	(acc_unmap_data, goacc_exit_data_internal): Restore
	'is_tgt_unmapped' checking.
	* testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
	file.
	* testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
Checking 1bca30efec5d684f03dfb88ed93cbe26e68d35b0: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
Checking 0c59837c89bd62e2addf4b34704a1ebe7e3bffab: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	PR libgomp/92854
	* oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
Checking 364f46de9f02dc00e8ff51cc9e2662ae37520389: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	PR libgomp/92854
	* testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
	more.
Checking c44c9858962ab8045d57d531a83b430dd7be8d5a: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
		    Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
	'gomp_map_vars'.
	 (acc_map_data): Clean up accordingly.
Checking d7af812aaca41c3f7425593dcf8c36803e6a1f1e: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
	of over-eager 'finalize' clause.
	* testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
	file.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
Checking 52022880530d3ae9cdae81db74a40a92f2265c2c: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
Checking 16faaf529cfdefbf577cf6affc5869506b484599: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Julian Brown  <julian@codesourcery.com>

	Backported from master:
	2020-06-04  Julian Brown  <julian@codesourcery.com>

	* oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
	error path.
	(goacc_detach_internal): Likewise.
Checking 96bfb6e1d2dadef180c02d0e006ae72315305e76: OK
------ libgomp/ChangeLog ------ 
2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	Backported from master:
	2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>

	* testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
	the checkpoint.
	* testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
	* testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
	* testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
	* testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
	* testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
Checking 6effd8a7264427785f999536fc37fd771df190ee: OK
------ gcc/cp/ChangeLog ------ 
2020-06-04  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-03  Patrick Palka  <ppalka@redhat.com>

	* pt.c (process_partial_specialization): Pass the full set of
	generic template arguments to strictly_subsumes.
------ gcc/testsuite/ChangeLog ------ 
2020-06-04  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-03  Patrick Palka  <ppalka@redhat.com>

	* g++.dg/cpp2a/concepts-partial-spec8.C: New test.
Checking a3a71447513cd6aee06631e1cc73a530e2c7fd95: OK
------ gcc/cp/ChangeLog ------ 
2020-06-04  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-03  Patrick Palka  <ppalka@redhat.com>

	PR c++/92103
	* pt.c (most_specialized_partial_spec): Reorganize the loop over
	DECL_TEMPLATE_SPECIALIZATIONS.  Check constraints_satisfied_p on
	the original template declaration, not on the tsubsted one.
------ gcc/testsuite/ChangeLog ------ 
2020-06-04  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-03  Patrick Palka  <ppalka@redhat.com>

	PR c++/92103
	* g++.dg/cpp2a/concepts-partial-spec7.C: New test.
Checking 5006eb931b0c35853796bbf3377a24e074123446: OK
Checking 22b55c108396a36930a6fafc7435a226723c25ef: OK
------ gcc/po/ChangeLog ------ 
2020-06-03  Joseph Myers  <joseph@codesourcery.com>

	* sv.po: Update.
Checking dd65f29a90714a45866230719be73aeebd757be4: OK
Checking e2ce47e31dec49aa32b7fa71994cac53ca195b17: OK
------ gcc/ChangeLog ------ 
2020-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/aarch64/aarch64-cores.def (zeus): Define.
	* config/aarch64/aarch64-tune.md: Regenerate.
	* doc/invoke.texi (AArch64 Options): Document zeus -mcpu option.
Checking 40912c25b57b4e21aae20a4896624387aa13f7ed: OK
------ gcc/cp/ChangeLog ------ 
2020-06-02  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-02  Patrick Palka  <ppalka@redhat.com>

	PR c++/92633
	PR c++/92838
	* pt.c (tsubst_function_decl): Don't do set_constraints when
	regenerating a lambda.
	(tsubst_lambda_expr): Substitute into the lambda's constraints
	and do set_constraints here.
------ gcc/testsuite/ChangeLog ------ 
2020-06-02  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-06-02  Patrick Palka  <ppalka@redhat.com>

	PR c++/92633
	PR c++/92838
	* g++.dg/cpp2a/concepts-lambda11.C: New test.
	* g++.dg/cpp2a/concepts-lambda12.C: New test.
Checking 0971201a1e5e1e5df7de666ea1c4b2605a51cc76: OK
------ gcc/cp/ChangeLog ------ 
2020-06-02  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-13  Patrick Palka  <ppalka@redhat.com>

	PR c++/95020
	* constraint.cc (tsubst_requires_expr): Produce a new
	requires-expression when processing_template_decl, even if
	template arguments are not dependent.
------ gcc/testsuite/ChangeLog ------ 
2020-06-02  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-13  Patrick Palka  <ppalka@redhat.com>

	PR c++/95020
	* g++.dg/cpp2a/concepts-lambda7.C: New test.
Checking 89b625be0aab128b2316a937881147cd4a2e354a: OK
------ gcc/ChangeLog ------ 
2020-06-02  Iain Buclaw  <ibuclaw@gdcproject.org>

	Backported from master:
	2020-06-02  Iain Buclaw  <ibuclaw@gdcproject.org>

	PR target/95420
	* config.gcc (arm-wrs-vxworks7*): Set default cpu to generic-armv7-a.
Checking e1ed588122920e95df75f9d8a1825f695d2c3000: OK
------ gcc/d/ChangeLog ------ 
2020-06-02  Iain Buclaw  <ibuclaw@gdcproject.org>

	Backported from master:
	2020-06-02  Iain Buclaw  <ibuclaw@gdcproject.org>

	* d-builtins.cc (build_frontend_type): Handle struct fields with NULL
	DECL_NAME.  Use byte_position to get the real field offset.
Checking cc2da346a2d9d595128371cc71d24201996e86f0: OK
Checking b703627d668257c0955a43838288e91973bf2721: OK
------ gcc/fortran/ChangeLog ------ 
2020-06-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backported from master:
	2020-05-31  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/94361
	* class.c (finalize_component): Use expr->finalized instead of
	comp->finalized.
	* gfortran.h (gfc_component): Remove finalized member.
	(gfc_expr): Add it here instead.
------ gcc/testsuite/ChangeLog ------ 
2020-06-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backported from master:
	2020-05-31  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/94361
	* gfortran.dg/finalize_28.f90: Adjusted free counts.
	* gfortran.dg/finalize_33.f90: Likewise.
	* gfortran.dg/finalize_34.f90: Likewise.
	* gfortran.dg/finalize_35.f90: New test.
Checking 5b546b19d4ad345ed2c046ca8bc67172254aa62f: OK
Checking aacc2c3bdab71e486a69e4b43445e5dd8423253e: OK
Checking 6632f2920f08f5b45ffd1ada7006d4591ef9b172: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	PR c++/95386
	* constraint.cc (satisfaction_value): Relax to accept any
	INTEGER_CST that satisfies integer_zerop or integer_onep.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	PR c++/95386
	* g++.dg/concepts/pr95386.C: New test.
Checking 03c344ad180e094140be514a5e7cbaf95b5dcd2e: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-29  Patrick Palka  <ppalka@redhat.com>

	PR c++/92652
	PR c++/93698
	PR c++/94128
	* parser.c (cp_parser_requires_clause_expression): Temporarily
	increment processing_template_decl only if it is 0.
	(cp_parser_constraint_expression): Likewise.
	(cp_parser_requires_expression): Likewise.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-29  Patrick Palka  <ppalka@redhat.com>

	PR c++/92652
	PR c++/93698
	PR c++/94128
	* g++.dg/cpp2a/concepts-lambda8.C: New test.
	* g++.dg/cpp2a/concepts-lambda9.C: New test.
	* g++.dg/cpp2a/concepts-lambda10.C: New test.
Checking 798a9da416bbfd8996da9a5d53955b082d5b94fe: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-29  Patrick Palka  <ppalka@redhat.com>

	PR c++/95241
	* constexpr.c (get_or_insert_ctor_field): Add limited support
	for RANGE_EXPR index lookups.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-29  Patrick Palka  <ppalka@redhat.com>

	PR c++/95241
	* g++.dg/cpp0x/constexpr-array25.C: New test.
Checking 9e81c820a3e48ead478dabbd6988482747f7a521: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-30  Patrick Palka  <ppalka@redhat.com>
		    Jason Merrill  <jason@redhat.com>

	PR c++/95181
	* class.c (add_method): Let special member function templates
	coexist if they are not equivalently constrained, or in a class
	template.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Patrick Palka  <ppalka@redhat.com>

	Backported from master:
	2020-05-30  Patrick Palka  <ppalka@redhat.com>
		    Jason Merrill  <jason@redhat.com>

	PR c++/95181
	* g++.dg/concepts/pr95181.C: New test.
	* g++.dg/concepts/pr95181-2.C: New test.
Checking c07c745b1ef62f633024824b7e125027f10c969b: OK
------ gcc/cp/ChangeLog ------ 
2020-05-30  Jason Merrill  <jason@redhat.com>

	Backported from master:
	2020-05-30  Jason Merrill  <jason@redhat.com>

	PR c++/95371
	* pt.c (process_template_parm): Set DECL_TEMPLATE_INFO
	on the DECL_TEMPLATE_RESULT.
------ gcc/testsuite/ChangeLog ------ 
2020-05-30  Jason Merrill  <jason@redhat.com>

	Backported from master:
	2020-05-30  Jason Merrill  <jason@redhat.com>

	PR c++/95371
	* g++.dg/cpp2a/concepts-ttp1.C: New test.
Checking af254bf1c6dd18fd453c033984cbcc413ce3a5e5: OK
Checking f123dbb2dd2b3f7be81c90258ade9e6099ba19e3: OK
------ gcc/testsuite/ChangeLog ------ 
2020-05-29  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-29  Jakub Jelinek  <jakub@redhat.com>

	PR libfortran/95390
	* gfortran.dg/findloc_8.f90: New test.
------ libgfortran/ChangeLog ------ 
2020-05-29  Jakub Jelinek  <jakub@redhat.com>

	Backported from master:
	2020-05-29  Jakub Jelinek  <jakub@redhat.com>

	PR libfortran/95390
	* Makefile.am (i_findloc0_c): Add findloc0_i10.c.
	(i_findloc1_c): Add findloc1_i10.c.
	* gfortran.map (GFORTRAN_10.2): New symbol version, export
	_gfortran_{,m,s}findloc{0,1}_c10 symbols.
	* Makefile.in: Regenerated.
	* generated/findloc0_c10.c: Generated.
	* generated/findloc1_c10.c: Generated.
Checking 2991e83b34a3af4237a207010a5ec147b83fc5b7: OK
------ gcc/testsuite/ChangeLog ------ 
2020-05-29  Marek Polacek  <polacek@redhat.com>

	* g++.dg/ext/tmplattr10.C: Only run in c++11.
Checking 49824d35e0c87a5fdb3f5ea41223aa21d6ca6bfc: OK
------ gcc/ChangeLog ------ 
2020-05-29  Alex Coplan  <alex.coplan@arm.com>

	Backported from master:
	2020-05-19  Alex Coplan  <alex.coplan@arm.com>

	PR target/94591
	* config/aarch64/aarch64.c (aarch64_evpc_rev_local): Don't match
	identity permutation.
------ gcc/testsuite/ChangeLog ------ 
2020-05-29  Alex Coplan  <alex.coplan@arm.com>

	Backported from master:
	2020-05-19  Alex Coplan  <alex.coplan@arm.com>

	PR target/94591
	* gcc.c-torture/execute/pr94591.c: New test.
Checking 49a35d1f699892907d7a34198274a286993c0f22: OK
------ gcc/ChangeLog ------ 
2020-05-29  Andrew Stubbs  <ams@codesourcery.com>

	* config/gcn/gcn-valu.md (add<mode>3_zext_dup): Change to a
	define_expand, and rename the original to ...
	(add<mode>3_vcc_zext_dup): ... this, and add a custom VCC operand.
	(add<mode>3_zext_dup_exec): Likewise, with ...
	(add<mode>3_vcc_zext_dup_exec): ... this.
	(add<mode>3_zext_dup2): Likewise, with ...
	(add<mode>3_zext_dup_exec): ... this.
	(add<mode>3_zext_dup2_exec): Likewise, with ...
	(add<mode>3_zext_dup2): ... this.
	* config/gcn/gcn.c (gcn_expand_scalar_to_vector_address): Switch
	addv64di3_zext* calls to use addv64di3_vcc_zext*.
------ gcc/testsuite/ChangeLog ------ 
2020-05-29  Andrew Stubbs  <ams@codesourcery.com>

	* gcc.target/gcn/gcn.exp: New file.
	* gcc.target/gcn/vcc-clobber.c: New file.
Checking 0579f339110acb85d5bda128588f4d57c45dfe7a: OK
------ gcc/ChangeLog ------ 
2020-05-29  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-05-28  Dong JianQiang  <dongjianqiang2@huawei.com>

	PR gcov-profile/95332
	* gcov-io.c (gcov_var::endian): Move field.
	(from_file): Add IN_GCOV_TOOL check.
	* gcov-io.h (gcov_magic): Ditto.
------ libgcc/ChangeLog ------ 
2020-05-29  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-05-28  Dong JianQiang  <dongjianqiang2@huawei.com>

	PR gcov-profile/95332
	* libgcov-util.c (read_gcda_file): Call gcov_magic.
	* libgcov.h (gcov_magic): Disable GCC poison.
Checking 81211dbf7fd3e858e1027a6fda40cc47b5503499: OK
------ contrib/ChangeLog ------ 
2020-05-29  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-05-29  Martin Liska  <mliska@suse.cz>

	* git-backport.py: The script did 'git co HEAD~' when
	there was no modified ChangeLog file in a successful
	git cherry pick.
	Run cherry-pick --continue without editor.
Checking 778363009b8e3233d1000172813f2cca701e9c07: OK
Checking e1396ee72e68cc8fba99ce986f2910cd39e335b8: OK
------ libgfortran/ChangeLog ------ 
2020-05-28  Harald Anlauf  <anlauf@gmx.de>

	Backported from master:
	2020-05-28  Harald Anlauf  <anlauf@gmx.de>

	PR libfortran/95104
	* io/unit.c (unlock_unit): Guard by check for NULL pointer.
Checking c082cb8a2523d8c5afe5710e265bc72dd71aa60b: OK
------ gcc/ChangeLog ------ 
2020-05-28  Richard Sandiford  <richard.sandiford@arm.com>

	PR testsuite/95361
	* config/aarch64/aarch64.c (aarch64_expand_epilogue): Only
	redefine the CFA if we have CFI operations.
------ gcc/testsuite/ChangeLog ------ 
2020-05-28  Richard Sandiford  <richard.sandiford@arm.com>

	PR testsuite/95361
	* gcc.target/aarch64/sve/pr95361.c: New test.
Checking f2fe2ad8d379297dcf571b2b9c46200c5ae5391f: OK
------ gcc/fortran/ChangeLog ------ 
2020-05-28  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-05-28  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Mark Eggleston  <markeggleston@gcc.gnu.org>

	PR fortran/94397
	* match.c (gfc_match_type_spec): New variable ok initialised
	to true. Set ok with the return value of gfc_reduce_init_expr
	called only if the expression is not EXPR_CONSTANT and is not
	EXPR_VARIABLE. Add !ok to the check for type not being integer
	or the rank being greater than zero.
------ gcc/testsuite/ChangeLog ------ 
2020-05-28  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-05-28  Steven G. Kargl  <kargl@gcc.gnu.org>
		    Mark Eggleston  <markeggleston@gcc.gnu.org>

	PR fortran/94397
	* gfortran.dg/pr94397.F90: New test.
Checking 04b134837967ef392be361add19c60a1e9cad11d: OK
------ gcc/ChangeLog ------ 
2020-05-28  Uroš Bizjak  <ubizjak@gmail.com>

	* config/i386/mmx.md (mmx_haddsubv2sf3): Correct
	RTL template to model horizontal subtraction and addition.
Checking 31d827e98ab32060ef522fa5f3e42c1175e1a439: OK
------ gcc/ChangeLog ------ 
2020-05-28  Uroš Bizjak  <ubizjak@gmail.com>

	PR target/95355
	* config/i386/sse.md
	(<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>):
	Remove %q operand modifier from insn template.
	(avx512f_<code>v8hiv8di2<mask_name>): Ditto.
------ gcc/testsuite/ChangeLog ------ 
2020-05-28  Uroš Bizjak  <ubizjak@gmail.com>

	PR target/95355
	* gcc.target/i386/pr95355.c: New test.
Checking 26a42e9df9689765831f018eb14f1ae885212335: OK
------ gcc/ChangeLog ------ 
2020-05-28  Martin Liska  <mliska@suse.cz>

	Backported from master:
	2020-05-28  Martin Liska  <mliska@suse.cz>

	PR web/95380
	* doc/invoke.texi: Add missing params, remove max-once-peeled-insns and
	rename ipcp-unit-growth to ipa-cp-unit-growth.
Checking 4e2c7f9a29c212db4bf428799a2d62f79f392511: OK
------ gcc/fortran/ChangeLog ------ 
2020-05-28  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-05-27  Tobias Burnus  <tobias@codesourcery.com>
		    Mark Eggleston  <markeggleston@gnu.gcc.org>

	PR fortran/50392
	* trans-decl.c (gfc_get_symbol_decl): Remove unnecessary block
	delimiters.  Add auxiliary variables if a label is assigned to
	a return variable. (gfc_gat_fake_result): If the symbol has an
	assign attribute set declaration from the symbol's backend
	declaration.
------ gcc/testsuite/ChangeLog ------ 
2020-05-28  Mark Eggleston  <markeggleston@gcc.gnu.org>

	Backported from master:
	2020-05-27  Tobias Burnus  <tobias@codesourcery.com>

	PR fortran/50392
	* gfortran.dg/pr50392.f: New test.
Checking e8c250211da834cb4823ae40079746338124cac8: OK
H.J. Lu via Gcc-patches June 17, 2020, 9:34 a.m. | #3
On Wed, Jun 17, 2020 at 11:30:26AM +0200, Martin Liška wrote:
> On 6/17/20 10:58 AM, Jakub Jelinek wrote:

> > On Wed, Jun 17, 2020 at 10:46:19AM +0200, Martin Liška wrote:

> > > One minor limitation is that the timestamp (commit date)

> > > of the original commit is lost so that's why we print:

> > 

> > Why?  You have the

> > (cherry picked from commit 8cff672cb9a132d3d3158c2edfc9a64b55292b80)

> > line, so you can

> > git log -1 --format=%ci 8cff672cb9a132d3d3158c2edfc9a64b55292b80

> > 2020-06-11 11:02:58 +0200

> > and just pick the date from there? (or %cI or %ct or whatever is most

> > appropriate).

> 

> I've just implemented that. Effectively adding a new hook that is only implemented

> by git_repository.py (using GitPython). For server hook we don't need it.

> 

> Is the output better now?


Yeah, thanks.  LGTM.

	Jakub

Patch

diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index e868e028225..8bea6e3e803 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -259,6 +259,7 @@  class GitCommit:
          self.top_level_authors = []
          self.co_authors = []
          self.top_level_prs = []
+        self.cherry_pick = False
  
          project_files = [f for f in self.modified_files
                           if self.is_changelog_filename(f[0])
@@ -402,6 +403,7 @@  class GitCommit:
                  elif lowered_line.startswith(REVIEW_PREFIXES):
                      continue
                  elif line.startswith(CHERRY_PICK_PREFIX):
+                    self.cherry_pick = True
                      continue
  
                  # ChangeLog name will be deduced later
@@ -592,24 +594,38 @@  class GitCommit:
                      err = Error(msg % (entry.folder, changelog_location), file)
                      self.errors.append(err)
  
+    @classmethod
+    def format_authors_in_changelog(cls, authors, timestamp, prefix=''):
+        output = ''
+        for i, author in enumerate(authors):
+            if i == 0:
+                output += '%s%s  %s\n' % (prefix, timestamp, author)
+            else:
+                output += '%s\t    %s\n' % (prefix, author)
+        output += '\n'
+        return output
+
      def to_changelog_entries(self, use_commit_ts=False):
+        current_timestamp = self.date.strftime('%Y-%m-%d')
          for entry in self.changelog_entries:
              output = ''
              timestamp = entry.datetime
              if not timestamp or use_commit_ts:
-                timestamp = self.date.strftime('%Y-%m-%d')
+                timestamp = current_timestamp
              authors = entry.authors if entry.authors else [self.author]
              # add Co-Authored-By authors to all ChangeLog entries
              for author in self.co_authors:
                  if author not in authors:
                      authors.append(author)
  
-            for i, author in enumerate(authors):
-                if i == 0:
-                    output += '%s  %s\n' % (timestamp, author)
-                else:
-                    output += '\t    %s\n' % author
-            output += '\n'
+            if self.cherry_pick:
+                output += self.format_authors_in_changelog([self.author],
+                                                           current_timestamp)
+                output += '\tBackported from master:\n'
+                output += self.format_authors_in_changelog(authors,
+                                                           timestamp, '\t')
+            else:
+                output += self.format_authors_in_changelog(authors, timestamp)
              for pr in entry.prs:
                  output += '\t%s\n' % pr
              for line in entry.lines:
diff --git a/contrib/gcc-changelog/test_email.py b/contrib/gcc-changelog/test_email.py
index a185b85e838..1e58aa7af40 100755
--- a/contrib/gcc-changelog/test_email.py
+++ b/contrib/gcc-changelog/test_email.py
@@ -351,3 +351,14 @@  class TestGccChangelog(unittest.TestCase):
          assert len(modified_files) == 3
          assert modified_files[1] == ('gcc/ada/libgnat/s-atopar.adb', 'D')
          assert modified_files[2] == ('gcc/ada/libgnat/s-aoinar.adb', 'A')
+
+    def test_backport(self):
+        email = self.from_patch_glob('0001-asan-fix-RTX-emission.patch')
+        assert not email.errors
+        assert len(email.changelog_entries) == 1
+        entry = list(email.to_changelog_entries())[0][1]
+        assert entry.startswith('2020-06-11  Martin Liska  <mliska@suse.cz>')
+        assert '\tBackported from master:' in entry
+        assert '\t2020-06-11  Martin Liska  <mliska@suse.cz>' in entry
+        assert '\t\t    Jakub Jelinek  <jakub@redhat.com>' in entry
+
diff --git a/contrib/gcc-changelog/test_patches.txt b/contrib/gcc-changelog/test_patches.txt
index 1dec932f783..1463fb94936 100644
--- a/contrib/gcc-changelog/test_patches.txt
+++ b/contrib/gcc-changelog/test_patches.txt
@@ -3131,3 +3131,32 @@  index 60d83c30771..9e7efd13ecc 100644
  +
  --
  2.26.2
+
+=== 0001-asan-fix-RTX-emission.patch ===
+From e1d68582022cfa2b1dc76646724b397ba2739439 Mon Sep 17 00:00:00 2001
+From: Martin Liska <mliska@suse.cz>
+Date: Thu, 11 Jun 2020 09:34:41 +0200
+Subject: [PATCH] asan: fix RTX emission for ilp32
+
+gcc/ChangeLog:
+
+	PR sanitizer/95634
+	* asan.c (asan_emit_stack_protection): Fix emission for ilp32
+	by using Pmode instead of ptr_mode.
+
+Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
+(cherry picked from commit 8cff672cb9a132d3d3158c2edfc9a64b55292b80)
+---
+ gcc/asan.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/gcc/asan.c b/gcc/asan.c
+index 823eb539993..4ec22162c12 100644
+--- a/gcc/asan.c
++++ b/gcc/asan.c
+@@ -1 +1,2 @@
+
++
+--
+2.27.0
+