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.
This commit is contained in:
John David Anglin 2020-02-29 17:46:12 +00:00
parent 44c85722dc
commit bd55ce6365
3 changed files with 8 additions and 0 deletions

View 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

View 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 }

View 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 "" }