Commit bd55ce63 by John David Anglin

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.
parent 44c85722
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> 2020-02-29 François Dumont <fdumont@gcc.gnu.org>
* include/bits/stl_algo.h * include/bits/stl_algo.h
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a -pthread" } // { dg-options "-std=gnu++2a -pthread" }
// { dg-add-options libatomic }
// { dg-do run } // { dg-do run }
// { dg-require-effective-target c++2a } // { dg-require-effective-target c++2a }
// { dg-require-effective-target pthread } // { dg-require-effective-target pthread }
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a -pthread" } // { dg-options "-std=gnu++2a -pthread" }
// { dg-add-options libatomic }
// { dg-do run { target c++2a } } // { dg-do run { target c++2a } }
// { dg-require-effective-target pthread } // { dg-require-effective-target pthread }
// { dg-require-gthreads "" } // { dg-require-gthreads "" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment