]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove redundant -std=gnu++17 option from algorithm tests
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 May 2021 15:22:54 +0000 (16:22 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 10 May 2021 15:22:54 +0000 (16:22 +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/20_util/function_objects/searchers.cc: Remove
-std=gnu++17 from dg-options directive.
* testsuite/20_util/specialized_algorithms/memory_management_tools/1.cc:
Likewise.
* testsuite/20_util/specialized_algorithms/memory_management_tools/destroy_neg.cc:
Likewise.
* testsuite/20_util/specialized_algorithms/uninitialized_value_construct/94540.cc:
Likewise.
* testsuite/20_util/specialized_algorithms/uninitialized_value_construct/94831.cc:
Likewise.
* testsuite/20_util/specialized_algorithms/uninitialized_value_construct_n/94540.cc:
Likewise.
* testsuite/20_util/specialized_algorithms/uninitialized_value_construct_n/sizes.cc:
Likewise.
* testsuite/20_util/unique_ptr/specialized_algorithms/swap_cxx17.cc:
Likewise.
* testsuite/25_algorithms/clamp/1.cc: Likewise.
* testsuite/25_algorithms/clamp/2.cc: Likewise.
* testsuite/25_algorithms/clamp/constexpr.cc: Likewise.
* testsuite/25_algorithms/clamp/requirements/explicit_instantiation/1.cc:
Likewise.
* testsuite/25_algorithms/clamp/requirements/explicit_instantiation/pod.cc:
Likewise.
* testsuite/25_algorithms/for_each/for_each_n.cc: Likewise.
* testsuite/25_algorithms/for_each/for_each_n_debug.cc:
Likewise.
* testsuite/25_algorithms/sample/1.cc: Likewise.
* testsuite/25_algorithms/sample/2.cc: Likewise.
* testsuite/25_algorithms/sample/3.cc: Likewise.
* testsuite/25_algorithms/sample/81221.cc: Likewise.
* testsuite/25_algorithms/search/searcher.cc: Likewise.
* testsuite/26_numerics/exclusive_scan/1.cc: Likewise.
* testsuite/26_numerics/inclusive_scan/1.cc: Likewise.
* testsuite/26_numerics/reduce/1.cc: Likewise.
* testsuite/26_numerics/reduce/2.cc: Likewise.
* testsuite/26_numerics/transform_exclusive_scan/1.cc: Likewise.
* testsuite/26_numerics/transform_inclusive_scan/1.cc: Likewise.
* testsuite/26_numerics/transform_reduce/1.cc: Likewise.

27 files changed:
libstdc++-v3/testsuite/20_util/function_objects/searchers.cc
libstdc++-v3/testsuite/20_util/specialized_algorithms/memory_management_tools/1.cc
libstdc++-v3/testsuite/20_util/specialized_algorithms/memory_management_tools/destroy_neg.cc
libstdc++-v3/testsuite/20_util/specialized_algorithms/uninitialized_value_construct/94540.cc
libstdc++-v3/testsuite/20_util/specialized_algorithms/uninitialized_value_construct/94831.cc
libstdc++-v3/testsuite/20_util/specialized_algorithms/uninitialized_value_construct_n/94540.cc
libstdc++-v3/testsuite/20_util/specialized_algorithms/uninitialized_value_construct_n/sizes.cc
libstdc++-v3/testsuite/20_util/unique_ptr/specialized_algorithms/swap_cxx17.cc
libstdc++-v3/testsuite/25_algorithms/clamp/1.cc
libstdc++-v3/testsuite/25_algorithms/clamp/2.cc
libstdc++-v3/testsuite/25_algorithms/clamp/constexpr.cc
libstdc++-v3/testsuite/25_algorithms/clamp/requirements/explicit_instantiation/1.cc
libstdc++-v3/testsuite/25_algorithms/clamp/requirements/explicit_instantiation/pod.cc
libstdc++-v3/testsuite/25_algorithms/for_each/for_each_n.cc
libstdc++-v3/testsuite/25_algorithms/for_each/for_each_n_debug.cc
libstdc++-v3/testsuite/25_algorithms/sample/1.cc
libstdc++-v3/testsuite/25_algorithms/sample/2.cc
libstdc++-v3/testsuite/25_algorithms/sample/3.cc
libstdc++-v3/testsuite/25_algorithms/sample/81221.cc
libstdc++-v3/testsuite/25_algorithms/search/searcher.cc
libstdc++-v3/testsuite/26_numerics/exclusive_scan/1.cc
libstdc++-v3/testsuite/26_numerics/inclusive_scan/1.cc
libstdc++-v3/testsuite/26_numerics/reduce/1.cc
libstdc++-v3/testsuite/26_numerics/reduce/2.cc
libstdc++-v3/testsuite/26_numerics/transform_exclusive_scan/1.cc
libstdc++-v3/testsuite/26_numerics/transform_inclusive_scan/1.cc
libstdc++-v3/testsuite/26_numerics/transform_reduce/1.cc

index 4f134d91e006391777d3b7d3b9f3afd301f62746..f8899659cbed44228855e44e322ff996ec2cf013 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 run { target c++17 } }
 
 #include <functional>
index a4a7725ce3ce84708ec9fff47f0acfcfde4e0d1c..cabed8bd4610897c27c5255934eb5537fd97de01 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 run { target c++17 } }
 
 #include <memory>
index 626f2e1c6ee1a8fcb498c77d6f59e5f2e422d33f..e114168842e4ad05c08b5553eb8b0db2ddfb8aac 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 <memory>
index 51fb18949e4a55aba1ee3e50beba4bd45fe970a1..865f29cddbde432c75ddb2e7c6f7329c6e659d50 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 run { target { c++17 && { ! simulator } } } }
 
 #include <memory>
index 6d9635ee6c9100a5f4f5ead26cd0344c93f9e9b1..8ab9df32347659525d347c24501c458a3a284509 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 <memory>
index 9de74c29074c75aca18b54393313c5499d95f015..5fd4e550f75dc5eff9a67e55903e75a66564c732 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 run { target { c++17 && { ! simulator } } } }
 
 #include <memory>
index 5833f7ed6c308687783e9ab9a4806064c11f6f00..f1f4f1f46e45c872b5f4dcdc928016b7305c0fa1 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 run { target c++17 } }
 
 #include <memory>
index fdb3cf89d1314e4872a1fbb83a0b4aa7141a2cdd..f1c17a426940afd1fb21b021fb5a51b7f221bb6a 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 // Copyright (C) 2016-2021 Free Software Foundation, Inc.
index e4719d7a13a2f296235dc437d3c46612396f3a43..2a24c58cee6846c97142a9c9fe60eb9ce7a13a20 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2016-2021 Free Software Foundation, Inc.
index 7884ede32c3f824081c761b44e212fae2cda6043..23256477147f8f43df0bed18c41db0021e97be35 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2000-2021 Free Software Foundation, Inc.
index 2f66bf858fceeb2a5addc3faff6889f61d2a7dda..46bf0f5a22a01325efd1f96349b56eee724e0d09 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 // Copyright (C) 2016-2021 Free Software Foundation, Inc.
index 5017aacfee7c459432394ea7a9696a14c83e6619..b64064017cc14631f141be6268ab2e011345f6c2 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 // Copyright (C) 2016-2021 Free Software Foundation, Inc.
index 50726161bb9472bcdc2552c6edfe8d0a4bf9fc16..2ede166c002108db0c61bd2b3f4f922b9f7afc88 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 // Copyright (C) 2016-2021 Free Software Foundation, Inc.
index 72065d181bb94bf3a2b520da7a9a6e36e33135b0..625f3782e729f257b0264b1f53b9e7fac803b25d 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2019-2021 Free Software Foundation, Inc.
index 24ec995d90e74aa1a593712097f9628b51f4a364..43cb98db4a4fb7a9e713f82cf86571024d8392af 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 run { target c++17 } }
 
 #include <algorithm>
index ade52b6cf7ccad69cf7d9d25c1dd704668331299..d8adfbb49b2fd2e5f269069695ed65653ea544e6 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 run { target c++17 } }
 // { dg-require-cstdint "" }
 
index 7d42b99ecba4925574b33c0633495db808afc8c2..8144492a3c8073d5de38cc1529ca6181d897032d 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 run { target c++17 } }
 // { dg-require-cstdint "" }
 
index 6aeb1a97f8bacab10f9b4cd571f0d0469b01e7c2..7b20c67690e9db30320e45092e220e0f8003061a 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 run { target c++17 } }
 // { dg-require-cstdint "" }
 
index 36f504c758d2c034a63d883ff7caf845b8085370..26301627b3ce4ef8801963a6a313fade4ec0d8f6 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-parallel-mode "" }
 
index d1b9e45f622215e63bf2680add170747e0b3c90b..fe477ba43612678afc15f15365cdc04c21bc9bd0 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 run { target c++17 } }
 
 #include <algorithm>
index 1c8c2352160dafe1af422341bc1c9738fbc4abb2..b0f684aa5b3c51e2462805e32d0c20da6010d41d 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2019-2021 Free Software Foundation, Inc.
index 183ef6294165e8a083fdedfa6b5961a42f8a883c..ab330a12093a9c646482212fa20e4a33a55b7ae3 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2019-2021 Free Software Foundation, Inc.
index eceb3bea76953ef5d8a3e964e32fef2852c6d5bb..134874cc3440e7022f6b5715e7ab90fd28c213ef 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2019-2021 Free Software Foundation, Inc.
index 12396c6f37a39293826336ea84ef792a4415e252..7df4ef4b34e4902e9c6ed3966f9a9f1602a7e921 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
 // Copyright (C) 2019-2021 Free Software Foundation, Inc.
index 486c836ba070b79b32f0ecb61797aa12cd1f397b..5bade1fa332a7a29d788c5f6bf7422f60ac2b3bd 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2019-2021 Free Software Foundation, Inc.
index 790d5f79ac5069ed27c5e6626b6f2a6f14bbc224..8f36147763da6a1d8357f87e05d48b0c2ac52c8a 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2019-2021 Free Software Foundation, Inc.
index 20556289d6e86b35768951621b298cad2e4575fc..5be79d93c82a07102d61c1e163b7154ca12e6824 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++17" }
 // { dg-do run { target c++17 } }
 
 // Copyright (C) 2019-2021 Free Software Foundation, Inc.