public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4285] testsuite: Require thread-fence for 29_atomics/atomic_flag/cons/value_init.cc
@ 2023-09-26 21:40 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2023-09-26 21:40 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

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

commit r14-4285-gdd0c42cd37dab62f9f61ac834333ec899305dee4
Author: Hans-Peter Nilsson <hp@axis.com>
Date:   Tue Sep 26 15:59:02 2023 +0200

    testsuite: Require thread-fence for 29_atomics/atomic_flag/cons/value_init.cc
    
    A recent patch made __atomic_test_and_set no longer fall
    back to emitting non-atomic code, but instead will then emit
    a call to __atomic_test_and_set, thereby exposing the need
    to gate also this test on support for atomics, similar to
    r14-3980-g62b29347c38394.
    
    libstdc++-v3:
            * testsuite/29_atomics/atomic_flag/cons/value_init.cc: Add
            dg-require-thread-fence.

Diff:
---
 libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc
index 084e2930f7e..f3f38b54dbc 100644
--- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc
+++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++20 } }
+// { dg-require-thread-fence "" }
 
 #include <atomic>
 #include <testsuite_hooks.h>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-26 21:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26 21:40 [gcc r14-4285] testsuite: Require thread-fence for 29_atomics/atomic_flag/cons/value_init.cc Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).