[Bug libstdc++/124124] 29_atomics/atomic/cons/zero_padding.cc FAILs

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 5 11:03:45 GMT 2026


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

--- Comment #22 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tomasz Kaminski <tkaminsk@gcc.gnu.org>:

https://gcc.gnu.org/g:3a41229f92022bfb388911854d597721fce76714

commit r16-7911-g3a41229f92022bfb388911854d597721fce76714
Author: Tomasz KamiÅski <tkaminsk@redhat.com>
Date:   Thu Mar 5 08:57:24 2026 +0100

    libstdc++: Fix atomic/cons/zero_padding.cc test for arm-none-eabi
[PR124124]

    The test uses dg-require-atomic-cmpxchg-word that checks if atomic compare
    exchange is available for pointer sized integers, and then test types that
    are eight bytes in size. This causes issue for targets for which pointers
    are four byte and libatomic is not present, like arm-none-eabi.

    This patch addresses by using short member in TailPadding and MidPadding,
    instead of int. This reduces the size of types to four bytes, while keeping
    padding bytes present.

            PR libstdc++/124124

    libstdc++-v3/ChangeLog:

            * testsuite/29_atomics/atomic/cons/zero_padding.cc: Limit size of
            test types to four bytes.

    Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
    Signed-off-by: Tomasz KamiÅski <tkaminsk@redhat.com>


More information about the Gcc-bugs mailing list