+2022-06-15 Simon Wright <simon@pushface.org>
+
+ Backported from master:
+ 2022-06-12 Simon Wright <simon@pushface.org>
+
+ PR target/104871
+ * config/darwin-driver.c (darwin_find_version_from_kernel): If the OS
+ version is darwin20 (macOS 11) or greater, truncate the version to the
+ major number.
+
+2022-06-15 Mark Mentovai <mark@mentovai.com>
+
+ Backported from master:
+ 2022-06-12 Mark Mentovai <mark@mentovai.com>
+
+ * config/darwin-c.c: Make -mmacosx-version-min more future-proof.
+
+2022-06-15 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2022-05-27 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/105726
+ * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
+ Constrain array-of-flexarray case more.
+
2022-06-14 Vladimir N. Makarov <vmakarov@redhat.com>
PR rtl-optimization/104637
+2022-06-15 Jakub Jelinek <jakub@redhat.com>
+
+ Backported from master:
+ 2022-05-29 Jakub Jelinek <jakub@redhat.com>
+
+ PR preprocessor/105732
+ * c-c++-common/cpp/va-opt-10.c: New test.
+
+2022-06-15 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ Backported from master:
+ 2022-06-15 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ * gdc.dg/Wpadded.d: New test.
+
+2022-06-15 Richard Biener <rguenther@suse.de>
+
+ Backported from master:
+ 2022-05-27 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/105726
+ * g++.dg/warn/Warray-bounds-27.C: New testcase.
+
2022-06-14 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/104637
+2022-06-15 Jonathan Wakely <jwakely@redhat.com>
+
+ Backported from master:
+ 2022-06-13 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/std/atomic (__atomic_val_t): Use __type_identity_t
+ instead of atomic<T>::value_type, as per LWG 3220.
+ * testsuite/29_atomics/atomic/lwg3220.cc: New test.
+
+2022-06-15 Mark Mentovai <mark@mentovai.com>
+
+ Backported from master:
+ 2022-06-13 Mark Mentovai <mark@mentovai.com>
+
+ * include/experimental/bits/fs_path.h (__detail::__null_terminated):
+ Rename to __nul_terminated to avoid colliding with a macro in
+ Apple's SDK.
+
+2022-06-15 Jonathan Wakely <jwakely@redhat.com>
+
+ Backported from master:
+ 2022-05-06 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/104731
+ * testsuite/27_io/filesystem/iterators/error_reporting.cc:
+ Use a trailing char array as storage for dirent::d_name.
+
+2022-06-15 Jonathan Wakely <jwakely@redhat.com>
+
+ Backported from master:
+ 2022-02-02 Jonathan Wakely <jwakely@redhat.com>
+
+ * testsuite/27_io/filesystem/iterators/error_reporting.cc: Use
+ autoconf macro to check whether d_type is present.
+ * testsuite/experimental/filesystem/iterators/error_reporting.cc:
+ Likewise.
+
+2022-06-15 Jonathan Wakely <jwakely@redhat.com>
+
+ Backported from master:
+ 2022-02-01 Jonathan Wakely <jwakely@redhat.com>
+
+ * src/c++17/fs_dir.cc (recursive_directory_iterator::increment):
+ Reset state to past-the-end iterator on error.
+ (fs::recursive_directory_iterator::pop(error_code&)): Likewise.
+ (fs::recursive_directory_iterator::pop()): Check _M_dirs before
+ it might get reset.
+ * src/filesystem/dir.cc (recursive_directory_iterator): Likewise,
+ for the TS implementation.
+ * testsuite/27_io/filesystem/iterators/error_reporting.cc: New test.
+ * testsuite/experimental/filesystem/iterators/error_reporting.cc: New test.
+
+2022-06-15 Jonathan Wakely <jwakely@redhat.com>
+
+ * testsuite/23_containers/map/allocator/move_cons.cc: New test.
+ * testsuite/23_containers/multimap/allocator/move_cons.cc: New test.
+ * testsuite/23_containers/multiset/allocator/move_cons.cc: New test.
+ * testsuite/23_containers/set/allocator/move_cons.cc: New test.
+
+2022-06-15 Jonathan Wakely <jwakely@redhat.com>
+
+ Backported from master:
+ 2021-12-01 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/103501
+ * include/bits/stl_tree.h (_Rb_tree(_Rb_tree&&, false_type)):
+ Clear container if elements have been moved-from.
+ * testsuite/23_containers/multiset/allocator/103501.cc: New test.
+ * testsuite/23_containers/set/allocator/103501.cc: New test.
+
2022-06-14 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/97944