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:
parent
44c85722dc
commit
bd55ce6365
@ -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
|
||||
|
@ -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 }
|
||||
|
@ -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 "" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user