public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/ranger] Explicitly link with libatomic when needed.
@ 2020-06-17 19:18 Aldy Hernandez
  0 siblings, 0 replies; 2+ messages in thread
From: Aldy Hernandez @ 2020-06-17 19:18 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:68a1a11fad06fed89c9cc53c247fea3cc8bb7cc8

commit 68a1a11fad06fed89c9cc53c247fea3cc8bb7cc8
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Sat Feb 29 17:32:24 2020 +0000

    Explicitly link with libatomic when needed.
    
            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.

Diff:
---
 libstdc++-v3/ChangeLog                                      | 13 +++++++++++++
 .../testsuite/30_threads/stop_token/stop_callback.cc        |  1 +
 .../30_threads/stop_token/stop_callback/deadlock-mt.cc      |  1 +
 .../30_threads/stop_token/stop_callback/deadlock.cc         |  1 +
 .../30_threads/stop_token/stop_callback/destroy.cc          |  1 +
 .../testsuite/30_threads/stop_token/stop_callback/invoke.cc |  1 +
 libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc |  1 +
 .../testsuite/30_threads/stop_token/stop_source/assign.cc   |  1 +
 libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc  |  1 +
 .../30_threads/stop_token/stop_token/stop_possible.cc       |  1 +
 10 files changed, 22 insertions(+)

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index f2242e1efd5..85a0cf25c74 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
 
diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc
index da44f8ad8ed..b84d3af4f9b 100644
--- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc
+++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc
index 12c54db554f..96f7197c3da 100644
--- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc
+++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc
@@ -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 "" }
diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc
index f9de6e02562..c59446cf1b0 100644
--- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc
+++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destroy.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destroy.cc
index 3fa4d21c55c..b94743a884c 100644
--- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destroy.cc
+++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destroy.cc
@@ -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 "" }
diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc
index 9b8137cc46d..dc121121a59 100644
--- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc
+++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc
index 9d15f0781ea..7b2ae70d3b5 100644
--- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc
+++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc
index c822e8e398f..5aaaa05158f 100644
--- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc
+++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc
index f8adc42b271..2ab16765bea 100644
--- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc
+++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc b/libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc
index ee8de6889ed..4ac45b61f4a 100644
--- a/libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc
+++ b/libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc
@@ -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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc/devel/ranger] Explicitly link with libatomic when needed.
@ 2020-06-17 19:19 Aldy Hernandez
  0 siblings, 0 replies; 2+ messages in thread
From: Aldy Hernandez @ 2020-06-17 19:19 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 2380 bytes --]

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

commit bd55ce63657b42e32040d1e09b4cd76fe3705474
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 34615413280..24b556a7af5 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 cb1637c306d..0efda12708f 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 c34958c25d9..746ff437c1d 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 "" }


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-17 19:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 19:18 [gcc/devel/ranger] Explicitly link with libatomic when needed Aldy Hernandez
2020-06-17 19:19 Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).