]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Add dg-require-thread-fence in several tests
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 14 Sep 2023 08:59:20 +0000 (08:59 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Thu, 14 Sep 2023 09:31:48 +0000 (09:31 +0000)
commit62b29347c38394ae32858f2301aa9aa65205984e
treec275e3bcf9cde9ed716c8b91831d61c3e368335f
parent53ad1bd520759580b9a5cc590a81a1a30b9e2e28
libstdc++: Add dg-require-thread-fence in several tests

Some targets like arm-eabi with newlib and default settings rely on
__sync_synchronize() to ensure synchronization.  Newlib does not
implement it by default, to make users aware they have to take special
care.

This makes a few tests fail to link.

This patch requires the missing thread-fence effective target in the
tests that need it, making them UNSUPPORTED instead of FAIL and
UNRESOLVED.

2023-09-10  Christophe Lyon  <christophe.lyon@linaro.org>

libstdc++-v3/
* testsuite/29_atomics/atomic/compare_exchange_padding.cc: Likewise.
* testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
* testsuite/29_atomics/atomic_float/value_init.cc: Likewise.
* testsuite/29_atomics/atomic_integral/cons/value_init.cc: Likewise.
* testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc: Likewise.
* testsuite/29_atomics/atomic_ref/generic.cc: Likewise.
* testsuite/29_atomics/atomic_ref/integral.cc: Likewise.
* testsuite/29_atomics/atomic_ref/pointer.cc: Likewise.
libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc
libstdc++-v3/testsuite/29_atomics/atomic/cons/value_init.cc
libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/value_init.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc
This page took 0.057556 seconds and 5 git commands to generate.