]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove redundant -std=gnu++17 option from concurrency tests
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 May 2021 15:22:53 +0000 (16:22 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 11 May 2021 19:50:07 +0000 (20:50 +0100)
GCC defaults to -std=gnu++17 now anyway, and using it explicitly in the
dg-options directive prevents running these tests with different modes
such as -std=c++17 or -std=gnu++20.

libstdc++-v3/ChangeLog:

* testsuite/29_atomics/atomic/69769.cc: Remove -std=gnu++17 from
dg-options.
* testsuite/29_atomics/atomic/is_always_lock_free.cc:
* testsuite/29_atomics/atomic/requirements/typedefs.cc:
* testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
* testsuite/29_atomics/atomic_integral/requirements/typedefs.cc:
* testsuite/30_threads/lock_guard/cons/deduction.cc: Likewise.
* testsuite/30_threads/scoped_lock/cons/1.cc: Likewise.
* testsuite/30_threads/scoped_lock/cons/deduction.cc: Likewise.
* testsuite/30_threads/scoped_lock/requirements/explicit_instantiation.cc:
Likewise.
* testsuite/30_threads/scoped_lock/requirements/typedefs.cc:
Likewise.
* testsuite/30_threads/shared_lock/70766.cc: Likewise.
* testsuite/30_threads/shared_mutex/cons/1.cc: Likewise.
* testsuite/30_threads/shared_mutex/cons/assign_neg.cc:
Likewise.
* testsuite/30_threads/shared_mutex/cons/copy_neg.cc: Likewise.
* testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
Likewise.
* testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise.
* testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise.
* testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise.
* testsuite/30_threads/unique_lock/cons/deduction.cc: Likewise.

(cherry picked from commit 9cd88c022fcad783997cd4111b2e6c3700c4b15b)

19 files changed:
libstdc++-v3/testsuite/29_atomics/atomic/69769.cc
libstdc++-v3/testsuite/29_atomics/atomic/is_always_lock_free.cc
libstdc++-v3/testsuite/29_atomics/atomic/requirements/typedefs.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/is_always_lock_free.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/requirements/typedefs.cc
libstdc++-v3/testsuite/30_threads/lock_guard/cons/deduction.cc
libstdc++-v3/testsuite/30_threads/scoped_lock/cons/1.cc
libstdc++-v3/testsuite/30_threads/scoped_lock/cons/deduction.cc
libstdc++-v3/testsuite/30_threads/scoped_lock/requirements/explicit_instantiation.cc
libstdc++-v3/testsuite/30_threads/scoped_lock/requirements/typedefs.cc
libstdc++-v3/testsuite/30_threads/shared_lock/70766.cc
libstdc++-v3/testsuite/30_threads/shared_mutex/cons/1.cc
libstdc++-v3/testsuite/30_threads/shared_mutex/cons/assign_neg.cc
libstdc++-v3/testsuite/30_threads/shared_mutex/cons/copy_neg.cc
libstdc++-v3/testsuite/30_threads/shared_mutex/requirements/standard_layout.cc
libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/1.cc
libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/2.cc
libstdc++-v3/testsuite/30_threads/shared_mutex/unlock/1.cc
libstdc++-v3/testsuite/30_threads/unique_lock/cons/deduction.cc

index 8258594e67c9f019b1e8909310d28f013de0f0f7..d9d0821b8f2913886f0df2e826ed36ff1d7fc830 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 // { dg-require-atomic-builtins "" }
 
index 063076ad27480b8f8fb8726b037629b8eb0487d3..2fa3a40e98cf8681a2e3bf219742dd0f8c47ab1f 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 #include <atomic>
index 28adc6759396dfaa97884a1bbd92cfde80573a80..c730e1ab117c7128c3ad782bdfc8bf6309e3028a 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 // { dg-require-atomic-builtins "" }
 
index 1d18c93092df8b39a47573bedf7a3c144b7f6f63..c866118943c9a75eb576fb062cee89a7a734f278 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 #include <atomic>
index da27c48e97d221b50f0407be87c8b3873aec6732..981a85bb504246f6d09006f22d27f876a8b7bc69 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 // { dg-require-atomic-builtins "" }
 
index 9dfe6b9706369d4f599165d7601f3ffdc929964f..98091601d529741e13ded09e90147f1140097b50 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 #include <mutex>
index 278fd8578e7fbfa379710aea21d6dcef86af20a2..eef4a7faaafd26d699b1526935402470c707eb0c 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2017-2021 Free Software Foundation, Inc.
index ca7dc2459c23fe30db1b8037d93f5151ef367c6f..2b5ea203a0d10d50ad556a07b58b910d8a468db0 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 #include <mutex>
index 0e6e68087a6c5bf7dd2a268ffc141d08c62ac716..6d6ccb04effa2cdfe34c068536c239cb2efa7d6d 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 // { dg-require-gthreads "" }
 
index dd9626cf0908256874295baed0adee759c8a7533..8cb02cfe54dcdb523e9cbc7630832f72267002f9 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 // { dg-require-gthreads "" }
 
index c8e28dd36c9eb1198747bf8e92ed459cba4cc7f7..6d5755bfd50e715bc89f613825126c4b052e3802 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 #include <shared_mutex>
index 7c23b9c5f9bc76150a28236aa1aedc67a084bbe2..b83de46fea86303108b15bed83a9dcd0e79ca54f 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-gthreads "" }
index 6eb9a65319396e8d3c8a3c28924b622bf09a44f9..667aec5ae56b358479fcc2d3846676c0842c917e 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 // { dg-require-gthreads "" }
 
index 4152981e5bba317a90f1160462c82ff3819e55a7..67a6a5597db9de5f6d5295b3d1c4d57bb6ad0463 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 // { dg-require-gthreads "" }
 
index ffb8b044a74d1c486d236f4d2afecb698ee8cf1f..733935442bcf3db330f2c776a9ffc8d39de3f9ab 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 // { dg-require-gthreads "" }
 
index e5665ab0ce5fce224d547a86ea3263b0126cdb44..42063e7ca218799d81c92e56645642fc184aa80d 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-gthreads "" }
index 5e03cd144fe1a558be4a80ad7284089bd458fa6e..9f68cec828a2378afe72a1eee97ed8fabc0ad3d9 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-gthreads "" }
index d9f2e5ec97d20261b3cb65015050da4351a7c63f..0427f0f8a0501ed793f86440261f1dabc36ed541 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-gthreads "" }
index b9e0fbceeb2af29cacfa5f1bce1a26cfa5ec98dd..b676444c755c51f8086b23710a4d5a504829ed6d 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 #include <mutex>