diff -Nrcpad gcc-13-20260819/LAST_UPDATED gcc-13-20260826/LAST_UPDATED
*** gcc-13-20260819/LAST_UPDATED	Wed Aug 19 22:32:22 2026
--- gcc-13-20260826/LAST_UPDATED	Wed Aug 26 22:32:23 2026
***************
*** 1 ****
! Obtained from git: releases/gcc-13 revision 38ac911b5f1c7d81f375cb4253336ed1c713967f
--- 1 ----
! Obtained from git: releases/gcc-13 revision 8b46cd7c5f3c839d0f6505832afdc14958772ce4
diff -Nrcpad gcc-13-20260819/MD5SUMS gcc-13-20260826/MD5SUMS
*** gcc-13-20260819/MD5SUMS	Wed Aug 19 22:32:26 2026
--- gcc-13-20260826/MD5SUMS	Wed Aug 26 22:32:27 2026
***************
*** 1,5 ****
  # This file contains the MD5 checksums of the files in the
! # gcc-13-20260819.tar.xz tarball.
  #
  # Besides verifying that all files in the tarball were correctly expanded,
  # it also can be used to determine if any files have changed since the
--- 1,5 ----
  # This file contains the MD5 checksums of the files in the
! # gcc-13-20260826.tar.xz tarball.
  #
  # Besides verifying that all files in the tarball were correctly expanded,
  # it also can be used to determine if any files have changed since the
*************** d32239bcb673463ab874e80d47fae504  COPYIN
*** 21,27 ****
  fd4ecdf5d672efe2b0e409aca9cf9446  ChangeLog.jit
  09538b708302f1735f6fa05b622ecf5e  ChangeLog.tree-ssa
  24ab760126489e69436a43185dc3d202  INSTALL/README
! 09d462b6f644237d22ee67d767fac5d2  LAST_UPDATED
  81b3330d422f3ce1ef8b720dfae35068  MAINTAINERS
  2b61ddbd876fa839639a7ca551773426  Makefile.def
  5d2d6a74f897f8158d37f5f2ec6877ce  Makefile.in
--- 21,27 ----
  fd4ecdf5d672efe2b0e409aca9cf9446  ChangeLog.jit
  09538b708302f1735f6fa05b622ecf5e  ChangeLog.tree-ssa
  24ab760126489e69436a43185dc3d202  INSTALL/README
! 0b7713e35a83f46470922d35ae870632  LAST_UPDATED
  81b3330d422f3ce1ef8b720dfae35068  MAINTAINERS
  2b61ddbd876fa839639a7ca551773426  Makefile.def
  5d2d6a74f897f8158d37f5f2ec6877ce  Makefile.in
*************** a22e70b3f29292d0e628450f4bb11e62  fixinc
*** 475,481 ****
  a916467b91076e631dd8edb7424769c7  gcc/COPYING.LIB
  d32239bcb673463ab874e80d47fae504  gcc/COPYING3
  6a6a8e020838b23406c81b19c1d46df6  gcc/COPYING3.LIB
! 319b0c26dc6ef519e0326ef77040ba91  gcc/ChangeLog
  a3b63c675afa7a655cc2bfa8a907af79  gcc/ChangeLog-1997
  d9a88529352a010253c2e8fb1ed6023b  gcc/ChangeLog-1998
  240f08f81cb4699e8b49347db38233db  gcc/ChangeLog-1999
--- 475,481 ----
  a916467b91076e631dd8edb7424769c7  gcc/COPYING.LIB
  d32239bcb673463ab874e80d47fae504  gcc/COPYING3
  6a6a8e020838b23406c81b19c1d46df6  gcc/COPYING3.LIB
! 5171ebfd0935d40dd82faea10ebd6f30  gcc/ChangeLog
  a3b63c675afa7a655cc2bfa8a907af79  gcc/ChangeLog-1997
  d9a88529352a010253c2e8fb1ed6023b  gcc/ChangeLog-1998
  240f08f81cb4699e8b49347db38233db  gcc/ChangeLog-1999
*************** fb3fadb88e1d2b3b640cfaaa5ff11780  gcc/Ch
*** 510,516 ****
  3eb07e0b2e542409bf73d359f7f65609  gcc/ChangeLog.ptr
  e13638e26743ba41e6011b76cc00d9a9  gcc/ChangeLog.tree-ssa
  739ab47f6425bcea1d05e4fc0542de54  gcc/ChangeLog.tuples
! 1272bd1575967108107d1d4ab04b0a24  gcc/DATESTAMP
  d41d8cd98f00b204e9800998ecf8427e  gcc/DEV-PHASE
  eb92e1ff5e982ca07e173e0eb286d243  gcc/FSFChangeLog
  30e1e33411566388b3164558482dc5e6  gcc/FSFChangeLog.10
--- 510,516 ----
  3eb07e0b2e542409bf73d359f7f65609  gcc/ChangeLog.ptr
  e13638e26743ba41e6011b76cc00d9a9  gcc/ChangeLog.tree-ssa
  739ab47f6425bcea1d05e4fc0542de54  gcc/ChangeLog.tuples
! d7d523b4fbf020ead0e7e3e589bfb6cd  gcc/DATESTAMP
  d41d8cd98f00b204e9800998ecf8427e  gcc/DEV-PHASE
  eb92e1ff5e982ca07e173e0eb286d243  gcc/FSFChangeLog
  30e1e33411566388b3164558482dc5e6  gcc/FSFChangeLog.10
*************** a92be6f532ece352cab8309520cf28f0  gcc/co
*** 5078,5084 ****
  6614aac0ce8960f693faf880a7560bc5  gcc/coroutine-passes.cc
  9d6931fedff9a87a6266d15841579e67  gcc/coverage.cc
  b964f4291cd58a61a06769149429435f  gcc/coverage.h
! 076631d05a4013b4853d9c6f36ef992c  gcc/cp/ChangeLog
  d271e3663538ba1f3281cab3838e92cd  gcc/cp/ChangeLog-1993
  f5a44adbc05521162350ca409d1d95ce  gcc/cp/ChangeLog-1994
  ac55db48d964cb5469ff03c1cd3ee04d  gcc/cp/ChangeLog-1995
--- 5078,5084 ----
  6614aac0ce8960f693faf880a7560bc5  gcc/coroutine-passes.cc
  9d6931fedff9a87a6266d15841579e67  gcc/coverage.cc
  b964f4291cd58a61a06769149429435f  gcc/coverage.h
! e7905bddf4c4012d146b0cc38a8b81d5  gcc/cp/ChangeLog
  d271e3663538ba1f3281cab3838e92cd  gcc/cp/ChangeLog-1993
  f5a44adbc05521162350ca409d1d95ce  gcc/cp/ChangeLog-1994
  ac55db48d964cb5469ff03c1cd3ee04d  gcc/cp/ChangeLog-1995
*************** d9b5ec86750c5cd59daf7a5aae58585b  gcc/cp
*** 5117,5123 ****
  896d83eec5aaaa6e6d65eaf91d39d283  gcc/cp/cfns.h
  0b2a03d49770c4eace1cd0be60ee4b69  gcc/cp/class.cc
  b0062ee9c9d42ee91eaf7512f6e1e0be  gcc/cp/config-lang.in
! a36ed7be4ee266fb0346d74ea3dbecdc  gcc/cp/constexpr.cc
  edccbdb3f4c2f1f4d32e807cb29e3c40  gcc/cp/constraint.cc
  da0483e6a5389a7d06c30a4f41b34d48  gcc/cp/contracts.cc
  3fff7a95b0ebd54a1f3f2b2ace365aae  gcc/cp/contracts.h
--- 5117,5123 ----
  896d83eec5aaaa6e6d65eaf91d39d283  gcc/cp/cfns.h
  0b2a03d49770c4eace1cd0be60ee4b69  gcc/cp/class.cc
  b0062ee9c9d42ee91eaf7512f6e1e0be  gcc/cp/config-lang.in
! c93cafe127c9905ede0b4600896f5b4a  gcc/cp/constexpr.cc
  edccbdb3f4c2f1f4d32e807cb29e3c40  gcc/cp/constraint.cc
  da0483e6a5389a7d06c30a4f41b34d48  gcc/cp/contracts.cc
  3fff7a95b0ebd54a1f3f2b2ace365aae  gcc/cp/contracts.h
*************** eba9d2541aa4aa5f8a8e7aa169c9d594  gcc/cp
*** 5162,5168 ****
  7037f63acd4161418cc8dcd1d86866e0  gcc/cp/optimize.cc
  31af1271743bda5277b267bf355e9660  gcc/cp/parser.cc
  fbb3d4644cdc4c0c8d47620a0b3a8094  gcc/cp/parser.h
! 501b704a7a5540f979a09fd95f7d67a9  gcc/cp/pt.cc
  d03dc5c4f806d6a6841801d7d7d0080c  gcc/cp/ptree.cc
  aba5829381a2a8991e36ebb8d4eb9761  gcc/cp/rtti.cc
  88eb1ceb39a66b26decf9af394a4f5c2  gcc/cp/search.cc
--- 5162,5168 ----
  7037f63acd4161418cc8dcd1d86866e0  gcc/cp/optimize.cc
  31af1271743bda5277b267bf355e9660  gcc/cp/parser.cc
  fbb3d4644cdc4c0c8d47620a0b3a8094  gcc/cp/parser.h
! 01eb08bc3f593a2d2b8be07d31412745  gcc/cp/pt.cc
  d03dc5c4f806d6a6841801d7d7d0080c  gcc/cp/ptree.cc
  aba5829381a2a8991e36ebb8d4eb9761  gcc/cp/rtti.cc
  88eb1ceb39a66b26decf9af394a4f5c2  gcc/cp/search.cc
*************** b5cf698f62fc897667ca73b3cf884ea2  gcc/di
*** 5452,5458 ****
  1ef25caa15e3cb5ab9492b923312e4cc  gcc/diagnostic-spec.cc
  0aa96cf64ff55c2058c4f77d12b1f9b7  gcc/diagnostic-spec.h
  aec86f5bdff3085fdd00d7f8271d8bd0  gcc/diagnostic-url.h
! 5f9e7d5e357718ba41664aa23b032e18  gcc/diagnostic.cc
  d80c9704cdea98d063f65ef7fae04621  gcc/diagnostic.def
  e927561ee87ffd471419ab7c04a9c03d  gcc/diagnostic.h
  768604617d8710f1848e11fd6d4f6713  gcc/digraph.cc
--- 5452,5458 ----
  1ef25caa15e3cb5ab9492b923312e4cc  gcc/diagnostic-spec.cc
  0aa96cf64ff55c2058c4f77d12b1f9b7  gcc/diagnostic-spec.h
  aec86f5bdff3085fdd00d7f8271d8bd0  gcc/diagnostic-url.h
! b1d90cf99a7654fe89cb862a50d30e6f  gcc/diagnostic.cc
  d80c9704cdea98d063f65ef7fae04621  gcc/diagnostic.def
  e927561ee87ffd471419ab7c04a9c03d  gcc/diagnostic.h
  768604617d8710f1848e11fd6d4f6713  gcc/digraph.cc
*************** b829ed0032c899e107be2db349c913f3  gcc/ta
*** 7637,7643 ****
  811da275a2b9d3186a6decf96c01b0ed  gcc/targhooks.cc
  edb193a32070c4a7626fb75382def9b9  gcc/targhooks.h
  f39fcaa8197187283ccfed40107b426d  gcc/testsuite/.gitattributes
! f449a8fa54d515ff11358e6a8480b27b  gcc/testsuite/ChangeLog
  862f04afbd87da2cc6bc432c3f28430f  gcc/testsuite/ChangeLog-1993-2007
  029a5d8dacd25eb5d4711452ac448e5b  gcc/testsuite/ChangeLog-2008
  13ac28c41d51b66b4ec40dba6bd50f39  gcc/testsuite/ChangeLog-2009
--- 7637,7643 ----
  811da275a2b9d3186a6decf96c01b0ed  gcc/targhooks.cc
  edb193a32070c4a7626fb75382def9b9  gcc/targhooks.h
  f39fcaa8197187283ccfed40107b426d  gcc/testsuite/.gitattributes
! f9729934cf2f986356ff69b300080f01  gcc/testsuite/ChangeLog
  862f04afbd87da2cc6bc432c3f28430f  gcc/testsuite/ChangeLog-1993-2007
  029a5d8dacd25eb5d4711452ac448e5b  gcc/testsuite/ChangeLog-2008
  13ac28c41d51b66b4ec40dba6bd50f39  gcc/testsuite/ChangeLog-2009
*************** f8cacc42b6d0ee02c4ec28b4871b946c  gcc/te
*** 17032,17037 ****
--- 17032,17038 ----
  e210eaaa7545615d95f00423c888ec15  gcc/testsuite/g++.dg/cpp1y/decltype-auto4.C
  194055ab7fa17e843b9e74ef24b2d117  gcc/testsuite/g++.dg/cpp1y/decltype-auto5.C
  29d019b91f9e9754780b3f7d3b824a43  gcc/testsuite/g++.dg/cpp1y/decltype-auto6.C
+ bdf42806bc072f01f4ad0c2f053df450  gcc/testsuite/g++.dg/cpp1y/decltype-auto9.C
  516d0cef75f4267f67d755a810807bc2  gcc/testsuite/g++.dg/cpp1y/digit-sep-cxx11-neg.C
  689cbb9207e775c0f7572b0587fbd4fd  gcc/testsuite/g++.dg/cpp1y/digit-sep-line-neg.C
  b0b8339395130310f925dd038dff1c6c  gcc/testsuite/g++.dg/cpp1y/digit-sep-line.C
*************** ac9bb69a57b021f97f435bdd64fdc923  gcc/te
*** 18726,18731 ****
--- 18727,18734 ----
  56cf7b227da9e5878b8fab57be913c5e  gcc/testsuite/g++.dg/cpp2a/constexpr-new20.C
  c045618ca4ccc6ddfb47d7c232152a06  gcc/testsuite/g++.dg/cpp2a/constexpr-new21.C
  8f15e7c6c4a56e33628394c948bba9aa  gcc/testsuite/g++.dg/cpp2a/constexpr-new22.C
+ 27208da003125c43373cb29367bffb95  gcc/testsuite/g++.dg/cpp2a/constexpr-new24.C
+ 842eb288f31fa0fd04ade7dce7711c8f  gcc/testsuite/g++.dg/cpp2a/constexpr-new25.C
  d1fc949626e604a60a7cd826bb9fe696  gcc/testsuite/g++.dg/cpp2a/constexpr-new3.C
  44e96a6cfd450fc9d40c13cc7a4e98f3  gcc/testsuite/g++.dg/cpp2a/constexpr-new4.C
  09667d3c51ef176269e12b2ece101f3d  gcc/testsuite/g++.dg/cpp2a/constexpr-new5.C
*************** c79632f5b81fdadda65a61ca549d97f6  gcc/te
*** 18959,18964 ****
--- 18962,18968 ----
  e1f6714196bc4cc815de786f8301141d  gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C
  e99d0c361f9eaa55d53c9232f30b64cf  gcc/testsuite/g++.dg/cpp2a/lambda-uneval2.C
  5f89a0a811ca20d222ad6994a619a023  gcc/testsuite/g++.dg/cpp2a/lambda-uneval24.C
+ e59f63d278e1f049c181594746f34930  gcc/testsuite/g++.dg/cpp2a/lambda-uneval26.C
  95297857429ac8850dbeb5773639ea6b  gcc/testsuite/g++.dg/cpp2a/lambda-uneval3.C
  2f7bd1774e5f890e65ee937419a29669  gcc/testsuite/g++.dg/cpp2a/lambda-uneval4.C
  8e6b610dd3dab06841943bfa5f325489  gcc/testsuite/g++.dg/cpp2a/lambda-uneval5.C
*************** cbeb61a079567f59bdce9faa40877398  gcc/te
*** 29457,29462 ****
--- 29461,29467 ----
  70adf2e2f20bd052cfca2787bd225b0c  gcc/testsuite/g++.dg/warn/template-2.C
  6f5999bf56f2861a257750422cda17b6  gcc/testsuite/g++.dg/warn/translate-ice-1.C
  81ccb812ec92857cf80d860b4ffa0d31  gcc/testsuite/g++.dg/warn/undefined1.C
+ ea3b303b6284894a2a7543bc63c639eb  gcc/testsuite/g++.dg/warn/undefined2.C
  338b16478b2b401f31f40a2d7b08dfb1  gcc/testsuite/g++.dg/warn/uninit-1.C
  c439e6ca6ae1ca3377fa6507bf891b6c  gcc/testsuite/g++.dg/warn/uninit-pr105562.C
  69c608be9c8c02e5a60a4342603a5fac  gcc/testsuite/g++.dg/warn/uninit-pr48483.C
*************** d3a9f35aa3368d1b42549e9f573b7f19  libgcc
*** 101779,101785 ****
  660f8302d8422ba8cf16712c84a2bde0  libgcc/config/avr/lib1funcs.S
  622f81485f02d0eac2caaafa7d3a2fd1  libgcc/config/avr/lib2-object.mk
  624dc6fc660cb976b810335b3730ec59  libgcc/config/avr/lib2funcs.c
! 4241d61a93883e73a622f9f1ca7d1885  libgcc/config/avr/libf7/ChangeLog
  69b1e41bdec3b286de0827697e4b6acd  libgcc/config/avr/libf7/asm-defs.h
  434f68c401e93814081ae499ba72ffaf  libgcc/config/avr/libf7/f7-renames.h
  ec0383052925c464decb1bfdeaa5c95c  libgcc/config/avr/libf7/f7-wraps.h
--- 101784,101790 ----
  660f8302d8422ba8cf16712c84a2bde0  libgcc/config/avr/lib1funcs.S
  622f81485f02d0eac2caaafa7d3a2fd1  libgcc/config/avr/lib2-object.mk
  624dc6fc660cb976b810335b3730ec59  libgcc/config/avr/lib2funcs.c
! 6fc6177aface8980a51b37e6d6c5dea9  libgcc/config/avr/libf7/ChangeLog
  69b1e41bdec3b286de0827697e4b6acd  libgcc/config/avr/libf7/asm-defs.h
  434f68c401e93814081ae499ba72ffaf  libgcc/config/avr/libf7/f7-renames.h
  ec0383052925c464decb1bfdeaa5c95c  libgcc/config/avr/libf7/f7-wraps.h
*************** c0d4a5a9b2844505ec941ff60cae008f  libgcc
*** 101787,101793 ****
  8df828b3d2faf7a35d58170a9bafa333  libgcc/config/avr/libf7/f7wraps.sh
  929b89a7da7c3071631792a97bbda961  libgcc/config/avr/libf7/libf7-array.def
  5d9def53110ec07e8f29e66d593d758f  libgcc/config/avr/libf7/libf7-asm-object.mk
! 508c8be98af26874d031b6b77b89a761  libgcc/config/avr/libf7/libf7-asm.sx
  6b4886ae302fca1fa733831066c5c830  libgcc/config/avr/libf7/libf7-c-object.mk
  47dccabf16372b55fb7154bd70ce141f  libgcc/config/avr/libf7/libf7-common.mk
  abb1c90068e1f456d0639bcaa1cc4a94  libgcc/config/avr/libf7/libf7-const.def
--- 101792,101798 ----
  8df828b3d2faf7a35d58170a9bafa333  libgcc/config/avr/libf7/f7wraps.sh
  929b89a7da7c3071631792a97bbda961  libgcc/config/avr/libf7/libf7-array.def
  5d9def53110ec07e8f29e66d593d758f  libgcc/config/avr/libf7/libf7-asm-object.mk
! 5a70f9714e3446cee40e8e763c805c30  libgcc/config/avr/libf7/libf7-asm.sx
  6b4886ae302fca1fa733831066c5c830  libgcc/config/avr/libf7/libf7-c-object.mk
  47dccabf16372b55fb7154bd70ce141f  libgcc/config/avr/libf7/libf7-common.mk
  abb1c90068e1f456d0639bcaa1cc4a94  libgcc/config/avr/libf7/libf7-const.def
*************** c265574887f4390ecccd1073ee5c0190  libssp
*** 113716,113722 ****
  02470b541ab713bd1bfb8e6787e65f2c  libssp/strncpy-chk.c
  8a7a0719ef45cb3ae0041192eac8d550  libssp/vsnprintf-chk.c
  d662ba7536e1bd06226d47b1a7f1f4e2  libssp/vsprintf-chk.c
! c2257d298b83cb111f44006b6ae33085  libstdc++-v3/ChangeLog
  7aa6c40440a44fcf5ec94c066160c2f8  libstdc++-v3/ChangeLog-1998
  7aff86600b6a1ed3fa87305075a92db0  libstdc++-v3/ChangeLog-1999
  a6f28e8fc9bb07696a9e068b439a3a87  libstdc++-v3/ChangeLog-2000
--- 113721,113727 ----
  02470b541ab713bd1bfb8e6787e65f2c  libssp/strncpy-chk.c
  8a7a0719ef45cb3ae0041192eac8d550  libssp/vsnprintf-chk.c
  d662ba7536e1bd06226d47b1a7f1f4e2  libssp/vsprintf-chk.c
! 52f14ddc29b7929fdde1837f19288e63  libstdc++-v3/ChangeLog
  7aa6c40440a44fcf5ec94c066160c2f8  libstdc++-v3/ChangeLog-1998
  7aff86600b6a1ed3fa87305075a92db0  libstdc++-v3/ChangeLog-1999
  a6f28e8fc9bb07696a9e068b439a3a87  libstdc++-v3/ChangeLog-2000
*************** d03063a4bedb845e2ff7fba28b7ecb1d  libstd
*** 115129,115135 ****
  91349ac9a04bb9ff2dc33d743bcf6601  libstdc++-v3/include/std/shared_mutex
  d379c79a4b4ed0a78190d8f4a9da9aa2  libstdc++-v3/include/std/source_location
  2a2066d8e8f8c8a94b2d17fa0990856d  libstdc++-v3/include/std/span
! d85e5f395906ee64d169f731e153854e  libstdc++-v3/include/std/spanstream
  20d55bd6ba1c90c00d51f7ab0d3f765c  libstdc++-v3/include/std/sstream
  91e5fdbed2e8180adc1417ecfceba477  libstdc++-v3/include/std/stack
  bbc0c33c94ab18dc7789ef417cbd2143  libstdc++-v3/include/std/stacktrace
--- 115134,115140 ----
  91349ac9a04bb9ff2dc33d743bcf6601  libstdc++-v3/include/std/shared_mutex
  d379c79a4b4ed0a78190d8f4a9da9aa2  libstdc++-v3/include/std/source_location
  2a2066d8e8f8c8a94b2d17fa0990856d  libstdc++-v3/include/std/span
! db9fe283b6b937cb9e68fc46bd412a89  libstdc++-v3/include/std/spanstream
  20d55bd6ba1c90c00d51f7ab0d3f765c  libstdc++-v3/include/std/sstream
  91e5fdbed2e8180adc1417ecfceba477  libstdc++-v3/include/std/stack
  bbc0c33c94ab18dc7789ef417cbd2143  libstdc++-v3/include/std/stacktrace
*************** b715c45a6677f269807dab0bbcf0ee1d  libstd
*** 122418,122423 ****
--- 122423,122429 ----
  4efed1789a62f6991adff97279bcd1f4  libstdc++-v3/testsuite/27_io/rvalue_streams-2.cc
  d1dfe55fd3a5885b95cd86dc0498bee0  libstdc++-v3/testsuite/27_io/rvalue_streams.cc
  fe40135327d86460d13b734f54db39ec  libstdc++-v3/testsuite/27_io/spanstream/1.cc
+ 3594f52a64f56373d233b505e211d1ba  libstdc++-v3/testsuite/27_io/spanstream/127006.cc
  44feabe2b97157af832bd4b647727182  libstdc++-v3/testsuite/27_io/spanstream/2.cc
  54572175dfa1a1c5dd980cde76230006  libstdc++-v3/testsuite/27_io/spanstream/version.cc
  900d1a060a2d7ff7077bef529057baa5  libstdc++-v3/testsuite/27_io/types/1.cc
diff -Nrcpad gcc-13-20260819/gcc/ChangeLog gcc-13-20260826/gcc/ChangeLog
*** gcc-13-20260819/gcc/ChangeLog	Wed Aug 19 22:32:06 2026
--- gcc-13-20260826/gcc/ChangeLog	Wed Aug 26 22:32:06 2026
***************
*** 1,3 ****
--- 1,19 ----
+ 2026-08-20  Marek Polacek  <polacek@redhat.com>
+ 
+ 	Backported from master:
+ 	2025-05-14  Marek Polacek  <polacek@redhat.com>
+ 
+ 	PR c++/116960
+ 	PR c++/119303
+ 	* diagnostic.cc (diagnostic_context::report_diagnostic): Check for
+ 	non-zero m_lock later, after checking diagnostic_enabled.
+ 
+ 2026-08-19  Alice Carlotti  <alice.carlotti@arm.com>
+ 
+ 	PR target/124629
+ 	* config/aarch64/driver-aarch64.cc (AARCH64_ARCH):
+ 	Don't skip first character of #ARCH_IDENT.
+ 
  2026-08-14  Richard Biener  <rguenther@suse.de>
  
  	Backported from master:
diff -Nrcpad gcc-13-20260819/gcc/DATESTAMP gcc-13-20260826/gcc/DATESTAMP
*** gcc-13-20260819/gcc/DATESTAMP	Wed Aug 19 22:32:06 2026
--- gcc-13-20260826/gcc/DATESTAMP	Wed Aug 26 22:32:06 2026
***************
*** 1 ****
! 20260819
--- 1 ----
! 20260826
diff -Nrcpad gcc-13-20260819/gcc/cp/ChangeLog gcc-13-20260826/gcc/cp/ChangeLog
*** gcc-13-20260819/gcc/cp/ChangeLog	Wed Aug 19 22:32:08 2026
--- gcc-13-20260826/gcc/cp/ChangeLog	Wed Aug 26 22:32:07 2026
***************
*** 1,3 ****
--- 1,17 ----
+ 2026-08-20  Marek Polacek  <polacek@redhat.com>
+ 
+ 	Backported from master:
+ 	2025-03-07  Marek Polacek  <polacek@redhat.com>
+ 
+ 	PR c++/118775
+ 	* constexpr.cc (cxx_eval_call_expression): Check tree_fits_uhwi_p.
+ 
+ 2026-08-20  Marek Polacek  <polacek@redhat.com>
+ 
+ 	PR c++/116379
+ 	* pt.cc (tsubst_expr) <COMPONENT_REF>: Use force_paren_expr to set
+ 	REF_PARENTHESIZED_P.
+ 
  2026-08-01  Jakub Jelinek  <jakub@redhat.com>
  
  	Backported from master:
diff -Nrcpad gcc-13-20260819/gcc/cp/constexpr.cc gcc-13-20260826/gcc/cp/constexpr.cc
*** gcc-13-20260819/gcc/cp/constexpr.cc	Wed Aug 19 22:32:08 2026
--- gcc-13-20260826/gcc/cp/constexpr.cc	Wed Aug 26 22:32:08 2026
*************** cxx_eval_call_expression (const constexp
*** 2748,2753 ****
--- 2748,2764 ----
  	  gcc_assert (arg0);
  	  if (IDENTIFIER_NEW_OP_P (DECL_NAME (fun)))
  	    {
+ 	      /* FIXME: We should not get here; the VERIFY_CONSTANT above
+ 		 should have already caught it.  But currently a conversion
+ 		 from pointer type to arithmetic type is only considered
+ 		 non-constant for CONVERT_EXPRs, not NOP_EXPRs.  */
+ 	      if (!tree_fits_uhwi_p (arg0))
+ 		{
+ 		  if (!ctx->quiet)
+ 		    error_at (loc, "cannot allocate array: size not constant");
+ 		  *non_constant_p = true;
+ 		  return t;
+ 		}
  	      tree type = build_array_type_nelts (char_type_node,
  						  tree_to_uhwi (arg0));
  	      tree var = build_decl (loc, VAR_DECL,
diff -Nrcpad gcc-13-20260819/gcc/cp/pt.cc gcc-13-20260826/gcc/cp/pt.cc
*** gcc-13-20260819/gcc/cp/pt.cc	Wed Aug 19 22:32:08 2026
--- gcc-13-20260826/gcc/cp/pt.cc	Wed Aug 26 22:32:08 2026
*************** tsubst_copy_and_build (tree t,
*** 21538,21545 ****
  	    r = finish_non_static_data_member (member, object, NULL_TREE,
  					       complain);
  	    pop_deferring_access_checks ();
! 	    if (TREE_CODE (r) == COMPONENT_REF)
! 	      REF_PARENTHESIZED_P (r) = REF_PARENTHESIZED_P (t);
  	    RETURN (r);
  	  }
  	else if (type_dependent_expression_p (object))
--- 21538,21545 ----
  	    r = finish_non_static_data_member (member, object, NULL_TREE,
  					       complain);
  	    pop_deferring_access_checks ();
! 	    if (REF_PARENTHESIZED_P (t))
! 	      r = force_paren_expr (r);
  	    RETURN (r);
  	  }
  	else if (type_dependent_expression_p (object))
diff -Nrcpad gcc-13-20260819/gcc/diagnostic.cc gcc-13-20260826/gcc/diagnostic.cc
*** gcc-13-20260819/gcc/diagnostic.cc	Wed Aug 19 22:32:08 2026
--- gcc-13-20260826/gcc/diagnostic.cc	Wed Aug 26 22:32:08 2026
*************** diagnostic_report_diagnostic (diagnostic
*** 1517,1534 ****
    if (diagnostic->kind == DK_NOTE && context->inhibit_notes_p)
      return false;
  
-   if (context->lock > 0)
-     {
-       /* If we're reporting an ICE in the middle of some other error,
- 	 try to flush out the previous error, then let this one
- 	 through.  Don't do this more than once.  */
-       if ((diagnostic->kind == DK_ICE || diagnostic->kind == DK_ICE_NOBT)
- 	  && context->lock == 1)
- 	pp_newline_and_flush (context->printer);
-       else
- 	error_recursion (context);
-     }
- 
    /* If the user requested that warnings be treated as errors, so be
       it.  Note that we do this before the next block so that
       individual warnings can be overridden back to warnings with
--- 1517,1522 ----
*************** diagnostic_report_diagnostic (diagnostic
*** 1553,1558 ****
--- 1541,1558 ----
    if (diagnostic->kind != DK_NOTE && diagnostic->kind != DK_ICE)
      diagnostic_check_max_errors (context);
  
+   if (context->lock > 0)
+     {
+       /* If we're reporting an ICE in the middle of some other error,
+ 	 try to flush out the previous error, then let this one
+ 	 through.  Don't do this more than once.  */
+       if ((diagnostic->kind == DK_ICE || diagnostic->kind == DK_ICE_NOBT)
+ 	  && context->lock == 1)
+ 	pp_newline_and_flush (context->printer);
+       else
+ 	error_recursion (context);
+     }
+ 
    context->lock++;
  
    if (diagnostic->kind == DK_ICE || diagnostic->kind == DK_ICE_NOBT)
diff -Nrcpad gcc-13-20260819/gcc/testsuite/ChangeLog gcc-13-20260826/gcc/testsuite/ChangeLog
*** gcc-13-20260819/gcc/testsuite/ChangeLog	Wed Aug 19 22:32:10 2026
--- gcc-13-20260826/gcc/testsuite/ChangeLog	Wed Aug 26 22:32:10 2026
***************
*** 1,3 ****
--- 1,33 ----
+ 2026-08-20  Marek Polacek  <polacek@redhat.com>
+ 
+ 	Backported from master:
+ 	2025-03-07  Marek Polacek  <polacek@redhat.com>
+ 
+ 	PR c++/118775
+ 	* g++.dg/cpp2a/constexpr-new24.C: New test.
+ 	* g++.dg/cpp2a/constexpr-new25.C: New test.
+ 
+ 2026-08-20  Marek Polacek  <polacek@redhat.com>
+ 
+ 	PR c++/116379
+ 	* g++.dg/cpp1y/decltype-auto9.C: New test.
+ 
+ 2026-08-20  Marek Polacek  <polacek@redhat.com>
+ 
+ 	Backported from master:
+ 	2025-05-14  Marek Polacek  <polacek@redhat.com>
+ 
+ 	PR c++/116960
+ 	PR c++/119303
+ 	* g++.dg/cpp2a/lambda-uneval26.C: New test.
+ 	* g++.dg/warn/undefined2.C: New test.
+ 
+ 2026-08-19  Alice Carlotti  <alice.carlotti@arm.com>
+ 
+ 	PR target/124629
+ 	* gcc.target/aarch64/cpunative/info_36: New test file.
+ 	* gcc.target/aarch64/cpunative/native_cpu_36.c: New test.
+ 
  2026-08-14  Richard Biener  <rguenther@suse.de>
  
  	Backported from master:
diff -Nrcpad gcc-13-20260819/gcc/testsuite/g++.dg/cpp1y/decltype-auto9.C gcc-13-20260826/gcc/testsuite/g++.dg/cpp1y/decltype-auto9.C
*** gcc-13-20260819/gcc/testsuite/g++.dg/cpp1y/decltype-auto9.C	Thu Jan  1 00:00:00 1970
--- gcc-13-20260826/gcc/testsuite/g++.dg/cpp1y/decltype-auto9.C	Wed Aug 26 22:32:11 2026
***************
*** 0 ****
--- 1,15 ----
+ // PR c++/116379
+ // { dg-do compile { target c++14 } }
+ 
+ template<typename T>
+ struct X {
+   T val;
+   decltype(auto) value() { return (val); }
+ };
+ 
+ int main() {
+   int i = 0;
+   X<int&&> x{ static_cast<int&&>(i) };
+   using type = decltype(x.value());
+   using type = int&;
+ }
diff -Nrcpad gcc-13-20260819/gcc/testsuite/g++.dg/cpp2a/constexpr-new24.C gcc-13-20260826/gcc/testsuite/g++.dg/cpp2a/constexpr-new24.C
*** gcc-13-20260819/gcc/testsuite/g++.dg/cpp2a/constexpr-new24.C	Thu Jan  1 00:00:00 1970
--- gcc-13-20260826/gcc/testsuite/g++.dg/cpp2a/constexpr-new24.C	Wed Aug 26 22:32:11 2026
***************
*** 0 ****
--- 1,25 ----
+ // PR c++/118775
+ // { dg-do compile { target c++20 } }
+ 
+ int a;
+ 
+ constexpr char *
+ f1 ()
+ {
+   constexpr auto p = new char[(long int) &a]; // { dg-error "conversion from pointer" }
+   return p;
+ }
+ 
+ constexpr char *
+ f2 ()
+ {
+   auto p = new char[(long int) &a];  // { dg-error "conversion from pointer" }
+   return p;
+ }
+ 
+ void
+ g ()
+ {
+   auto r1 = f2 ();
+   constexpr auto r2 = f2 (); // { dg-message "in .constexpr. expansion" }
+ }
diff -Nrcpad gcc-13-20260819/gcc/testsuite/g++.dg/cpp2a/constexpr-new25.C gcc-13-20260826/gcc/testsuite/g++.dg/cpp2a/constexpr-new25.C
*** gcc-13-20260819/gcc/testsuite/g++.dg/cpp2a/constexpr-new25.C	Thu Jan  1 00:00:00 1970
--- gcc-13-20260826/gcc/testsuite/g++.dg/cpp2a/constexpr-new25.C	Wed Aug 26 22:32:11 2026
***************
*** 0 ****
--- 1,27 ----
+ // PR c++/118775
+ // { dg-do compile { target c++20 } }
+ 
+ namespace std {
+ struct __uniq_ptr_impl {
+   constexpr __uniq_ptr_impl(char *) {}
+ };
+ template <typename> struct unique_ptr {
+   __uniq_ptr_impl _M_t;
+   constexpr ~unique_ptr() {}
+ };
+ template <typename> struct _MakeUniq;
+ template <typename _Tp> struct _MakeUniq<_Tp[]> {
+   typedef unique_ptr<_Tp[]> __array;
+ };
+ template <typename _Tp> using __unique_ptr_array_t = _MakeUniq<_Tp>::__array;
+ constexpr __unique_ptr_array_t<char[]> make_unique(long __num) {
+   return unique_ptr<char[]>(new char[__num]);
+ }
+ } // namespace std
+ int a;
+ int
+ main ()
+ {
+   std::unique_ptr p = std::make_unique((long)&a);
+   constexpr std::unique_ptr p2 = std::make_unique((long)&a); // { dg-error "conversion" }
+ }
diff -Nrcpad gcc-13-20260819/gcc/testsuite/g++.dg/cpp2a/lambda-uneval26.C gcc-13-20260826/gcc/testsuite/g++.dg/cpp2a/lambda-uneval26.C
*** gcc-13-20260819/gcc/testsuite/g++.dg/cpp2a/lambda-uneval26.C	Thu Jan  1 00:00:00 1970
--- gcc-13-20260826/gcc/testsuite/g++.dg/cpp2a/lambda-uneval26.C	Wed Aug 26 22:32:11 2026
***************
*** 0 ****
--- 1,10 ----
+ // PR c++/116960
+ // { dg-do compile { target c++20 } }
+ 
+ template<auto>
+ using Foo = decltype([](auto) { return 0; }(0));
+ 
+ template<typename...>
+ Foo<[] {}> foo() {}   // { dg-warning "no return statement" }
+ 
+ auto t = foo();
diff -Nrcpad gcc-13-20260819/gcc/testsuite/g++.dg/warn/undefined2.C gcc-13-20260826/gcc/testsuite/g++.dg/warn/undefined2.C
*** gcc-13-20260819/gcc/testsuite/g++.dg/warn/undefined2.C	Thu Jan  1 00:00:00 1970
--- gcc-13-20260826/gcc/testsuite/g++.dg/warn/undefined2.C	Wed Aug 26 22:32:11 2026
***************
*** 0 ****
--- 1,14 ----
+ // PR c++/119303
+ 
+ template <class> struct c {
+   enum { d = 4 };
+ };
+ template <bool> struct e {
+   typedef void g;
+ };
+ template <class _Tp>
+ inline typename e<!c<_Tp>::d>::g bar(_Tp); // { dg-warning "used but never defined" }
+ 
+ int x;
+ 
+ void foo() { bar(x); }
diff -Nrcpad gcc-13-20260819/libgcc/config/avr/libf7/ChangeLog gcc-13-20260826/libgcc/config/avr/libf7/ChangeLog
*** gcc-13-20260819/libgcc/config/avr/libf7/ChangeLog	Wed Aug 19 22:32:17 2026
--- gcc-13-20260826/libgcc/config/avr/libf7/ChangeLog	Wed Aug 26 22:32:17 2026
***************
*** 1,3 ****
--- 1,12 ----
+ 2026-08-24  Georg-Johann Lay  <avr@gjlay.de>
+ 
+ 	Backported from master:
+ 	2026-08-24  Georg-Johann Lay  <avr@gjlay.de>
+ 
+ 	PR target/127024
+ 	* libf7-asm.sx (to_integer): Don't skip XJMP
+ 	if __AVR_ERRATA_SKIP_JMP_CALL__.
+ 
  2025-06-05  Release Manager
  
  	* GCC 13.4.0 released.
diff -Nrcpad gcc-13-20260819/libgcc/config/avr/libf7/libf7-asm.sx gcc-13-20260826/libgcc/config/avr/libf7/libf7-asm.sx
*** gcc-13-20260819/libgcc/config/avr/libf7/libf7-asm.sx	Wed Aug 19 22:32:17 2026
--- gcc-13-20260826/libgcc/config/avr/libf7/libf7-asm.sx	Wed Aug 26 22:32:17 2026
*************** DEFUN to_integer
*** 602,613 ****
      brmi    .Lsaturate.T    ;   > INTxx_MAX  =>  saturate
  
      brtc 9f                 ;   >= 0         =>  return
      sbrc    Mask,   5
-     .global __negdi2
      XJMP    __negdi2
      sbrc    Mask,   4
-     .global __negsi2
      XJMP    __negsi2
      neg     C6
      neg     C5
      sbci    C6,     0
--- 602,622 ----
      brmi    .Lsaturate.T    ;   > INTxx_MAX  =>  saturate
  
      brtc 9f                 ;   >= 0         =>  return
+ #ifdef __AVR_ERRATA_SKIP_JMP_CALL__
+     ;; Some cores have a problem skipping 2-word instructions.
+     sbrs    Mask,   5
+     rjmp    0f
+     XJMP    __negdi2
+ 0:  sbrs    Mask,   4
+     rjmp    1f
+     XJMP    __negsi2
+ 1:
+ #else
      sbrc    Mask,   5
      XJMP    __negdi2
      sbrc    Mask,   4
      XJMP    __negsi2
+ #endif /* __AVR_ERRATA_SKIP_JMP_CALL__ */
      neg     C6
      neg     C5
      sbci    C6,     0
diff -Nrcpad gcc-13-20260819/libstdc++-v3/ChangeLog gcc-13-20260826/libstdc++-v3/ChangeLog
*** gcc-13-20260819/libstdc++-v3/ChangeLog	Wed Aug 19 22:32:18 2026
--- gcc-13-20260826/libstdc++-v3/ChangeLog	Wed Aug 26 22:32:18 2026
***************
*** 1,3 ****
--- 1,13 ----
+ 2026-08-25  Jonathan Wakely  <jwakely@redhat.com>
+ 
+ 	Backported from master:
+ 	2026-08-24  Jonathan Wakely  <jwakely@redhat.com>
+ 
+ 	PR libstdc++/127006
+ 	* include/std/spanstream (basic_ospanstream(span, openmode)):
+ 	Add correct openmode value to parameter.
+ 	* testsuite/27_io/spanstream/127006.cc: New test.
+ 
  2026-08-18  Jonathan Wakely  <jwakely@redhat.com>
  
  	Backported from master:
diff -Nrcpad gcc-13-20260819/libstdc++-v3/include/std/spanstream gcc-13-20260826/libstdc++-v3/include/std/spanstream
*** gcc-13-20260819/libstdc++-v3/include/std/spanstream	Wed Aug 19 22:32:19 2026
--- gcc-13-20260826/libstdc++-v3/include/std/spanstream	Wed Aug 26 22:32:19 2026
*************** template<typename _CharT, typename _Trai
*** 331,337 ****
      basic_ospanstream(std::span<_CharT> __s,
  		      ios_base::openmode __which = ios_base::out)
      : __ostream_type(std::__addressof(_M_sb)),
!       _M_sb(__s, __which | ios_base::in)
      { }
  
      basic_ospanstream(const basic_ospanstream&) = delete;
--- 331,337 ----
      basic_ospanstream(std::span<_CharT> __s,
  		      ios_base::openmode __which = ios_base::out)
      : __ostream_type(std::__addressof(_M_sb)),
!       _M_sb(__s, __which | ios_base::out)
      { }
  
      basic_ospanstream(const basic_ospanstream&) = delete;
diff -Nrcpad gcc-13-20260819/libstdc++-v3/testsuite/27_io/spanstream/127006.cc gcc-13-20260826/libstdc++-v3/testsuite/27_io/spanstream/127006.cc
*** gcc-13-20260819/libstdc++-v3/testsuite/27_io/spanstream/127006.cc	Thu Jan  1 00:00:00 1970
--- gcc-13-20260826/libstdc++-v3/testsuite/27_io/spanstream/127006.cc	Wed Aug 26 22:32:20 2026
***************
*** 0 ****
--- 1,30 ----
+ // { dg-do run { target c++23 } }
+ 
+ #include <spanstream>
+ #include <testsuite_hooks.h>
+ 
+ void
+ test_pr127006_out()
+ {
+   // PR libstdc++/127006
+   char buf[3]{};
+   std::ospanstream s(buf, std::ios::openmode{});
+   VERIFY( s << 'x' );
+   VERIFY( buf[0] == 'x' );
+ }
+ 
+ void
+ test_pr127006_in()
+ {
+   char buf[3]{'x'};
+   std::ispanstream s(buf, std::ios::openmode{});
+   char x;
+   VERIFY( s >> x );
+   VERIFY( x == 'x' );
+ }
+ 
+ int main()
+ {
+   test_pr127006_out();
+   test_pr127006_in();
+ }
