From 58f71a34c68711c4432b45086bfcccb78be7ace5 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 1 Dec 2020 10:36:09 +0000 Subject: [PATCH] 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. --- libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 90d20f1a607..a224e0c0222 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 // . -// { 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 #include -- 2.30.2