]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Correct requirements for atomic/cons/zero_padding.cc tests again [PR124124]
authorTomasz Kamiński <tkaminsk@redhat.com>
Tue, 17 Feb 2026 12:35:39 +0000 (13:35 +0100)
committerTomasz Kamiński <tkaminsk@redhat.com>
Tue, 17 Feb 2026 16:33:35 +0000 (17:33 +0100)
commitf3ba5ad088cebe117f857329a35b95d18d97a808
treeac6b5a70f0655dfd21d436e5a1eeae8de8155b89
parent44a51e8c7037eacd4315df0e84bf51e6e4021088
libstdc++: Correct requirements for atomic/cons/zero_padding.cc tests again [PR124124]

The requirements introduced in previous patch r16-7548-g060d7c2a9c1fe1,
were not sufficient for types of size bigger than 64B (Ctor or long double),
as dg-add-options of libatomic, links libatomic only if it is required to
handle atomics of 64B types or pointers.

This patch addresses above, by reducing the size of Ctor struct to fit in
64 bytes, and moving long double test to separate file, that requires and
links with libatomic.

PR libstdc++/124124

libstdc++-v3/ChangeLog:

* testsuite/29_atomics/atomic/cons/zero_padding.cc: Updated
Ctor class and move test_floating to...
* testsuite/29_atomics/atomic_float/zero_padding.cc: Extracted
test_floating.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Tomasz Kamiński <tkaminsk@redhat.com>
libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc
libstdc++-v3/testsuite/29_atomics/atomic_float/zero_padding.cc [new file with mode: 0644]