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

--- Comment #24 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Tomasz Kaminski
<[email protected]>:

https://gcc.gnu.org/g:bbf8b6bbbfd46f950bf62f2f36699aa590678916

commit r15-10963-gbbf8b6bbbfd46f950bf62f2f36699aa590678916
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]>
    (cherry picked from commit 3a41229f92022bfb388911854d597721fce76714)

Reply via email to