diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 86c41990cc176eb03866b1ec0e07495a301cda1b..f30bb8508d2145d2f73fe1b38d010986e8dee83c 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2023-06-03  Lehua Ding  <lehua.ding@rivai.ai>
+
+	* clang-format (ForEachMacros): Add missing cases
+	for EXECUTE_IF_... macros.
+
 2023-05-18  Jonathan Wakely  <jwakely@redhat.com>
 
 	PR bootstrap/105831
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 772c50ad5751d42db24d025c3e05873ac7e2c6ab..9c1f2e2f029a0b9cc83fa9586d18c305d6aa498c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,21 @@
+2023-06-03  Fei Gao  <gaofei@eswincomputing.com>
+
+	* config/riscv/riscv.cc (riscv_expand_epilogue): fix cfi issue with
+	correct offset.
+
+2023-06-03  Die Li  <lidie@eswincomputing.com>
+
+	* config/riscv/thead.md (*th_cond_gpr_mov<GPR:mode><GPR2:mode>): Delete.
+
+2023-06-03  Juzhe-Zhong  <juzhe.zhong@rivai.ai>
+
+	* config/riscv/predicates.md: Change INTVAL into UINTVAL.
+
+2023-06-03  Juzhe-Zhong  <juzhe.zhong@rivai.ai>
+
+	* config/riscv/vector.md: Add vector-opt.md.
+	* config/riscv/autovec-opt.md: New file.
+
 2023-06-03  liuhongt  <hongtao.liu@intel.com>
 
 	PR tree-optimization/110067
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 1760b75fb7792512c503b3c923636a20875a3d16..a5bdb7bdd096be3b00cb3ec46a60070fc2b38a83 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20230603
+20230604
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 17388f2a905e19f5242798cbbec7e00a40b240e1..1d0329484f983a39d5f5365e63b0fea290766b93 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,34 @@
+2023-06-03  Patrick Palka  <ppalka@redhat.com>
+
+	PR c++/109923
+	* pt.cc (is_specialization_of_friend): Fix overbroad check for
+	a non-template member function of a class template.
+
+2023-06-03  Patrick Palka  <ppalka@redhat.com>
+
+	* pt.cc (iterative_hash_template_arg): Don't hash
+	TEMPLATE_TEMPLATE_PARM specially.
+
+2023-06-03  Patrick Palka  <ppalka@redhat.com>
+
+	* class.cc (build_base_path): Check in_template_context instead
+	of in_template_function.
+	(resolves_to_fixed_type_p): Likewise.
+	* cp-tree.h (in_template_context): Define.
+	(in_template_function): Remove.
+	* decl.cc (cp_make_fname_decl): Check current_function_decl
+	and in_template_context instead of in_template_function.
+	* decl2.cc (mark_used): Check in_template_context instead of
+	in_template_function.
+	* pt.cc (in_template_function): Remove.
+	* semantics.cc (enforce_access): Check in_template_context
+	instead of current_template_parms directly.
+
+2023-06-03  Patrick Palka  <ppalka@redhat.com>
+
+	PR c++/70790
+	* mangle.cc (write_expression): Handle NOEXCEPT_EXPR.
+
 2023-06-02  Jason Merrill  <jason@redhat.com>
 
 	DR 2735
diff --git a/gcc/m2/ChangeLog b/gcc/m2/ChangeLog
index c5bd59d57ed60904e6dd228c152e8e2cb0d30a8b..72ae734f0f0b0ed7faa7b0c501ee4aec7ef1b9a3 100644
--- a/gcc/m2/ChangeLog
+++ b/gcc/m2/ChangeLog
@@ -1,3 +1,10 @@
+2023-06-03  Gaius Mulley  <gaiusmod2@gmail.com>
+
+	PR modula2/110003
+	* gm2-compiler/P2SymBuild.mod (GetParameterShadowVar): Import.
+	(CheckFormalParameterSection): Call PutDeclared for the shadow
+	variable associated with the parameter.
+
 2023-05-24  Gaius Mulley  <gaiusmod2@gmail.com>
 
 	PR modula2/109952
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index da4ccdad554829c8eed74e827f6fe3aad10e7962..53b96d2dabbf86766f16eef7043db8f14830fbe1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,25 @@
+2023-06-03  Patrick Palka  <ppalka@redhat.com>
+
+	PR c++/109923
+	* g++.dg/template/friend79.C: New test.
+
+2023-06-03  Patrick Palka  <ppalka@redhat.com>
+
+	* g++.dg/warn/Waddress-of-packed-member2.C: No longer expect a()
+	to be marked as odr-used.
+
+2023-06-03  Patrick Palka  <ppalka@redhat.com>
+
+	PR c++/70790
+	* g++.dg/abi/mangle78.C: New test.
+
+2023-06-03  Juzhe-Zhong  <juzhe.zhong@rivai.ai>
+
+	* gcc.target/riscv/rvv/autovec/widen/widen-7.c: New test.
+	* gcc.target/riscv/rvv/autovec/widen/widen-complicate-3.c: New test.
+	* gcc.target/riscv/rvv/autovec/widen/widen-complicate-4.c: New test.
+	* gcc.target/riscv/rvv/autovec/widen/widen_run-7.c: New test.
+
 2023-06-03  liuhongt  <hongtao.liu@intel.com>
 
 	* gcc.target/i386/pr110067.c: New test.
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 1d4f3abd8a8151b8e1ded7b9fff9952af0f4a611..66e1ee3ae41bfb9da753c8cf0a1cd3fe165c2cc2 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,13 @@
+2023-06-03  Thomas Neumann  <tneumann@users.sourceforge.net>
+
+	PR libgcc/109670
+	* unwind-dw2-fde.c: Fix radix sort buffer management.
+
+2023-06-03  Thomas Neumann  <tneumann@users.sourceforge.net>
+
+	PR libgcc/109685
+	* unwind-dw2-fde.c: Free sort array in atomic fast path.
+
 2023-05-19  Iain Sandoe  <iain@sandoe.co.uk>
 
 	* config.host: Arrange to set min Darwin OS versions from
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 99e5a861fbede9ecddc99b7f2ffca03172d13a81..41b7fecc61c7406043cb73fb51ff6f5ebe74a678 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,13 @@
+2023-06-03  Patrick Palka  <ppalka@redhat.com>
+
+	PR c++/70790
+	* cp-demangle.c (cplus_demangle_operators): Add the noexcept
+	operator.
+	(d_print_comp_inner) <case DEMANGLE_COMPONENT_UNARY>: Always
+	print parens around the operand of noexcept too.
+	* testsuite/demangle-expected: Test noexcept operator
+	demangling.
+
 2023-04-02  Jakub Jelinek  <jakub@redhat.com>
 
 	PR other/109306