[gcc r10-6941] Explicitly link with libatomic when needed.

John David Anglin danglin@gcc.gnu.org
Sat Feb 29 17:46:00 GMT 2020


https://gcc.gnu.org/g:bd55ce63657b42e32040d1e09b4cd76fe3705474

commit r10-6941-gbd55ce63657b42e32040d1e09b4cd76fe3705474
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Sat Feb 29 17:46:12 2020 +0000

    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.

Diff:
---
 libstdc++-v3/ChangeLog                                              | 6 ++++++
 .../30_threads/condition_variable_any/stop_token/wait_on.cc         | 1 +
 libstdc++-v3/testsuite/30_threads/jthread/jthread.cc                | 1 +
 3 files changed, 8 insertions(+)

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 3461541..24b556a 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc
index cb1637c..0efda12 100644
--- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc
+++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc
@@ -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 }
diff --git a/libstdc++-v3/testsuite/30_threads/jthread/jthread.cc b/libstdc++-v3/testsuite/30_threads/jthread/jthread.cc
index c34958c..746ff43 100644
--- a/libstdc++-v3/testsuite/30_threads/jthread/jthread.cc
+++ b/libstdc++-v3/testsuite/30_threads/jthread/jthread.cc
@@ -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 "" }



More information about the Libstdc++-cvs mailing list