diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1e94c5404abdae21ef3bc2207cef708ba36a1ddd..b70adbd8cb7d2fc5cef9b2c2bd1330fc5171d5e5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,39 @@
+2021-11-22  Roger Sayle  <roger@nextmovesoftware.com>
+
+	PR tree-optimization/98953
+	PR tree-optimization/103345
+	* gimple-ssa-store-merging.c (find_bswap_or_nop_1): Handle
+	BIT_XOR_EXPR and PLUS_EXPR the same as BIT_IOR_EXPR.
+	(pass_optimize_bswap::execute): Likewise.
+
+2021-11-22  Martin Liska  <mliska@suse.cz>
+
+	* doc/invoke.texi: Remove duplicate documentation for 3 params.
+
+2021-11-22  Richard Biener  <rguenther@suse.de>
+
+	PR tree-optimization/103351
+	* tree-ssa-dce.c (sort_phi_args): Sort after e->dest_idx as
+	second key.
+
+2021-11-22  liuhongt  <hongtao.liu@intel.com>
+
+	PR target/103275
+	* config/i386/constraints.md (Bk): New
+	define_memory_constraint.
+	* config/i386/i386-protos.h (ix86_gpr_tls_address_pattern_p):
+	Declare.
+	* config/i386/i386.c (ix86_gpr_tls_address_pattern_p): New
+	function.
+	* config/i386/i386.md (*movsi_internal): Don't allow
+	mask/sse/mmx move in TLS code sequences.
+	(*movdi_internal): Ditto.
+
+2021-11-22  Kewen Lin  <linkw@linux.ibm.com>
+
+	* config/xtensa/xtensa.md (movdi_internal, movdf_internal): Fix split
+	condition.
+
 2021-11-21  Jakub Jelinek  <jakub@redhat.com>
 
 	PR c++/101180
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 7e1517792f2c981de58e008f17e04bddf8b75cd4..e45f2d04f4ec66424e58bcf58f18f6a706fd24d5 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20211122
+20211123
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 205416f451a999f96cae6f6a44d4c8df6ac4787c..836ab867fa4c0f78c1e580ee5e54a5c811be5cc5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,27 @@
+2021-11-22  Jason Merrill  <jason@redhat.com>
+
+	* typeck.c (build_x_unary_op): Set address location.
+	(convert_member_func_to_ptr): Handle location wrapper.
+	* pt.c (convert_nontype_argument): Likewise.
+
+2021-11-22  Jason Merrill  <jason@redhat.com>
+
+	* typeck.c (check_return_expr): Only strip location wrapper during
+	NRV handling.
+
+2021-11-22  Jakub Jelinek  <jakub@redhat.com>
+
+	PR c++/101731
+	* parser.c (cp_parser_late_parsing_oacc_routine): Set
+	parser->oacc_routine->fndecl_seen here, rather than ...
+	(cp_finalize_oacc_routine): ... here.  Don't error if
+	parser->oacc_routine->fndecl_seen is set for FUNCTION_DECLs.
+
+2021-11-22  Jakub Jelinek  <jakub@redhat.com>
+
+	PR c++/103349
+	* constexpr.c (potential_constant_expression_1): Punt on OMP_MASKED.
+
 2021-11-19  Jakub Jelinek  <jakub@redhat.com>
 
 	PR c++/101180
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9872619ff18ba9c2cb410a7539a29492458b65b6..cdf542eb40d7ddea52b2aac486f2a38853563ea7 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,49 @@
+2021-11-22  Jason Merrill  <jason@redhat.com>
+
+	* g++.dg/template/crash106.C: Adjust.
+	* g++.dg/diagnostic/ptrtomem3.C: New test.
+
+2021-11-22  Jason Merrill  <jason@redhat.com>
+
+	* g++.dg/cpp0x/pr65327.C: Adjust location.
+	* g++.dg/cpp23/constexpr-nonlit4.C: Likewise.
+	* g++.dg/cpp23/constexpr-nonlit5.C: Likewise.
+	* g++.dg/cpp2a/constexpr-init1.C: Likewise.
+
+2021-11-22  Jakub Jelinek  <jakub@redhat.com>
+	    Tobias Burnus  <tobias@codesourcery.com>
+
+	PR preprocessor/103165
+	* c-c++-common/gomp/pragma-3.c: New test.
+	* c-c++-common/gomp/pragma-4.c: New test.
+	* c-c++-common/gomp/pragma-5.c: New test.
+
+2021-11-22  Roger Sayle  <roger@nextmovesoftware.com>
+
+	PR tree-optimization/98953
+	PR tree-optimization/103345
+	* gcc.dg/tree-ssa/pr98953.c: New test case.
+	* gcc.dg/tree-ssa/pr103345.c: New test case.
+
+2021-11-22  Jakub Jelinek  <jakub@redhat.com>
+
+	PR c++/101731
+	* c-c++-common/goacc/routine-6.c: New test.
+
+2021-11-22  Richard Biener  <rguenther@suse.de>
+
+	PR tree-optimization/103351
+	* g++.dg/torture/pr103351.C: New testcase.
+
+2021-11-22  Jakub Jelinek  <jakub@redhat.com>
+
+	PR c++/103349
+	* g++.dg/gomp/masked-1.C: New test.
+
+2021-11-22  liuhongt  <hongtao.liu@intel.com>
+
+	* gcc.target/i386/pr103275.c: New test.
+
 2021-11-21  Jakub Jelinek  <jakub@redhat.com>
 
 	PR c++/101180
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 3bcf688c467684bc63058c6fd36f0a442810606a..7ca41e99bf49c73807a9ef1f0b2de78743c5c04f 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,12 @@
+2021-11-22  Jakub Jelinek  <jakub@redhat.com>
+	    Tobias Burnus  <tobias@codesourcery.com>
+
+	PR preprocessor/103165
+	* internal.h (struct lexer_state): Add ignore__Pragma field.
+	* macro.c (builtin_macro): Don't interpret _Pragma if
+	pfile->state.ignore__Pragma.
+	(expand_arg): Temporarily set pfile->state.ignore__Pragma to 1.
+
 2021-11-17  David Malcolm  <dmalcolm@redhat.com>
 
 	PR preprocessor/103026
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 1d6f3189f9e9898f64935524a7f1c88a347ab818..adeff81653e54f408f619af6bb4109f5d99ce585 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,20 @@
+2021-11-22  Florian Weimer  <fweimer@redhat.com>
+
+	* unwind-dw2-fde-dip.c (NEED_DBASE_MEMBER): Define.
+	(struct unw_eh_callback_data): Make dbase member conditional.
+	(unw_eh_callback_data_dbase): New function.
+	(base_from_cb_data): Simplify for the non-dbase case.
+	(_Unwind_IteratePhdrCallback): Adjust.
+	(_Unwind_Find_FDE): Likewise.
+
+2021-11-22  Florian Weimer  <fweimer@redhat.com>
+
+	* unwind-dw2-fde-dip.c (struct unw_eh_callback_data): Remove
+	tbase member.
+	(base_from_cb_data): Adjust.
+	(_Unwind_IteratePhdrCallback): Likewise.
+	(_Unwind_Find_FDE): Likewise.
+
 2021-11-19  Iain Sandoe  <iain@sandoe.co.uk>
 
 	* config.host: Add weak emutls crt to the extra_parts.
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index c943bf81e5071fbad818ae1b04d5f8f57946298f..e6282b3bcd7cb84b71cb00adc0837c0fb329702a 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2021-11-22  Jonathan Wakely  <jwakely@redhat.com>
+
+	* include/bits/c++config (_GLIBCXX14_DEPRECATED): Fix condition
+	checking for C++14.
+
 2021-11-20  François Dumont  <fdumont@gcc.gnu.org>
 
 	* include/bits/erase_if.h (__erase_nodes_if): Add _UnsafeContainer template