]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove dg-options "-std=gnu++20" from <atomic> tests
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 13:27:56 +0000 (14:27 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 23:10:44 +0000 (00:10 +0100)
The testsuite will automatically select C++20 for these tests now, and
removing the hardcoded -std option allows them to be tested for C++23
and C++26 as well.

libstdc++-v3/ChangeLog:

* testsuite/29_atomics/atomic/compare_exchange_padding.cc:
Remove dg-options -std=gnu++2a.
* testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
* testsuite/29_atomics/atomic/lock_free_aliases.cc: Likewise.
* testsuite/29_atomics/atomic/requirements/types_neg.cc:
Likewise.
* testsuite/29_atomics/atomic/wait_notify/1.cc: Likewise.
* testsuite/29_atomics/atomic/wait_notify/100334.cc: Likewise.
* testsuite/29_atomics/atomic/wait_notify/102994.cc: Likewise.
* testsuite/29_atomics/atomic/wait_notify/2.cc: Likewise.
* testsuite/29_atomics/atomic/wait_notify/bool.cc: Likewise.
* testsuite/29_atomics/atomic/wait_notify/generic.cc: Likewise.
* testsuite/29_atomics/atomic/wait_notify/pointers.cc: Likewise.
* testsuite/29_atomics/atomic_flag/cons/value_init.cc: Likewise.
* testsuite/29_atomics/atomic_flag/test/explicit.cc: Likewise.
* testsuite/29_atomics/atomic_flag/test/implicit.cc: Likewise.
* testsuite/29_atomics/atomic_flag/wait_notify/1.cc: Likewise.
* testsuite/29_atomics/atomic_float/1.cc: Likewise.
* testsuite/29_atomics/atomic_float/95282.cc: Likewise.
* testsuite/29_atomics/atomic_float/requirements.cc: Likewise.
* testsuite/29_atomics/atomic_float/value_init.cc: Likewise.
* testsuite/29_atomics/atomic_float/wait_notify.cc: Likewise.
* testsuite/29_atomics/atomic_integral/cons/value_init.cc:
Likewise.
* testsuite/29_atomics/atomic_integral/wait_notify.cc: Likewise.
* testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
Likewise.
* testsuite/29_atomics/atomic_ref/deduction.cc: Likewise.
* testsuite/29_atomics/atomic_ref/float.cc: Likewise.
* testsuite/29_atomics/atomic_ref/generic.cc: Likewise.
* testsuite/29_atomics/atomic_ref/integral.cc: Likewise.
* testsuite/29_atomics/atomic_ref/pointer.cc: Likewise.
* testsuite/29_atomics/atomic_ref/requirements.cc: Likewise.
* testsuite/29_atomics/headers/atomic/types_std_c++20.cc:
Likewise.
* testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc:
Likewise.
* testsuite/29_atomics/headers/atomic/types_std_c++2a.cc:
Likewise.
* testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc:
Likewise.

33 files changed:
libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc
libstdc++-v3/testsuite/29_atomics/atomic/cons/value_init.cc
libstdc++-v3/testsuite/29_atomics/atomic/lock_free_aliases.cc
libstdc++-v3/testsuite/29_atomics/atomic/requirements/types_neg.cc
libstdc++-v3/testsuite/29_atomics/atomic/wait_notify/1.cc
libstdc++-v3/testsuite/29_atomics/atomic/wait_notify/100334.cc
libstdc++-v3/testsuite/29_atomics/atomic/wait_notify/102994.cc
libstdc++-v3/testsuite/29_atomics/atomic/wait_notify/2.cc
libstdc++-v3/testsuite/29_atomics/atomic/wait_notify/bool.cc
libstdc++-v3/testsuite/29_atomics/atomic/wait_notify/generic.cc
libstdc++-v3/testsuite/29_atomics/atomic/wait_notify/pointers.cc
libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc
libstdc++-v3/testsuite/29_atomics/atomic_flag/test/explicit.cc
libstdc++-v3/testsuite/29_atomics/atomic_flag/test/implicit.cc
libstdc++-v3/testsuite/29_atomics/atomic_flag/wait_notify/1.cc
libstdc++-v3/testsuite/29_atomics/atomic_float/1.cc
libstdc++-v3/testsuite/29_atomics/atomic_float/95282.cc
libstdc++-v3/testsuite/29_atomics/atomic_float/requirements.cc
libstdc++-v3/testsuite/29_atomics/atomic_float/value_init.cc
libstdc++-v3/testsuite/29_atomics/atomic_float/wait_notify.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/value_init.cc
libstdc++-v3/testsuite/29_atomics/atomic_integral/wait_notify.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/deduction.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/float.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc
libstdc++-v3/testsuite/29_atomics/atomic_ref/requirements.cc
libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++20.cc
libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc
libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++2a.cc
libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc

index 2e7ff0307bc140d81d2a7e6171f0763b0530c46f..01f7475631e624885c4de10a8906f29bb96dedf1 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 // { dg-add-options libatomic }
index b8019486ccf296ebc74c051d6d8eaf8fe3138796..809c6c02443381655b1521e7f462b9d2cf8c916a 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 
 #include <atomic>
index 02c4ccc3aa302305fa1e59cee258096e7529033b..8192f73dd478726a000e283f4672ce94bbac5725 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <atomic>
index 29a42c5357da86a74f65d5bce52682b5cc45955c..7070fb8f33007bda7d7579c5aa8852623c1e8267 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <atomic>
 
index 2f234595b52fdbd3b4d5e14f44e4ff161c3a3042..3ded103b4fe0df4d5c188e7d2f3b5b031a598272 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 // { dg-require-effective-target gthreads }
 // { dg-require-effective-target hosted }
 
index 06e4a2edcbb27fa18131520199cfe307a545fabb..78e718e4597df549382bac27e280a92e47279a42 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index 72d9a924ea155df4b9ef47c232b9b6ecf3b3c2c6..6b77acf6261e6fb16e30e9b4c867719a0bd45fb5 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-require-effective-target hosted }
index 0c4a1b88e57a24d064dec459a0ff7eace5592786..d07bdeece203fb67838b3315d072489f35557af0 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 // { dg-require-effective-target gthreads }
 // { dg-require-effective-target hosted }
 
index 0af0c7dd74d729da87ff7b4990fd1f71ac9df44f..d80d3714137e51e7ad65f478cb3c683a9e7b63f5 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index cdd6c493e64db15630e30ea3d7dfc6b479632eff..57fc43ee8e8d82c9e976430941d8a6bd60022afe 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index 10274cca903b301a1df580765e89b575dcbf0470..0e069f2df9db435487810d8db58a3aa6d30f2ab8 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-gthreads "" }
 // { dg-add-options libatomic }
index 565d1ac441712eb78d5cb3585502b79565a34af6..084e2930f7e25b54fb3acb17a9a59953e4c41df6 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <atomic>
 #include <testsuite_hooks.h>
index fc8d65897070a214bfcadefb3bf6a489b843c0b7..f223ca18d553394a293c0e29db9d236c1e4b4190 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 
 // Copyright (C) 2008-2023 Free Software Foundation, Inc.
index 2840055433fc6183f6b0b7b36a53cbd7f5968b47..83c984f6f29c61a232020edadb009d77be1d4f71 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 
 // Copyright (C) 2008-2023 Free Software Foundation, Inc.
index 777fa915ea10f20ea6e29867a01528ac5b9eb966..9c4983dc825701bcdef86365e4b184113b62d8d5 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index e2e5003cbec332be4984573e66699a6681c260a3..3c2997fb26a4c63f9bf44443bd4cc6ba00d2ddf9 100644 (file)
@@ -15,9 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
 // { dg-add-options ieee }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <atomic>
 #include <testsuite_hooks.h>
index 1313fdf9b5c27908e7d7c40b2c0875b0140802a3..f7ba2867f96984c8bffcd8627174154f90de0edd 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <atomic>
 
index 832714a16eb3639836d98cd1b34399740a52c71e..bec94d928d2462eca0dd2486fcdd80049ae25963 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <atomic>
 
index 6e89f2fc2a88fc419a647a3d7bd8c3f16b2250c3..9b84e47b8f544913d027c12c59d26859866ed0ae 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 // { dg-add-options libatomic }
 
index 50c5be689123e182423d8723a683676c377ed7b2..eff3a05672ca778c2a0dfc7f1e071ba1fecca6bd 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index 2f6a48d36d85b9d4b50cb73164e0b551a963ec45..58b03f30d5ff5bcaa2f7b1f1cd0e62e230d07384 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 
 #include <atomic>
index 0e6a3075ab5232fa563eb1bbc481d4be28ef8ef4..d032be8c38d03c161643c5bfa24d311df43d66bc 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-add-options libatomic }
 // { dg-additional-options "-pthread" { target pthread } }
index 8469ebf8a14d6b796f9eb76ae07f9354ee57a277..2a3d1d468c22f6e90e08e3858192054b287fadb2 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 // { dg-add-options libatomic }
index 1298b784f51817f936ca8ac559f50bd2587729f1..dbefc9b615afd57260e2dff1ac16e7aff56d47ac 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <atomic>
 
index a34aa391d1e0bde8d9327c82a4691bc23180d00a..82db34a86cc67a1d52cc9244e2033c4c48528fc4 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <atomic>
 #include <testsuite_hooks.h>
index adae07f8754af3f096eab985b4fc347c286f7f41..f8751756d02cbcf97748a1d61836a96365047679 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 // { dg-add-options libatomic }
 
index a98adb7fbba3d7a27f7828d5335ae98856a6c0b0..eb22afca03a2a4bfbd79353b1e168b836bffc117 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 // { dg-add-options libatomic }
 
index b9c7d844b8c5f19e9090a45b81c9653eb01cc274..6fe00b557567f73eef8022bad79cb64d7639ae5a 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
 // { dg-add-options libatomic }
 
index 5e61d80bc5adeaedb59cf1d5c754804b385a16d3..42be6e4205cf549595e4f321b4c27653d2f13199 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <atomic>
 
index 3440347d5c22de260dfc44d838c64c024b191dbe..71bf22faf7cd0f1e7bc438d5e0f96cd2ad66d4c7 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 // { dg-require-cstdint "" }
 
 // Copyright (C) 2008-2023 Free Software Foundation, Inc.
index fcf9e97cea576174cce80adde93ae68026f5a0d2..3dfdfe41ddcef87e67f75d9254da46eff8bc550e 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 // { dg-require-cstdint "" }
 
 // Copyright (C) 2009-2023 Free Software Foundation, Inc.
index 4e5bf25e5166147b28dca2183560784b020685af..fe6c9fe850699ab25a1fb35df7e1e8b55600c463 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
index 65199ce15e588c4c58aa90e9ba8f5f8b83c55120..42e679394971d201586ac94ba5ee91cd25c3373c 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++2a" }
 // { dg-do compile { target c++20 } }
 // Disable PCH because <bits/stdc++.h> includes <stdatomic.h> which declares
 // memory_order in the global namespace.