]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Correct requirements for atomic/cons/zero_padding.cc tests [PR124124].
authorTomasz Kamiński <tkaminsk@redhat.com>
Mon, 16 Feb 2026 14:07:54 +0000 (15:07 +0100)
committerTomasz Kamiński <tkaminsk@redhat.com>
Tue, 17 Feb 2026 11:36:41 +0000 (12:36 +0100)
This test uses atomic<T>::compare_exchange_strong and thus may require
libatomic and atomic-cmpxchg-word. The requirement on thread-fence and
non_pch were superfulous.

PR libstdc++/124124

libstdc++-v3/ChangeLog:

* testsuite/29_atomics/atomic/cons/zero_padding.cc: Adjust
dg-require.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Signed-off-by: Tomasz Kamiński <tkaminsk@redhat.com>
libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc

index ad48d66de3a4f4eb0587c7b6b655590be7c6f84d..3c8a4a8f428ad2772986d12d74b7fd1adf30a937 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-do run { target c++11 } }
-// { dg-require-thread-fence "" }
-// { dg-add-options no_pch }
+// { dg-require-atomic-cmpxchg-word "" }
+// { dg-add-options libatomic }
 
 #include <atomic>
 #include <cstring>