Explicitly link with libatomic when needed.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 29 Feb 2020 17:32:24 +0000 (17:32 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 29 Feb 2020 17:32:24 +0000 (17:32 +0000)
2020-02-29  John David Anglin  <danglin@gcc.gnu.org>

* testsuite/30_threads/stop_token/stop_callback.cc: Add libatomic
option.
* testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc:
Likewise.
* testsuite/30_threads/stop_token/stop_callback/deadlock.cc: Likewise.
* testsuite/30_threads/stop_token/stop_callback/destroy.cc: Likewise.
* testsuite/30_threads/stop_token/stop_callback/invoke.cc: Likewise.
* testsuite/30_threads/stop_token/stop_source.cc: Likewise.
* testsuite/30_threads/stop_token/stop_source/assign.cc: Likewise.
* testsuite/30_threads/stop_token/stop_token.cc: Likewise.
* testsuite/30_threads/stop_token/stop_token/stop_possible.cc:
Likewise.

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destroy.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc

index f2242e1efd5cc84bedf597f60cc8634727dc15ef..85a0cf25c74a7ff4fb447b8229f5c46cae84556a 100644 (file)
@@ -1,5 +1,18 @@
 2020-02-29  John David Anglin  <danglin@gcc.gnu.org>
 
+       * testsuite/30_threads/stop_token/stop_callback.cc: Add libatomic
+       option.
+       * testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc:
+       Likewise.
+       * testsuite/30_threads/stop_token/stop_callback/deadlock.cc: Likewise.
+       * testsuite/30_threads/stop_token/stop_callback/destroy.cc: Likewise.
+       * testsuite/30_threads/stop_token/stop_callback/invoke.cc: Likewise.
+       * testsuite/30_threads/stop_token/stop_source.cc: Likewise.
+       * testsuite/30_threads/stop_token/stop_source/assign.cc: Likewise.
+       * testsuite/30_threads/stop_token/stop_token.cc: Likewise.
+       * testsuite/30_threads/stop_token/stop_token/stop_possible.cc:
+       Likewise.
+
        PR libstdc++/92906
        * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
 
index da44f8ad8ed2dac077e99892d5472c12c8307a8e..b84d3af4f9bde5fd22eb3358e9ef836de52d00d1 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a" }
+// { dg-add-options libatomic }
 // { dg-do run { target c++2a } }
 
 #include <stop_token>
index 12c54db554fdcc8cc21df20223d321bf79b6e3c5..96f7197c3da917116a88f9071a37e196955722c5 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a -pthread"  }
+// { dg-add-options libatomic }
 // { dg-require-effective-target c++2a }
 // { dg-require-effective-target pthread }
 // { dg-require-gthreads "" }
index f9de6e02562d8c76a0a6a0b3fc709102bde0390a..c59446cf1b0084911810c38db17c3132481d009b 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a" }
+// { dg-add-options libatomic }
 // { dg-do run { target c++2a } }
 
 #include <stop_token>
index 3fa4d21c55cbf3db372babc22dcce4dd31412d27..b94743a884cecdff46c4517417aadec5192731a7 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a -pthread"  }
+// { dg-add-options libatomic }
 // { dg-require-effective-target c++2a }
 // { dg-require-effective-target pthread }
 // { dg-require-gthreads "" }
index 9b8137cc46d25e5d320d7dcc3e1f69785f322874..dc121121a59e0732566dd9c0754fe680e7818672 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a" }
+// { dg-add-options libatomic }
 // { dg-do run { target c++2a } }
 
 #include <stop_token>
index 9d15f0781ea69a726f91e511087a4e254ad94bde..7b2ae70d3b545786219df2549fea469fda1a3586 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a" }
+// { dg-add-options libatomic }
 // { dg-do run { target c++2a } }
 
 #include <stop_token>
index c822e8e398f7406e249288dd714db7c9c926579f..5aaaa05158f358c0d16278c2cd8816e5fb9df255 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a" }
+// { dg-add-options libatomic }
 // { dg-do run { target c++2a } }
 
 #include <stop_token>
index f8adc42b271f07d6c3607c0c666d10f3df40b303..2ab16765bea37c1229d4c07e86db7ac1aa69987c 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a" }
+// { dg-add-options libatomic }
 // { dg-do run { target c++2a } }
 
 #include <stop_token>
index ee8de6889ed4f65c0bc70428853b2f10ca7673b4..4ac45b61f4a760effc3720f5dd05c5754be009cb 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=gnu++2a" }
+// { dg-add-options libatomic }
 // { dg-do run { target c++2a } }
 
 #include <stop_token>