libstdc++: Link tests to libatomic as required [PR 97948]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 23 Nov 2020 15:46:24 +0000 (15:46 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 23 Nov 2020 16:06:50 +0000 (16:06 +0000)
libstdc++-v3/ChangeLog:

PR libstdc++/97948
* testsuite/29_atomics/atomic_float/wait_notify.cc: Add options
for libatomic.
* testsuite/29_atomics/atomic_integral/wait_notify.cc: Likewise.
* testsuite/29_atomics/atomic_ref/wait_notify.cc: Likewise.

libstdc++-v3/testsuite/29_atomics/atomic_float/wait_notify.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/wait_notify.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/wait_notify.cc

index 27d9b601c2f4c6051a9a18ce6fb0592d7a36e4f3..8f9e4a39a21ff35af2954986f2f1095be0b45c62 100644 (file)
@@ -2,6 +2,7 @@
 // { dg-do run { target c++2a } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
+// { dg-add-options libatomic }
 // { dg-skip-if "broken" { ! *-*-*linux } }
 
 // Copyright (C) 2020 Free Software Foundation, Inc.
index 6e9ee7dbf93f1ac2f7a22f29b78d18ea04da870a..abf2bfdbee96cc4bb4d7ab4b5ff46520008acbaf 100644 (file)
@@ -2,6 +2,7 @@
 // { dg-do run { target c++2a } }
 // { dg-require-effective-target pthread }
 // { dg-require-gthreads "" }
+// { dg-add-options libatomic }
 
 // Copyright (C) 2020 Free Software Foundation, Inc.
 //
index dc5ae7a21eac7cae2e55bff5c3575abc2ae8bf79..b38fc206d468fa844495809f11b7cc7c9bc6a75f 100644 (file)
@@ -2,6 +2,7 @@
 // { dg-do run { target c++2a } }
 // { dg-require-effective-target pthread }
 // { dg-require-gthreads "" }
+// { dg-add-options libatomic }
 
 // Copyright (C) 2020 Free Software Foundation, Inc.
 //