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 <[email protected]>:

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

commit r16-7911-g3a41229f92022bfb388911854d597721fce76714
Author: Tomasz KamiÅski <[email protected]>
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 <[email protected]>
    Signed-off-by: Tomasz KamiÅski <[email protected]>

Reply via email to