diff mbox series

[committed] libstdc++: Link test with libatomic if needed [PR 98003]

Message ID 20201201103819.GA2709248@redhat.com
State New
Headers show
Series [committed] libstdc++: Link test with libatomic if needed [PR 98003] | expand

Commit Message

Jonathan Wakely Dec. 1, 2020, 10:38 a.m. UTC
libstdc++-v3/ChangeLog:

	PR libstdc++/98003
	* testsuite/27_io/basic_syncbuf/sync_ops/1.cc: Add options for
	libatomic.

Tested x86_64-linux. Committed to trunk.
commit 58f71a34c68711c4432b45086bfcccb78be7ace5
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Dec 1 10:36:09 2020

    libstdc++: Link test with libatomic if needed [PR 98003]
    
    libstdc++-v3/ChangeLog:
    
            PR libstdc++/98003
            * testsuite/27_io/basic_syncbuf/sync_ops/1.cc: Add options for
            libatomic.
diff mbox series

Patch

diff --git a/libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc b/libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc
index 90d20f1a6071..a224e0c02228 100644
--- a/libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc
@@ -15,11 +15,12 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a -pthread" }
+// { dg-options "-std=gnu++2a" }
 // { dg-do run { target c++2a } }
-// { dg-require-effective-target pthread }
 // { dg-require-effective-target cxx11-abi }
 // { dg-require-gthreads "" }
+// { dg-add-options libatomic }
+// { dg-additional-options "-pthread" { target pthread } }
 
 #include <algorithm>
 #include <atomic>