https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126261
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Torbjorn Svensson <[email protected]>: https://gcc.gnu.org/g:cf69dd0145e174e5497739a373100f83be1894f6 commit r15-11398-gcf69dd0145e174e5497739a373100f83be1894f6 Author: Torbjörn SVENSSON <[email protected]> Date: Tue Jul 14 16:38:10 2026 +0200 testsuite: skip test for targets that can deref null [PR126261] As arm-none-eabi targets might have readable memory at address 0, g++.dg/torture/pr101373.C test will "work" on some targets, while others might tigger a fault. To avoid the ambiguity, lets skip the test if target allows null to be dereferenced. PR testsuite/126261 gcc/ChangeLog: * doc/sourcebuild.texi (can_deref_null): Document. gcc/testsuite/ChangeLog: * g++.dg/torture/pr101373.C: Use effective-target can_deref_null. * lib/target-supports.exp (check_effective_target_can_deref_null): New proc. Signed-off-by: Torbjörn SVENSSON <[email protected]> (cherry picked from commit 2e26607f7f14bd32ea8082ee626f207d6a9f87a0)
