diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2020-02-29 17:46:12 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2020-02-29 17:46:12 +0000 |
commit | bd55ce63657b42e32040d1e09b4cd76fe3705474 (patch) | |
tree | 0ddf07c5a2185a9521494be2e91a9bdda71df59a /libstdc++-v3 | |
parent | 44c85722dc6499c65264d1d45ffe01701053b067 (diff) |
Explicitly link with libatomic when needed.
2020-02-29 John David Anglin <danglin@gcc.gnu.org>
* testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc:
Add libatomic option.
* testsuite/30_threads/jthread/jthread.cc: Likewise.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc | 1 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/jthread/jthread.cc | 1 |
3 files changed, 8 insertions, 0 deletions
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 <danglin@gcc.gnu.org> + + * 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 <fdumont@gcc.gnu.org> * 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 @@ // <http://www.gnu.org/licenses/>. // { 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 @@ // <http://www.gnu.org/licenses/>. // { dg-options "-std=gnu++2a -pthread" } +// { dg-add-options libatomic } // { dg-do run { target c++2a } } // { dg-require-effective-target pthread } // { dg-require-gthreads "" } |