https://gcc.gnu.org/g:060d7c2a9c1fe16d23d98a74287fdb7c73ddb784

commit r16-7548-g060d7c2a9c1fe16d23d98a74287fdb7c73ddb784
Author: Tomasz Kamiński <[email protected]>
Date:   Mon Feb 16 15:07:54 2026 +0100

    libstdc++: Correct requirements for atomic/cons/zero_padding.cc tests 
[PR124124].
    
    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 <[email protected]>
    Reviewed-by: Patrick Palka <[email protected]>
    Signed-off-by: Tomasz Kamiński <[email protected]>

Diff:
---
 libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc 
b/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc
index ad48d66de3a4..3c8a4a8f428a 100644
--- a/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc
+++ b/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc
@@ -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>

Reply via email to