public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r11-5604] libstdc++: Link test with libatomic if needed [PR 98003]
Date: Tue,  1 Dec 2020 10:38:06 +0000 (GMT)	[thread overview]
Message-ID: <20201201103806.E177F3944419@sourceware.org> (raw)

https://gcc.gnu.org/g:58f71a34c68711c4432b45086bfcccb78be7ace5

commit r11-5604-g58f71a34c68711c4432b45086bfcccb78be7ace5
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Dec 1 10:36:09 2020 +0000

    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:
---
 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
 // <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>


                 reply	other threads:[~2020-12-01 10:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201201103806.E177F3944419@sourceware.org \
    --to=redi@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).