diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2b58fccae1a29c05ac9522e52bdb26a89596b296..3d43d6e95620f8e537d6b7870924e2865454f136 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,20 @@
+2024-01-07  Roger Sayle  <roger@nextmovesoftware.com>
+	    Uros Bizjak  <ubizjak@gmail.com>
+
+	PR target/113231
+	* config/i386/i386-features.cc (compute_convert_gain): Include
+	the overhead of explicit load and store (movd) instructions when
+	converting non-store scalar operations with memory destinations.
+	Various indentation whitespace fixes.
+
+2024-01-07  Tamar Christina  <tamar.christina@arm.com>
+
+	* config/arm/neon.md (cbranch<mode>4): New.
+
+2024-01-07  Juzhe-Zhong  <juzhe.zhong@rivai.ai>
+
+	* config/riscv/riscv-vsetvl.cc: replace std::max by MAX.
+
 2024-01-06  Jiahao Xu  <xujiahao@loongson.cn>
 
 	* config/loongarch/lasx.md: Set the unused bits in operand[3] to 0.
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index f5f14f7e81cab1fdce6a65aeed0b7cd694b23fde..bfc9285b69b26b8a19eaefe4d4ff0b25af6506da 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20240107
+20240108
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8bc7b09367f6ef8ba21dfa4e98dccbdcc0fa997b..945ac620ace8af45b8bc2b5aebdfc0f244b0f331 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,25 @@
+2024-01-07  Nathaniel Shead  <nathanieloshead@gmail.com>
+
+	* module.cc (trees_out::write_var_def): Only write initializers
+	in header modules.
+
+2024-01-07  Nathaniel Shead  <nathanieloshead@gmail.com>
+
+	PR c++/109679
+	* module.cc (depset::hash::add_binding_entity): Don't skip names
+	in the GMF if they've been exported with a using declaration.
+
+2024-01-07  Nathaniel Shead  <nathanieloshead@gmail.com>
+
+	PR c++/110808
+	* parser.cc (cp_parser_module_name): Rewrite to handle
+	module-names and module-partitions independently.
+	(cp_parser_module_partition): New function.
+	(cp_parser_module_declaration): Parse module partitions
+	explicitly. Don't change state if parsing module decl failed.
+	(cp_parser_import_declaration): Handle different kinds of
+	import-declarations locally.
+
 2024-01-03  Patrick Palka  <ppalka@redhat.com>
 
 	PR c++/113064
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a0d601b2247c22b154db4063c0a664f13192eb73..a0ed82b658d6eb67a8e579b71647873680a1477e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,142 @@
+2024-01-07  Georg-Johann Lay  <avr@gjlay.de>
+
+	* gcc.target/avr/lra-cpymem_qi.c: Remove duplicate -mmcu=.
+	* gcc.target/avr/lra-elim.c: Same.
+	* gcc.target/avr/pr112830.c: Skip for Reduced Tiny.
+	* gcc.target/avr/pr46779-1.c: Same.
+	* gcc.target/avr/pr46779-2.c: Same.
+	* gcc.target/avr/pr86869.c: Skip for Reduced Tiny and add -std=gnu99
+	for GNU-C due to address spaces.
+	* gcc.target/avr/pr89270.c: Same.
+	* gcc.target/avr/torture/builtins-2-flash.c: Only test address
+	space __flash1 if we have it.
+	* gcc.target/avr/torture/addr-space-1-1.c: Same.
+	* gcc.target/avr/torture/addr-space-2-1.c: Same.
+
+2024-01-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+	* gfortran.dg/dtio_25.f90: Update.
+	* gfortran.dg/namelist_57.f90: Update.
+	* gfortran.dg/namelist_65.f90: Update.
+
+2024-01-07  Roger Sayle  <roger@nextmovesoftware.com>
+	    Uros Bizjak  <ubizjak@gmail.com>
+
+	PR target/113231
+	* gcc.target/i386/pr113231.c: New test case.
+
+2024-01-07  Tamar Christina  <tamar.christina@arm.com>
+
+	* gcc.dg/vect/vect-early-break_2.c: Skip Arm.
+	* gcc.dg/vect/vect-early-break_7.c: Likewise.
+	* gcc.dg/vect/vect-early-break_75.c: Likewise.
+	* gcc.dg/vect/vect-early-break_77.c: Likewise.
+	* gcc.dg/vect/vect-early-break_82.c: Likewise.
+	* gcc.dg/vect/vect-early-break_88.c: Likewise.
+	* lib/target-supports.exp (add_options_for_vect_early_break,
+	check_effective_target_vect_early_break_hw,
+	check_effective_target_vect_early_break): Support AArch32.
+	* gcc.target/arm/vect-early-break-cbranch.c: New test.
+
+2024-01-07  Jeff Law  <jlaw@ventanamicro.com>
+
+	* gcc.dg/tree-ssa/phi-opt-25b.c: Remove extraneous "short".
+
+2024-01-07  Georg-Johann Lay  <avr@gjlay.de>
+
+	PR testsuite/52641
+	* gcc.dg/torture/pr110838.c: Use proper shift offset to get MSB or int.
+	* gcc.dg/torture/pr112282.c: Use at least 32 bits for :20 bit-fields.
+	* gcc.dg/tree-ssa/bitcmp-5.c: Use integral type with 32 bits or more.
+	* gcc.dg/tree-ssa/bitcmp-6.c: Same.
+	* gcc.dg/tree-ssa/cltz-complement-max.c: Same.
+	* gcc.dg/tree-ssa/cltz-max.c: Same.
+	* gcc.dg/tree-ssa/if-to-switch-8.c: Use literals that fit int.
+	* gcc.dg/tree-ssa/if-to-switch-9.c [avr]: Set case-values-threshold=3.
+	* gcc.dg/tree-ssa/negneg-3.c: Discriminate [not] large_double.
+	* gcc.dg/tree-ssa/phi-opt-25b.c: Use types of correct widths for
+	__builtin_bswapN.
+	* gcc.dg/tree-ssa/pr55177-1.c: Same.
+	* gcc.dg/tree-ssa/popcount-max.c: Use int32_t where required.
+	* gcc.dg/tree-ssa/pr111583-1.c: Use intptr_t as needed.
+	* gcc.dg/tree-ssa/pr111583-2.c: Same.
+
+2024-01-07  Georg-Johann Lay  <avr@gjlay.de>
+
+	PR testsuite/52641
+	* gcc.dg/memchr-3.c [avr]: Anticipate -Wbuiltin-declaration-mismatch.
+	* gcc.dg/pr103207.c: Use __INT32_TYPE__ instead of int.
+	* gcc.dg/pr103451.c [void* != long]: Anticipate -Wpointer-to-int-cast.
+	* gcc.dg/pr110496.c [void* != long]: Anticipate -Wint-to-pointer-cast.
+	* gcc.dg/pr109977.c: Use __SIZEOF_DOUBLE__ instead of 8.
+	* gcc.dg/pr110506-2.c: Use __UINT32_TYPE__ for uint32_t.
+	* gcc.dg/pr110582.c: Require int32plus.
+	* gcc.dg/pr111039.c: [sizeof(int) < 4]: Use __INT32_TYPE__.
+	* gcc.dg/pr111599.c: Same.
+	* gcc.dg/builtin-dynamic-object-size-0.c: Require size20plus.
+	* gcc.dg/builtin-object-size-1.c [avr]: Skip tests with strndup.
+	* gcc.dg/builtin-object-size-2.c: Same.
+	* gcc.dg/builtin-object-size-3.c: Same.
+	* gcc.dg/builtin-object-size-4.c: Same.
+	* gcc.dg/pr111070.c: Use __UINTPTR_TYPE__ instead of unsigned long.
+	* gcc.dg/debug/btf/btf-pr106773.c: Same.
+	* gcc.dg/debug/btf/btf-bitfields-2.c: [sizeof(int) < 4]: Use
+	__UINT32_TYPE__.
+
+2024-01-07  Georg-Johann Lay  <avr@gjlay.de>
+
+	PR testsuite/52641
+	* gcc.c-torture/compile/attr-complex-method-2.c [target=avr]: Check
+	for "divsc3" as double = float per default.
+	* gcc.c-torture/compile/pr106537-1.c: Use __INTPTR_TYPE__ instead of
+	hard-coded "long".
+	* gcc.c-torture/compile/pr106537-2.c: Same.
+	* gcc.c-torture/compile/pr106537-3.c: Same.
+	* gcc.c-torture/execute/20230630-3.c: Use __INT32_TYPE__ for bit-field
+	wider than 16 bits.
+	* gcc.c-torture/execute/20230630-4.c: Same.
+	* gcc.c-torture/execute/pr109938.c: Require int32plus.
+	* gcc.c-torture/execute/pr109986.c: Same.
+	* gcc.dg/fold-ior-4.c: Same.
+	* gcc.dg/fold-ior-5.c: Same
+	* gcc.dg/fold-parity-5.c: Same.
+	* gcc.dg/fold-popcount-5.c: Same.
+	* gcc.dg/builtin-bswap-13.c [sizeof(int) < 4]: Use __INT32_TYPE__
+	instead of int.
+	* gcc.dg/builtin-bswap-14.c: Use __INT32_TYPE__ instead of int where
+	required by code.
+	* gcc.dg/c23-constexpr-9.c: Require large_double.
+	* gcc.dg/c23-nullptr-1.c [target=avr]: xfail.
+	* gcc.dg/loop-unswitch-10.c: Require size32plus.
+	* gcc.dg/loop-unswitch-14.c: Same.
+	* gcc.dg/loop-unswitch-11.c: Require int32.
+	* gcc.dg/pr101836.c: Use __SIZEOF_INT instead of hard-coded 4.
+	* gcc.dg/pr101836_1.c: Same.
+	* gcc.dg/pr101836_2.c: Same.
+	* gcc.dg/pr101836_3.c: Same.
+
+2024-01-07  Nathaniel Shead  <nathanieloshead@gmail.com>
+
+	* g++.dg/modules/init-5_a.C: New test.
+	* g++.dg/modules/init-5_b.C: New test.
+
+2024-01-07  Nathaniel Shead  <nathanieloshead@gmail.com>
+
+	PR c++/109679
+	* g++.dg/modules/using-11.h: New test.
+	* g++.dg/modules/using-11_a.C: New test.
+	* g++.dg/modules/using-11_b.C: New test.
+
+2024-01-07  Nathaniel Shead  <nathanieloshead@gmail.com>
+
+	PR c++/110808
+	* g++.dg/modules/part-hdr-1_c.C: Fix syntax.
+	* g++.dg/modules/part-mac-1_c.C: Likewise.
+	* g++.dg/modules/mod-invalid-1.C: New test.
+	* g++.dg/modules/part-8_a.C: New test.
+	* g++.dg/modules/part-8_b.C: New test.
+	* g++.dg/modules/part-8_c.C: New test.
+
 2024-01-06  Harald Anlauf  <anlauf@gmx.de>
 	    José Rui Faustino de Sousa  <jrfsousa@gmail.com>
 
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index dc0c0dfb38634261e44917c63459062da28c6f50..7858f718c72d5dd46f4fbbc0f6f2c365b7c09064 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,7 @@
+2024-01-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+	* io/write.c (namelist_write): If internal_unit precede with space.
+
 
 Copyright (C) 2024 Free Software Foundation, Inc.
 
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 4782698b5b33d2b8d4873af6e3b6395403e17098..9cbd55a1a3579c114c525a7bce4956a220b9c02f 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,20 @@
+2024-01-07  Jonathan Wakely  <jwakely@redhat.com>
+
+	PR libstdc++/112997
+	* libsupc++/unwind-cxx.h (__cxa_call_terminate): Change first
+	parameter to void*.
+
+2024-01-07  Jonathan Wakely  <jwakely@redhat.com>
+
+	* testsuite/20_util/variant/87619.cc: Remove dg-timeout-factor.
+
+2024-01-07  Jonathan Wakely  <jwakely@redhat.com>
+
+	* include/std/type_traits (is_trivially_destructible_v): Use
+	built-in directly when concepts are supported.
+	* testsuite/20_util/is_trivially_destructible/value_v.cc: New
+	test.
+
 2024-01-06  Gwenole Beauchesne  <gb.devel@gmail.com>
 
 	* testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Use