Explicitly link with libatomic when needed.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 29 Feb 2020 17:46:12 +0000 (17:46 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 29 Feb 2020 17:46:12 +0000 (17:46 +0000)
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.

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc
libstdc++-v3/testsuite/30_threads/jthread/jthread.cc

index 34615413280bc37aa71dd4e9e976276ce5b5a766..24b556a7af596855b762590cc9b487257b8245ba 100644 (file)
@@ -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
index cb1637c306de344b80246ce76203565ec42c0938..0efda12708f07aa9e4c46f38c0f768565416615d 100644 (file)
@@ -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 }
index c34958c25d980399243115a0d4c189c8627f6eb8..746ff437c1d17f15334db65f36d59b2a5edf9b1d 100644 (file)
@@ -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 "" }