diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3c375025784080fb98a4b17dc51c197d1f7e8956..6e8901ce9c20c6879cf5ae6dc5f969ae41c1701c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,62 @@
+2021-12-29  Ian Lance Taylor  <iant@golang.org>
+
+	PR go/103847
+	* godump.c (go_force_record_alignment): Name the alignment
+	field "_".
+
+2021-12-29  Jakub Jelinek  <jakub@redhat.com>
+
+	PR debug/103742
+	* tree-ssa-dce.c (make_forwarders_with_degenerate_phis): If any phi
+	argument is not CONSTANT_CLASS_P or SSA_NAME and any arguments are
+	equal, change second from hash value to lowest dest_idx from the
+	edges which have equal argument and resort to ensure -fcompare-debug
+	stability.
+
+2021-12-29  Martin Liska  <mliska@suse.cz>
+
+	* collect2.c (main): Add ld.mold.
+	* common.opt: Add -fuse-ld=mold.
+	* doc/invoke.texi: Document it.
+	* gcc.c (driver_handle_option): Handle -fuse-ld=mold.
+	* opts.c (common_handle_option): Likewise.
+
+2021-12-29  Uroš Bizjak  <ubizjak@gmail.com>
+
+	* config/i386/sse.md (vec_pack<floatprefix>_float_<mode>):
+	Perform gen_avx512dq_float<floatunssuffix>v2div2sf2 into a
+	pseudo and emit move insn into operands[0].
+	(fix<fixunssuffix>_truncv2sfv2di2): Use lowpart_subreg
+	instead of simplify_gen_subreg.
+	(trunc<mode><pmov_dst_3_lower>2): Perform
+	gen_avx512vl_truncate<mode>v<ssescalarnum>qi2 into a
+	pseudo and emit move insn into operands[0].
+	(trunc<mode><pmov_dst_4_lower>2): Perform
+	gen_avx512vl_truncate<mode>v<ssescalarnum>hi2 into a
+	pseudo and emit move insn into operands[0].
+	(truncv2div2si2): Perform gen_avx512vl_truncatev2div2si2 into a
+	pseudo and emit move insn into operands[0].
+	(truncv8div8qi2): Perform gen_avx512f_truncatev8div16qi2 into a
+	pseudo and emit move insn into operands[0].
+	(<any_extend:insn>v8qiv8hi2): Use lowpart_subreg
+	instead of simplify_gen_subreg.
+	(<any_extend:insn>v8qiv8si2): Ditto.
+	(<any_extend:insn>v4qiv4si2): Ditto.
+	(<any_extend:insn>v4hiv4si2): Ditto.
+	(<any_extend:insn>v8qiv8di2): Ditto.
+	(<any_extend:insn>v4qiv4di2): Ditto.
+	(<any_extend:insn>v2qiv2di2): Ditto.
+	(<any_extend:insn>v4hiv4di2): Ditto.
+	(<any_extend:insn>v2hiv2di2): Ditto.
+	(<any_extend:insn>v2siv2di2): Ditto.
+
+2021-12-29  Xionghu Luo  <luoxhu@linux.ibm.com>
+
+	PR tree-optimization/103793
+	* tree-ssa-loop-split.c (fix_loop_bb_probability): New function.
+	(split_loop): Use multiply to scale loop1's exit probability.
+	(do_split_loop_on_cond): Call fix_loop_bb_probability.
+
 2021-12-28  Jason Merrill  <jason@redhat.com>
 
 	PR c++/99968
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 252ebb288a096d0af7a4bbf3b56a3753e550bce3..86d98455ff7925f76f50e06d83f530d0b0d16650 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20211229
+20211230
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 65f52f3916419949fd51b0f38c245a951bc407b1..c982afb1849257ff79465a437c5b6950de8f7671 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,13 @@
+2021-12-29  Harald Anlauf  <anlauf@gmx.de>
+
+	PR fortran/102332
+	* expr.c (gfc_get_variable_expr): Avoid NULL pointer dereferences
+	during handling of errors with invalid uses of CLASS variables.
+	* match.c (select_type_set_tmp): Likewise.
+	* primary.c (gfc_match_varspec): Likewise.
+	* resolve.c (resolve_variable): Likewise.
+	(resolve_select_type): Likewise.
+
 2021-12-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
 
 	PR fortran/103828
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6c6a732eb208e95017dbd9b5f23c655cbba2f950..53346a867dec3585a3593ebc6590f1ec5b67121c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,25 @@
+2021-12-29  Jakub Jelinek  <jakub@redhat.com>
+
+	PR debug/103742
+	* g++.dg/opt/pr103742.C: New test.
+
+2021-12-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+	PR testsuite/47334
+	PR testsuite/103823
+	* lib/prune.exp: Prune some warnings related to LTO and
+	visibility.
+
+2021-12-29  Harald Anlauf  <anlauf@gmx.de>
+
+	PR fortran/102332
+	* gfortran.dg/pr102332.f90: New test.
+
+2021-12-29  Xionghu Luo  <luoxhu@linux.ibm.com>
+
+	PR tree-optimization/103793
+	* gcc.dg/pr103793.c: New test.
+
 2021-12-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
 
 	PR fortran/103828
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 780d083ee83238c8e8607c053a7a68d0e87e781c..96e55f1d07adcd0fbe696ffe10de5e752ae72506 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,7 @@
+2021-12-29  Francois-Xavier Coudert  <fxcoudert@gmail.com>
+
+	* ieee/ieee_helper.c: Fix enum values.
+
 2021-12-27  Francois-Xavier Coudert  <fxcoudert@gmail.com>
 
 	PR libfortran/98076