From bd55ce63657b42e32040d1e09b4cd76fe3705474 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 29 Feb 2020 17:46:12 +0000 Subject: [PATCH] Explicitly link with libatomic when needed. 2020-02-29 John David Anglin * testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc: Add libatomic option. * testsuite/30_threads/jthread/jthread.cc: Likewise. --- libstdc++-v3/ChangeLog | 6 ++++++ .../30_threads/condition_variable_any/stop_token/wait_on.cc | 1 + libstdc++-v3/testsuite/30_threads/jthread/jthread.cc | 1 + 3 files changed, 8 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 34615413280..24b556a7af5 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2020-02-29 John David Anglin + + * testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc: + Add libatomic option. + * testsuite/30_threads/jthread/jthread.cc: Likewise. + 2020-02-29 François Dumont * include/bits/stl_algo.h diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc index cb1637c306d..0efda12708f 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a -pthread" } +// { dg-add-options libatomic } // { dg-do run } // { dg-require-effective-target c++2a } // { dg-require-effective-target pthread } diff --git a/libstdc++-v3/testsuite/30_threads/jthread/jthread.cc b/libstdc++-v3/testsuite/30_threads/jthread/jthread.cc index c34958c25d9..746ff437c1d 100644 --- a/libstdc++-v3/testsuite/30_threads/jthread/jthread.cc +++ b/libstdc++-v3/testsuite/30_threads/jthread/jthread.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++2a -pthread" } +// { dg-add-options libatomic } // { dg-do run { target c++2a } } // { dg-require-effective-target pthread } // { dg-require-gthreads "" } -- 2.30.2