https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126261

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Torbjorn Svensson
<[email protected]>:

https://gcc.gnu.org/g:307954e9c03aba314d6050d36edc056887df9a5d

commit r16-9314-g307954e9c03aba314d6050d36edc056887df9a5d
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)

Reply via email to