public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4064] libstdc++: Remove dg-options "-std=gnu++20" from 20_utils tests
@ 2023-09-15 23:18 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-09-15 23:18 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:6d0b43f5b81c35f4be6e33770b37060f12340a65

commit r14-4064-g6d0b43f5b81c35f4be6e33770b37060f12340a65
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Sep 15 14:27:56 2023 +0100

    libstdc++: Remove dg-options "-std=gnu++20" from 20_utils tests
    
    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/20_util/allocator/105975.cc: Remove dg-options
            -std=gnu++2a.
            * testsuite/20_util/allocator/rebind_c++20.cc: Likewise.
            * testsuite/20_util/allocator/requirements/constexpr.cc:
            Likewise.
            * testsuite/20_util/allocator/requirements/typedefs_c++20.cc:
            Likewise.
            * testsuite/20_util/allocator_traits/header-2.cc: Likewise.
            * testsuite/20_util/allocator_traits/header.cc: Likewise.
            * testsuite/20_util/allocator_traits/members/92878_92947.cc:
            Likewise.
            * testsuite/20_util/any/assign/92878_92947.cc: Likewise.
            * testsuite/20_util/any/cons/92878_92947.cc: Likewise.
            * testsuite/20_util/assume_aligned/1.cc: Likewise.
            * testsuite/20_util/assume_aligned/2_neg.cc: Likewise.
            * testsuite/20_util/assume_aligned/3.cc: Likewise.
            * testsuite/20_util/assume_aligned/97132.cc: Likewise.
            * testsuite/20_util/bind/constexpr.cc: Likewise.
            * testsuite/20_util/bitset/operations/96303.cc: Likewise.
            * testsuite/20_util/common_reference/100894.cc: Likewise.
            * testsuite/20_util/common_reference/requirements/alias_decl.cc:
            Likewise.
            * testsuite/20_util/common_reference/requirements/explicit_instantiation.cc:
            Likewise.
            * testsuite/20_util/common_reference/requirements/typedefs.cc:
            Likewise.
            * testsuite/20_util/duration/comparison_operators/three_way.cc:
            Likewise.
            * testsuite/20_util/exchange/constexpr.cc: Likewise.
            * testsuite/20_util/exchange/noexcept.cc: Likewise.
            * testsuite/20_util/from_chars/1_c++20_neg.cc: Likewise.
            * testsuite/20_util/from_chars/compare.cc: Likewise.
            * testsuite/20_util/function_objects/bind_front/1.cc: Likewise.
            * testsuite/20_util/function_objects/bind_front/107784.cc:
            Likewise.
            * testsuite/20_util/function_objects/bind_front/111327.cc:
            Likewise.
            * testsuite/20_util/function_objects/bind_front/2.cc: Likewise.
            * testsuite/20_util/function_objects/bind_front/97101.cc:
            Likewise.
            * testsuite/20_util/function_objects/bind_front/constexpr.cc:
            Likewise.
            * testsuite/20_util/function_objects/constexpr_searcher.cc:
            Likewise.
            * testsuite/20_util/function_objects/identity/1.cc: Likewise.
            * testsuite/20_util/function_objects/invoke/constexpr.cc:
            Likewise.
            * testsuite/20_util/function_objects/mem_fn/constexpr.cc:
            Likewise.
            * testsuite/20_util/function_objects/not_fn/constexpr.cc:
            Likewise.
            * testsuite/20_util/integer_comparisons/1.cc: Likewise.
            * testsuite/20_util/integer_comparisons/2.cc: Likewise.
            * testsuite/20_util/integer_comparisons/equal.cc: Likewise.
            * testsuite/20_util/integer_comparisons/equal_neg.cc: Likewise.
            * testsuite/20_util/integer_comparisons/greater.cc: Likewise.
            * testsuite/20_util/integer_comparisons/greater_equal.cc:
            Likewise.
            * testsuite/20_util/integer_comparisons/greater_equal_neg.cc:
            Likewise.
            * testsuite/20_util/integer_comparisons/greater_neg.cc:
            Likewise.
            * testsuite/20_util/integer_comparisons/in_range.cc: Likewise.
            * testsuite/20_util/integer_comparisons/in_range_neg.cc:
            Likewise.
            * testsuite/20_util/integer_comparisons/less.cc: Likewise.
            * testsuite/20_util/integer_comparisons/less_equal.cc: Likewise.
            * testsuite/20_util/integer_comparisons/less_equal_neg.cc:
            Likewise.
            * testsuite/20_util/integer_comparisons/less_neg.cc: Likewise.
            * testsuite/20_util/integer_comparisons/not_equal.cc: Likewise.
            * testsuite/20_util/integer_comparisons/not_equal_neg.cc:
            Likewise.
            * testsuite/20_util/is_bounded_array/requirements/explicit_instantiation.cc:
            Likewise.
            * testsuite/20_util/is_bounded_array/requirements/typedefs.cc:
            Likewise.
            * testsuite/20_util/is_bounded_array/value.cc: Likewise.
            * testsuite/20_util/is_constant_evaluated/1.cc: Likewise.
            * testsuite/20_util/is_constant_evaluated/noexcept.cc: Likewise.
            * testsuite/20_util/is_constructible/92878_92947.cc: Likewise.
            * testsuite/20_util/is_layout_compatible/is_corresponding_member.cc:
            Likewise.
            * testsuite/20_util/is_layout_compatible/value.cc: Likewise.
            * testsuite/20_util/is_layout_compatible/version.cc: Likewise.
            * testsuite/20_util/is_nothrow_constructible/value_c++20.cc:
            Likewise.
            * testsuite/20_util/is_nothrow_convertible/requirements/explicit_instantiation.cc:
            Likewise.
            * testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc:
            Likewise.
            * testsuite/20_util/is_nothrow_convertible/value.cc: Likewise.
            * testsuite/20_util/is_pod/deprecated-2a.cc: Likewise.
            * testsuite/20_util/is_pointer_interconvertible/value.cc:
            Likewise.
            * testsuite/20_util/is_pointer_interconvertible/version.cc:
            Likewise.
            * testsuite/20_util/is_pointer_interconvertible/with_class.cc:
            Likewise.
            * testsuite/20_util/is_unbounded_array/requirements/explicit_instantiation.cc:
            Likewise.
            * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc:
            Likewise.
            * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
            * testsuite/20_util/optional/assignment/92878_92947.cc:
            Likewise.
            * testsuite/20_util/optional/cons/92878_92947.cc: Likewise.
            * testsuite/20_util/optional/constexpr/assign.cc: Likewise.
            * testsuite/20_util/optional/constexpr/cons/conv.cc: Likewise.
            * testsuite/20_util/optional/constexpr/modifiers.cc: Likewise.
            * testsuite/20_util/optional/constexpr/swap.cc: Likewise.
            * testsuite/20_util/optional/relops/96269.cc: Likewise.
            * testsuite/20_util/optional/relops/three_way.cc: Likewise.
            * testsuite/20_util/pair/comparison_operators/constexpr_c++20.cc:
            Likewise.
            * testsuite/20_util/pair/cons/92878_92947.cc: Likewise.
            * testsuite/20_util/pair/constexpr_assign.cc: Likewise.
            * testsuite/20_util/pair/constexpr_swap.cc: Likewise.
            * testsuite/20_util/pair/requirements/structural.cc: Likewise.
            * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc:
            Likewise.
            * testsuite/20_util/polymorphic_allocator/allocate_object.cc:
            Likewise.
            * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc:
            Likewise.
            * testsuite/20_util/polymorphic_allocator/lwg3237.cc: Likewise.
            * testsuite/20_util/reference_wrapper/constexpr.cc: Likewise.
            * testsuite/20_util/reference_wrapper/incomplete.cc: Likewise.
            * testsuite/20_util/remove_cvref/requirements/alias_decl.cc:
            Likewise.
            * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
            Likewise.
            * testsuite/20_util/remove_cvref/value.cc: Likewise.
            * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:
            Likewise.
            * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
            Likewise.
            * testsuite/20_util/shared_ptr/casts/rval.cc: Likewise.
            * testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc:
            Likewise.
            * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Likewise.
            * testsuite/20_util/shared_ptr/creation/92878_92947.cc:
            Likewise.
            * testsuite/20_util/shared_ptr/creation/array.cc: Likewise.
            * testsuite/20_util/shared_ptr/creation/overwrite.cc: Likewise.
            * testsuite/20_util/shared_ptr/creation/version.cc: Likewise.
            * testsuite/20_util/time_point/4.cc: Likewise.
            * testsuite/20_util/time_point/comparison_operators/three_way.cc:
            Likewise.
            * testsuite/20_util/to_address/1.cc: Likewise.
            * testsuite/20_util/to_address/1_neg.cc: Likewise.
            * testsuite/20_util/to_address/debug.cc: Likewise.
            * testsuite/20_util/to_address/lwg3545.cc: Likewise.
            * testsuite/20_util/to_chars/compare.cc: Likewise.
            * testsuite/20_util/tuple/comparison_operators/three_way.cc:
            Likewise.
            * testsuite/20_util/tuple/cons/102270.cc: Likewise.
            * testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc:
            Likewise.
            * testsuite/20_util/tuple/constexpr_swap.cc: Likewise.
            * testsuite/20_util/type_identity/requirements/alias_decl.cc:
            Likewise.
            * testsuite/20_util/type_identity/requirements/explicit_instantiation.cc:
            Likewise.
            * testsuite/20_util/type_identity/requirements/typedefs.cc:
            Likewise.
            * testsuite/20_util/typeindex/comparison_operators_c++20.cc:
            Likewise.
            * testsuite/20_util/unique_ptr/comparison/compare_c++20.cc:
            Likewise.
            * testsuite/20_util/unique_ptr/creation/92878_92947.cc:
            Likewise.
            * testsuite/20_util/unique_ptr/creation/for_overwrite.cc:
            Likewise.
            * testsuite/20_util/unique_ptr/creation/for_overwrite__neg.cc:
            Likewise.
            * testsuite/20_util/unique_ptr/io/lwg2948.cc: Likewise.
            * testsuite/20_util/unwrap_reference/1.cc: Likewise.
            * testsuite/20_util/unwrap_reference/2.cc: Likewise.
            * testsuite/20_util/unwrap_reference/3.cc: Likewise.
            * testsuite/20_util/uses_allocator/92878_92947.cc: Likewise.
            * testsuite/20_util/uses_allocator/lwg3527.cc: Likewise.
            * testsuite/20_util/uses_allocator/make_obj.cc: Likewise.
            * testsuite/20_util/uses_allocator/uninitialized_construct.cc:
            Likewise.
            * testsuite/20_util/variant/92878_92947.cc: Likewise.
            * testsuite/20_util/variant/95915.cc: Likewise.
            * testsuite/20_util/variant/constexpr.cc: Likewise.
            * testsuite/20_util/variant/relops/three_way.cc: Likewise.
            * testsuite/20_util/variant/visit_neg.cc: Likewise.
            * testsuite/20_util/variant/visit_r.cc: Likewise.
            * testsuite/20_util/weak_ptr/atomic_weak_ptr.cc: Likewise.

Diff:
---
 libstdc++-v3/testsuite/20_util/allocator/105975.cc                    | 1 -
 libstdc++-v3/testsuite/20_util/allocator/rebind_c++20.cc              | 3 +--
 libstdc++-v3/testsuite/20_util/allocator/requirements/constexpr.cc    | 1 -
 .../testsuite/20_util/allocator/requirements/typedefs_c++20.cc        | 1 -
 libstdc++-v3/testsuite/20_util/allocator_traits/header-2.cc           | 1 -
 libstdc++-v3/testsuite/20_util/allocator_traits/header.cc             | 1 -
 .../testsuite/20_util/allocator_traits/members/92878_92947.cc         | 1 -
 libstdc++-v3/testsuite/20_util/any/assign/92878_92947.cc              | 3 +--
 libstdc++-v3/testsuite/20_util/any/cons/92878_92947.cc                | 3 +--
 libstdc++-v3/testsuite/20_util/assume_aligned/1.cc                    | 4 ++--
 libstdc++-v3/testsuite/20_util/assume_aligned/2_neg.cc                | 3 +--
 libstdc++-v3/testsuite/20_util/assume_aligned/3.cc                    | 4 ++--
 libstdc++-v3/testsuite/20_util/assume_aligned/97132.cc                | 3 +--
 libstdc++-v3/testsuite/20_util/bind/constexpr.cc                      | 3 +--
 libstdc++-v3/testsuite/20_util/bitset/operations/96303.cc             | 4 ++--
 libstdc++-v3/testsuite/20_util/common_reference/100894.cc             | 1 -
 .../testsuite/20_util/common_reference/requirements/alias_decl.cc     | 3 +--
 .../20_util/common_reference/requirements/explicit_instantiation.cc   | 3 +--
 .../testsuite/20_util/common_reference/requirements/typedefs.cc       | 3 +--
 .../testsuite/20_util/duration/comparison_operators/three_way.cc      | 3 +--
 libstdc++-v3/testsuite/20_util/exchange/constexpr.cc                  | 3 +--
 libstdc++-v3/testsuite/20_util/exchange/noexcept.cc                   | 3 +--
 libstdc++-v3/testsuite/20_util/from_chars/1_c++20_neg.cc              | 3 +--
 libstdc++-v3/testsuite/20_util/from_chars/compare.cc                  | 3 +--
 libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc       | 3 +--
 libstdc++-v3/testsuite/20_util/function_objects/bind_front/107784.cc  | 1 -
 libstdc++-v3/testsuite/20_util/function_objects/bind_front/111327.cc  | 1 -
 libstdc++-v3/testsuite/20_util/function_objects/bind_front/2.cc       | 3 +--
 libstdc++-v3/testsuite/20_util/function_objects/bind_front/97101.cc   | 3 +--
 .../testsuite/20_util/function_objects/bind_front/constexpr.cc        | 3 +--
 libstdc++-v3/testsuite/20_util/function_objects/constexpr_searcher.cc | 3 +--
 libstdc++-v3/testsuite/20_util/function_objects/identity/1.cc         | 3 +--
 libstdc++-v3/testsuite/20_util/function_objects/invoke/constexpr.cc   | 3 +--
 libstdc++-v3/testsuite/20_util/function_objects/mem_fn/constexpr.cc   | 3 +--
 libstdc++-v3/testsuite/20_util/function_objects/not_fn/constexpr.cc   | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/1.cc               | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/2.cc               | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/equal.cc           | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/equal_neg.cc       | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/greater.cc         | 1 -
 libstdc++-v3/testsuite/20_util/integer_comparisons/greater_equal.cc   | 3 +--
 .../testsuite/20_util/integer_comparisons/greater_equal_neg.cc        | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/greater_neg.cc     | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/in_range.cc        | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/in_range_neg.cc    | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/less.cc            | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal.cc      | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal_neg.cc  | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/less_neg.cc        | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal.cc       | 3 +--
 libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal_neg.cc   | 3 +--
 .../20_util/is_bounded_array/requirements/explicit_instantiation.cc   | 3 +--
 .../testsuite/20_util/is_bounded_array/requirements/typedefs.cc       | 3 +--
 libstdc++-v3/testsuite/20_util/is_bounded_array/value.cc              | 3 +--
 libstdc++-v3/testsuite/20_util/is_constant_evaluated/1.cc             | 3 +--
 libstdc++-v3/testsuite/20_util/is_constant_evaluated/noexcept.cc      | 3 +--
 libstdc++-v3/testsuite/20_util/is_constructible/92878_92947.cc        | 3 +--
 .../testsuite/20_util/is_layout_compatible/is_corresponding_member.cc | 1 -
 libstdc++-v3/testsuite/20_util/is_layout_compatible/value.cc          | 1 -
 libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc        | 1 -
 .../testsuite/20_util/is_nothrow_constructible/value_c++20.cc         | 3 +--
 .../is_nothrow_convertible/requirements/explicit_instantiation.cc     | 3 +--
 .../testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc | 3 +--
 libstdc++-v3/testsuite/20_util/is_nothrow_convertible/value.cc        | 3 +--
 libstdc++-v3/testsuite/20_util/is_pod/deprecated-2a.cc                | 3 +--
 libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/value.cc   | 1 -
 libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/version.cc | 1 -
 .../testsuite/20_util/is_pointer_interconvertible/with_class.cc       | 1 -
 .../20_util/is_unbounded_array/requirements/explicit_instantiation.cc | 3 +--
 .../testsuite/20_util/is_unbounded_array/requirements/typedefs.cc     | 3 +--
 libstdc++-v3/testsuite/20_util/is_unbounded_array/value.cc            | 3 +--
 libstdc++-v3/testsuite/20_util/optional/assignment/92878_92947.cc     | 3 +--
 libstdc++-v3/testsuite/20_util/optional/cons/92878_92947.cc           | 3 +--
 libstdc++-v3/testsuite/20_util/optional/constexpr/assign.cc           | 1 -
 libstdc++-v3/testsuite/20_util/optional/constexpr/cons/conv.cc        | 1 -
 libstdc++-v3/testsuite/20_util/optional/constexpr/modifiers.cc        | 1 -
 libstdc++-v3/testsuite/20_util/optional/constexpr/swap.cc             | 1 -
 libstdc++-v3/testsuite/20_util/optional/relops/96269.cc               | 3 +--
 libstdc++-v3/testsuite/20_util/optional/relops/three_way.cc           | 1 -
 .../testsuite/20_util/pair/comparison_operators/constexpr_c++20.cc    | 3 +--
 libstdc++-v3/testsuite/20_util/pair/cons/92878_92947.cc               | 3 +--
 libstdc++-v3/testsuite/20_util/pair/constexpr_assign.cc               | 3 +--
 libstdc++-v3/testsuite/20_util/pair/constexpr_swap.cc                 | 3 +--
 libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc        | 1 -
 libstdc++-v3/testsuite/20_util/pointer_traits/pointer_to_constexpr.cc | 3 +--
 .../testsuite/20_util/polymorphic_allocator/allocate_object.cc        | 3 +--
 .../testsuite/20_util/polymorphic_allocator/construct_c++2a.cc        | 3 +--
 libstdc++-v3/testsuite/20_util/polymorphic_allocator/lwg3237.cc       | 3 +--
 libstdc++-v3/testsuite/20_util/reference_wrapper/constexpr.cc         | 3 +--
 libstdc++-v3/testsuite/20_util/reference_wrapper/incomplete.cc        | 3 +--
 .../testsuite/20_util/remove_cvref/requirements/alias_decl.cc         | 3 +--
 .../20_util/remove_cvref/requirements/explicit_instantiation.cc       | 3 +--
 libstdc++-v3/testsuite/20_util/remove_cvref/value.cc                  | 3 +--
 .../testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc        | 3 +--
 libstdc++-v3/testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc | 1 -
 libstdc++-v3/testsuite/20_util/shared_ptr/casts/rval.cc               | 3 +--
 libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc     | 3 +--
 libstdc++-v3/testsuite/20_util/shared_ptr/cons/alias-rval.cc          | 3 +--
 libstdc++-v3/testsuite/20_util/shared_ptr/creation/92878_92947.cc     | 3 +--
 libstdc++-v3/testsuite/20_util/shared_ptr/creation/array.cc           | 1 -
 libstdc++-v3/testsuite/20_util/shared_ptr/creation/overwrite.cc       | 2 +-
 libstdc++-v3/testsuite/20_util/shared_ptr/creation/version.cc         | 1 -
 libstdc++-v3/testsuite/20_util/time_point/4.cc                        | 3 +--
 .../testsuite/20_util/time_point/comparison_operators/three_way.cc    | 3 +--
 libstdc++-v3/testsuite/20_util/to_address/1.cc                        | 3 +--
 libstdc++-v3/testsuite/20_util/to_address/1_neg.cc                    | 3 +--
 libstdc++-v3/testsuite/20_util/to_address/debug.cc                    | 3 +--
 libstdc++-v3/testsuite/20_util/to_address/lwg3545.cc                  | 1 -
 libstdc++-v3/testsuite/20_util/to_chars/compare.cc                    | 3 +--
 .../testsuite/20_util/tuple/comparison_operators/three_way.cc         | 3 +--
 libstdc++-v3/testsuite/20_util/tuple/cons/102270.cc                   | 1 -
 .../testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc         | 3 +--
 libstdc++-v3/testsuite/20_util/tuple/constexpr_swap.cc                | 3 +--
 .../testsuite/20_util/type_identity/requirements/alias_decl.cc        | 3 +--
 .../20_util/type_identity/requirements/explicit_instantiation.cc      | 3 +--
 libstdc++-v3/testsuite/20_util/type_identity/requirements/typedefs.cc | 3 +--
 .../testsuite/20_util/typeindex/comparison_operators_c++20.cc         | 3 +--
 libstdc++-v3/testsuite/20_util/unique_ptr/comparison/compare_c++20.cc | 3 +--
 libstdc++-v3/testsuite/20_util/unique_ptr/creation/92878_92947.cc     | 3 +--
 libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite.cc   | 4 ++--
 .../testsuite/20_util/unique_ptr/creation/for_overwrite__neg.cc       | 3 +--
 libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc               | 3 +--
 libstdc++-v3/testsuite/20_util/unwrap_reference/1.cc                  | 3 +--
 libstdc++-v3/testsuite/20_util/unwrap_reference/2.cc                  | 3 +--
 libstdc++-v3/testsuite/20_util/unwrap_reference/3.cc                  | 3 +--
 libstdc++-v3/testsuite/20_util/uses_allocator/92878_92947.cc          | 3 +--
 libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc              | 1 -
 libstdc++-v3/testsuite/20_util/uses_allocator/make_obj.cc             | 3 +--
 .../testsuite/20_util/uses_allocator/uninitialized_construct.cc       | 1 -
 libstdc++-v3/testsuite/20_util/variant/92878_92947.cc                 | 3 +--
 libstdc++-v3/testsuite/20_util/variant/95915.cc                       | 1 -
 libstdc++-v3/testsuite/20_util/variant/constexpr.cc                   | 1 -
 libstdc++-v3/testsuite/20_util/variant/relops/three_way.cc            | 3 +--
 libstdc++-v3/testsuite/20_util/variant/visit_neg.cc                   | 3 +--
 libstdc++-v3/testsuite/20_util/variant/visit_r.cc                     | 3 +--
 libstdc++-v3/testsuite/20_util/weak_ptr/atomic_weak_ptr.cc            | 1 -
 136 files changed, 108 insertions(+), 239 deletions(-)

diff --git a/libstdc++-v3/testsuite/20_util/allocator/105975.cc b/libstdc++-v3/testsuite/20_util/allocator/105975.cc
index 09f27ba86e3..4866ae6baf9 100644
--- a/libstdc++-v3/testsuite/20_util/allocator/105975.cc
+++ b/libstdc++-v3/testsuite/20_util/allocator/105975.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/allocator/rebind_c++20.cc b/libstdc++-v3/testsuite/20_util/allocator/rebind_c++20.cc
index bacd124b6ba..b26fa6fb37b 100644
--- a/libstdc++-v3/testsuite/20_util/allocator/rebind_c++20.cc
+++ b/libstdc++-v3/testsuite/20_util/allocator/rebind_c++20.cc
@@ -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 hosted }
 
 #include <memory>
diff --git a/libstdc++-v3/testsuite/20_util/allocator/requirements/constexpr.cc b/libstdc++-v3/testsuite/20_util/allocator/requirements/constexpr.cc
index c7a8e271567..2102c57a79a 100644
--- a/libstdc++-v3/testsuite/20_util/allocator/requirements/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/allocator/requirements/constexpr.cc
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/allocator/requirements/typedefs_c++20.cc b/libstdc++-v3/testsuite/20_util/allocator/requirements/typedefs_c++20.cc
index dc191411a81..f7b1e207f7c 100644
--- a/libstdc++-v3/testsuite/20_util/allocator/requirements/typedefs_c++20.cc
+++ b/libstdc++-v3/testsuite/20_util/allocator/requirements/typedefs_c++20.cc
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/allocator_traits/header-2.cc b/libstdc++-v3/testsuite/20_util/allocator_traits/header-2.cc
index 8ba0c9405ed..9393d8a885d 100644
--- a/libstdc++-v3/testsuite/20_util/allocator_traits/header-2.cc
+++ b/libstdc++-v3/testsuite/20_util/allocator_traits/header-2.cc
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/allocator_traits/header.cc b/libstdc++-v3/testsuite/20_util/allocator_traits/header.cc
index f500f747e79..4a88abaadb7 100644
--- a/libstdc++-v3/testsuite/20_util/allocator_traits/header.cc
+++ b/libstdc++-v3/testsuite/20_util/allocator_traits/header.cc
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/allocator_traits/members/92878_92947.cc b/libstdc++-v3/testsuite/20_util/allocator_traits/members/92878_92947.cc
index 6e3bb544363..794138aea0c 100644
--- a/libstdc++-v3/testsuite/20_util/allocator_traits/members/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/allocator_traits/members/92878_92947.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/any/assign/92878_92947.cc b/libstdc++-v3/testsuite/20_util/any/assign/92878_92947.cc
index cf4cffeea2e..5a6122ed1d1 100644
--- a/libstdc++-v3/testsuite/20_util/any/assign/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/any/assign/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
diff --git a/libstdc++-v3/testsuite/20_util/any/cons/92878_92947.cc b/libstdc++-v3/testsuite/20_util/any/cons/92878_92947.cc
index 76d11eca45c..eebd7ec9347 100644
--- a/libstdc++-v3/testsuite/20_util/any/cons/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/any/cons/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/assume_aligned/1.cc b/libstdc++-v3/testsuite/20_util/assume_aligned/1.cc
index 0272541d73a..d13144427bb 100644
--- a/libstdc++-v3/testsuite/20_util/assume_aligned/1.cc
+++ b/libstdc++-v3/testsuite/20_util/assume_aligned/1.cc
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a -O2" }
-// { dg-do run { target c++2a } }
+// { dg-options "-O2" }
+// { dg-do run { target c++20 } }
 
 #include <memory>
 #include <cstdint>
diff --git a/libstdc++-v3/testsuite/20_util/assume_aligned/2_neg.cc b/libstdc++-v3/testsuite/20_util/assume_aligned/2_neg.cc
index 4cd83711969..82a7bd6e37e 100644
--- a/libstdc++-v3/testsuite/20_util/assume_aligned/2_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/assume_aligned/2_neg.cc
@@ -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 <memory>
 
diff --git a/libstdc++-v3/testsuite/20_util/assume_aligned/3.cc b/libstdc++-v3/testsuite/20_util/assume_aligned/3.cc
index 7bd60fb6674..4337dae7d4b 100644
--- a/libstdc++-v3/testsuite/20_util/assume_aligned/3.cc
+++ b/libstdc++-v3/testsuite/20_util/assume_aligned/3.cc
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a -O2 -g0" }
-// { dg-do compile { target c++2a } }
+// { dg-options "-O2 -g0" }
+// { dg-do compile { target c++20 } }
 // { dg-final { scan-assembler-not "undefined" } }
 
 #include <memory>
diff --git a/libstdc++-v3/testsuite/20_util/assume_aligned/97132.cc b/libstdc++-v3/testsuite/20_util/assume_aligned/97132.cc
index c9285813129..2c8b33b60a7 100644
--- a/libstdc++-v3/testsuite/20_util/assume_aligned/97132.cc
+++ b/libstdc++-v3/testsuite/20_util/assume_aligned/97132.cc
@@ -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 <memory>
 
diff --git a/libstdc++-v3/testsuite/20_util/bind/constexpr.cc b/libstdc++-v3/testsuite/20_util/bind/constexpr.cc
index 483c7abfd4f..1a1ecfe2456 100644
--- a/libstdc++-v3/testsuite/20_util/bind/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/bind/constexpr.cc
@@ -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 <functional>
 
diff --git a/libstdc++-v3/testsuite/20_util/bitset/operations/96303.cc b/libstdc++-v3/testsuite/20_util/bitset/operations/96303.cc
index 13209e73488..04ec2e7d522 100644
--- a/libstdc++-v3/testsuite/20_util/bitset/operations/96303.cc
+++ b/libstdc++-v3/testsuite/20_util/bitset/operations/96303.cc
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a -pedantic" }
-// { dg-do compile { target c++2a } }
+// { dg-options "-pedantic" }
+// { dg-do compile { target c++20 } }
 
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/common_reference/100894.cc b/libstdc++-v3/testsuite/20_util/common_reference/100894.cc
index 5e144768002..d81b960eaf3 100644
--- a/libstdc++-v3/testsuite/20_util/common_reference/100894.cc
+++ b/libstdc++-v3/testsuite/20_util/common_reference/100894.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // PR libstdc++/100894 - common_reference implementation seems to be wrong
 
diff --git a/libstdc++-v3/testsuite/20_util/common_reference/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/common_reference/requirements/alias_decl.cc
index caaa942ce71..83ba7c983c5 100644
--- a/libstdc++-v3/testsuite/20_util/common_reference/requirements/alias_decl.cc
+++ b/libstdc++-v3/testsuite/20_util/common_reference/requirements/alias_decl.cc
@@ -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 <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/common_reference/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/common_reference/requirements/explicit_instantiation.cc
index e1d93cedd44..4c411c5e8ec 100644
--- a/libstdc++-v3/testsuite/20_util/common_reference/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/20_util/common_reference/requirements/explicit_instantiation.cc
@@ -17,8 +17,7 @@
 
 // NB: This file is for testing type_traits with NO OTHER INCLUDES.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/common_reference/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/common_reference/requirements/typedefs.cc
index 9cb8cfd3497..ac630c39963 100644
--- a/libstdc++-v3/testsuite/20_util/common_reference/requirements/typedefs.cc
+++ b/libstdc++-v3/testsuite/20_util/common_reference/requirements/typedefs.cc
@@ -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 <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/duration/comparison_operators/three_way.cc b/libstdc++-v3/testsuite/20_util/duration/comparison_operators/three_way.cc
index 92993a743e5..0e268ef02b3 100644
--- a/libstdc++-v3/testsuite/20_util/duration/comparison_operators/three_way.cc
+++ b/libstdc++-v3/testsuite/20_util/duration/comparison_operators/three_way.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/exchange/constexpr.cc b/libstdc++-v3/testsuite/20_util/exchange/constexpr.cc
index 2ec13044681..2a7d79201b1 100644
--- a/libstdc++-v3/testsuite/20_util/exchange/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/exchange/constexpr.cc
@@ -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 <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/exchange/noexcept.cc b/libstdc++-v3/testsuite/20_util/exchange/noexcept.cc
index 6363a4d4c06..7e39a428d82 100644
--- a/libstdc++-v3/testsuite/20_util/exchange/noexcept.cc
+++ b/libstdc++-v3/testsuite/20_util/exchange/noexcept.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/from_chars/1_c++20_neg.cc b/libstdc++-v3/testsuite/20_util/from_chars/1_c++20_neg.cc
index 5f94a1b121e..04d9ba6e74a 100644
--- a/libstdc++-v3/testsuite/20_util/from_chars/1_c++20_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/from_chars/1_c++20_neg.cc
@@ -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 <charconv>
 
diff --git a/libstdc++-v3/testsuite/20_util/from_chars/compare.cc b/libstdc++-v3/testsuite/20_util/from_chars/compare.cc
index 31a5c6934e8..8e728f200f2 100644
--- a/libstdc++-v3/testsuite/20_util/from_chars/compare.cc
+++ b/libstdc++-v3/testsuite/20_util/from_chars/compare.cc
@@ -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 <charconv>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc
index 3aacf06a4f3..8a8c11a79c2 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc
@@ -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 <functional>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/107784.cc b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/107784.cc
index f1f8cee4509..e8b4526735c 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/107784.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/107784.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <functional>
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/111327.cc b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/111327.cc
index fcfb9f9c7c0..43b56ca4378 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/111327.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/111327.cc
@@ -1,6 +1,5 @@
 // PR libstdc++/111327 - std::bind_front (and std::not_fn) doesn't always
 // perfectly forward according to value category of the call wrapper object
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <functional>
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/2.cc b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/2.cc
index 745a62d5925..0ea892612f6 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/2.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/2.cc
@@ -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 <functional>
 #include <memory>
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/97101.cc b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/97101.cc
index 6880a31f302..98eab166ce2 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/97101.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/97101.cc
@@ -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 <functional>
 
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/constexpr.cc b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/constexpr.cc
index 3d0d983a177..ef71b91ea74 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/bind_front/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/bind_front/constexpr.cc
@@ -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 <functional>
 
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/constexpr_searcher.cc b/libstdc++-v3/testsuite/20_util/function_objects/constexpr_searcher.cc
index dbe13818ab1..aa1e23b75d7 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/constexpr_searcher.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/constexpr_searcher.cc
@@ -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 <functional>
 
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/identity/1.cc b/libstdc++-v3/testsuite/20_util/function_objects/identity/1.cc
index 443c607e1c9..f300869904a 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/identity/1.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/identity/1.cc
@@ -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 <functional>
 
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/invoke/constexpr.cc b/libstdc++-v3/testsuite/20_util/function_objects/invoke/constexpr.cc
index b039a6f678c..122e2116f1a 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/invoke/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/invoke/constexpr.cc
@@ -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 <functional>
 
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/constexpr.cc b/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/constexpr.cc
index 005558d7686..9da0dbd1595 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/constexpr.cc
@@ -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 <functional>
 
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/not_fn/constexpr.cc b/libstdc++-v3/testsuite/20_util/function_objects/not_fn/constexpr.cc
index 1ebfd17f039..5ec139a51bb 100644
--- a/libstdc++-v3/testsuite/20_util/function_objects/not_fn/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/function_objects/not_fn/constexpr.cc
@@ -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 <functional>
 
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/1.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/1.cc
index c000fcbaca5..245fec96315 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/1.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/1.cc
@@ -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 preprocess { target c++2a } }
+// { dg-do preprocess { target c++20 } }
 
 #include <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/2.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/2.cc
index 856ee5fb17e..3e2bf573c0b 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/2.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/2.cc
@@ -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 preprocess { target c++2a } }
+// { dg-do preprocess { target c++20 } }
 
 #include <version>
 
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/equal.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/equal.cc
index b78b9f899ce..259c7a70828 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/equal.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/equal.cc
@@ -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 <utility>
 #include <limits>
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/equal_neg.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/equal_neg.cc
index 9de63b676bc..bbecbb4817a 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/equal_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/equal_neg.cc
@@ -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 <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/greater.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/greater.cc
index e564d8d03f2..c764d68b9a9 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/greater.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/greater.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <utility>
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_equal.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_equal.cc
index 5d943a9ab69..0028eea6bf3 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_equal.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_equal.cc
@@ -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 <utility>
 #include <limits>
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_equal_neg.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_equal_neg.cc
index 1a6bc52e149..b3e4bece80b 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_equal_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_equal_neg.cc
@@ -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 <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_neg.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_neg.cc
index d7097750307..fb064cf1c83 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/greater_neg.cc
@@ -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 <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/in_range.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/in_range.cc
index 78af767bca2..b2c632008af 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/in_range.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/in_range.cc
@@ -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 <utility>
 #include <limits>
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/in_range_neg.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/in_range_neg.cc
index 173f9016f4a..da85a56f760 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/in_range_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/in_range_neg.cc
@@ -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 <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/less.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/less.cc
index b8ac73c979c..0087e7bd540 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/less.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/less.cc
@@ -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 <utility>
 #include <limits>
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal.cc
index 301d8cd84c2..ee2ea8455fc 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal.cc
@@ -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 <utility>
 #include <limits>
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal_neg.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal_neg.cc
index 3d83f2ee607..c3d275fb10f 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/less_equal_neg.cc
@@ -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 <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/less_neg.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/less_neg.cc
index 6dcfda4ead7..8e58e4a035b 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/less_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/less_neg.cc
@@ -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 <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal.cc
index afe2e125071..0c658d2085d 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal.cc
@@ -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 <utility>
 #include <limits>
diff --git a/libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal_neg.cc b/libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal_neg.cc
index 9de63b676bc..bbecbb4817a 100644
--- a/libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/integer_comparisons/not_equal_neg.cc
@@ -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 <utility>
 
diff --git a/libstdc++-v3/testsuite/20_util/is_bounded_array/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_bounded_array/requirements/explicit_instantiation.cc
index f2a70f9a545..b3a92719bd0 100644
--- a/libstdc++-v3/testsuite/20_util/is_bounded_array/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/20_util/is_bounded_array/requirements/explicit_instantiation.cc
@@ -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.
 //
diff --git a/libstdc++-v3/testsuite/20_util/is_bounded_array/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_bounded_array/requirements/typedefs.cc
index fe2876124fb..6d77e3d19ef 100644
--- a/libstdc++-v3/testsuite/20_util/is_bounded_array/requirements/typedefs.cc
+++ b/libstdc++-v3/testsuite/20_util/is_bounded_array/requirements/typedefs.cc
@@ -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.
 //
diff --git a/libstdc++-v3/testsuite/20_util/is_bounded_array/value.cc b/libstdc++-v3/testsuite/20_util/is_bounded_array/value.cc
index 32ed5f18221..dd417cf6a2a 100644
--- a/libstdc++-v3/testsuite/20_util/is_bounded_array/value.cc
+++ b/libstdc++-v3/testsuite/20_util/is_bounded_array/value.cc
@@ -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.
 //
diff --git a/libstdc++-v3/testsuite/20_util/is_constant_evaluated/1.cc b/libstdc++-v3/testsuite/20_util/is_constant_evaluated/1.cc
index a8e115f67f2..684f7d55bc0 100644
--- a/libstdc++-v3/testsuite/20_util/is_constant_evaluated/1.cc
+++ b/libstdc++-v3/testsuite/20_util/is_constant_evaluated/1.cc
@@ -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 <type_traits>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/is_constant_evaluated/noexcept.cc b/libstdc++-v3/testsuite/20_util/is_constant_evaluated/noexcept.cc
index 2b9cd85fbf3..597317303d8 100644
--- a/libstdc++-v3/testsuite/20_util/is_constant_evaluated/noexcept.cc
+++ b/libstdc++-v3/testsuite/20_util/is_constant_evaluated/noexcept.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/is_constructible/92878_92947.cc b/libstdc++-v3/testsuite/20_util/is_constructible/92878_92947.cc
index 9841d65ab7d..e45cc58dc84 100644
--- a/libstdc++-v3/testsuite/20_util/is_constructible/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/is_constructible/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/is_layout_compatible/is_corresponding_member.cc b/libstdc++-v3/testsuite/20_util/is_layout_compatible/is_corresponding_member.cc
index 69b359aa1d5..8969a1d0307 100644
--- a/libstdc++-v3/testsuite/20_util/is_layout_compatible/is_corresponding_member.cc
+++ b/libstdc++-v3/testsuite/20_util/is_layout_compatible/is_corresponding_member.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 #include <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/is_layout_compatible/value.cc b/libstdc++-v3/testsuite/20_util/is_layout_compatible/value.cc
index 7686b34fc5a..6232f6ac671 100644
--- a/libstdc++-v3/testsuite/20_util/is_layout_compatible/value.cc
+++ b/libstdc++-v3/testsuite/20_util/is_layout_compatible/value.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 #include <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc b/libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc
index 3b2a8e1620f..be6079d6b5e 100644
--- a/libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc
+++ b/libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <version>
diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_constructible/value_c++20.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_constructible/value_c++20.cc
index 46fea72cbfe..1137738e543 100644
--- a/libstdc++-v3/testsuite/20_util/is_nothrow_constructible/value_c++20.cc
+++ b/libstdc++-v3/testsuite/20_util/is_nothrow_constructible/value_c++20.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/explicit_instantiation.cc
index f6bb7624f2b..9b6594d524b 100644
--- a/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/explicit_instantiation.cc
@@ -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 } }
 
 // NB: This file is for testing type_traits with NO OTHER INCLUDES.
 
diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc
index 6b42423c495..865ec04f7fe 100644
--- a/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc
+++ b/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc
@@ -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 } }
 
 // NB: This file is for testing type_traits with NO OTHER INCLUDES.
 
diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/value.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/value.cc
index 45f8f518e22..eec4f7f1001 100644
--- a/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/value.cc
+++ b/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/value.cc
@@ -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 <type_traits>
 #include <testsuite_tr1.h>
diff --git a/libstdc++-v3/testsuite/20_util/is_pod/deprecated-2a.cc b/libstdc++-v3/testsuite/20_util/is_pod/deprecated-2a.cc
index 7eb4562f653..cfb943322e6 100644
--- a/libstdc++-v3/testsuite/20_util/is_pod/deprecated-2a.cc
+++ b/libstdc++-v3/testsuite/20_util/is_pod/deprecated-2a.cc
@@ -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 <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/value.cc b/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/value.cc
index 471571cac58..fb4652d932d 100644
--- a/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/value.cc
+++ b/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/value.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 #include <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/version.cc b/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/version.cc
index 138c4be9f93..82882237e9d 100644
--- a/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/version.cc
+++ b/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/version.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <version>
diff --git a/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/with_class.cc b/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/with_class.cc
index 28de9b416fc..bb20d1ba47d 100644
--- a/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/with_class.cc
+++ b/libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/with_class.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 #include <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/is_unbounded_array/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_unbounded_array/requirements/explicit_instantiation.cc
index c6584956188..0594ba406da 100644
--- a/libstdc++-v3/testsuite/20_util/is_unbounded_array/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/20_util/is_unbounded_array/requirements/explicit_instantiation.cc
@@ -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.
 //
diff --git a/libstdc++-v3/testsuite/20_util/is_unbounded_array/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_unbounded_array/requirements/typedefs.cc
index fe2876124fb..6d77e3d19ef 100644
--- a/libstdc++-v3/testsuite/20_util/is_unbounded_array/requirements/typedefs.cc
+++ b/libstdc++-v3/testsuite/20_util/is_unbounded_array/requirements/typedefs.cc
@@ -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.
 //
diff --git a/libstdc++-v3/testsuite/20_util/is_unbounded_array/value.cc b/libstdc++-v3/testsuite/20_util/is_unbounded_array/value.cc
index 9369fa962a2..495e1e9d89e 100644
--- a/libstdc++-v3/testsuite/20_util/is_unbounded_array/value.cc
+++ b/libstdc++-v3/testsuite/20_util/is_unbounded_array/value.cc
@@ -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.
 //
diff --git a/libstdc++-v3/testsuite/20_util/optional/assignment/92878_92947.cc b/libstdc++-v3/testsuite/20_util/optional/assignment/92878_92947.cc
index a0c650d8a22..b673cb377c6 100644
--- a/libstdc++-v3/testsuite/20_util/optional/assignment/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/optional/assignment/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/optional/cons/92878_92947.cc b/libstdc++-v3/testsuite/20_util/optional/cons/92878_92947.cc
index 0345a1ae95c..2aa0fe54371 100644
--- a/libstdc++-v3/testsuite/20_util/optional/cons/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/optional/cons/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/optional/constexpr/assign.cc b/libstdc++-v3/testsuite/20_util/optional/constexpr/assign.cc
index fb82233052d..f9086f70a9a 100644
--- a/libstdc++-v3/testsuite/20_util/optional/constexpr/assign.cc
+++ b/libstdc++-v3/testsuite/20_util/optional/constexpr/assign.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <optional>
diff --git a/libstdc++-v3/testsuite/20_util/optional/constexpr/cons/conv.cc b/libstdc++-v3/testsuite/20_util/optional/constexpr/cons/conv.cc
index cc638148d25..3c1d357b1f3 100644
--- a/libstdc++-v3/testsuite/20_util/optional/constexpr/cons/conv.cc
+++ b/libstdc++-v3/testsuite/20_util/optional/constexpr/cons/conv.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <optional>
diff --git a/libstdc++-v3/testsuite/20_util/optional/constexpr/modifiers.cc b/libstdc++-v3/testsuite/20_util/optional/constexpr/modifiers.cc
index 614607d0216..eea0df2cfe2 100644
--- a/libstdc++-v3/testsuite/20_util/optional/constexpr/modifiers.cc
+++ b/libstdc++-v3/testsuite/20_util/optional/constexpr/modifiers.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <optional>
diff --git a/libstdc++-v3/testsuite/20_util/optional/constexpr/swap.cc b/libstdc++-v3/testsuite/20_util/optional/constexpr/swap.cc
index 2d18a51106c..57f5cd20bdb 100644
--- a/libstdc++-v3/testsuite/20_util/optional/constexpr/swap.cc
+++ b/libstdc++-v3/testsuite/20_util/optional/constexpr/swap.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <optional>
diff --git a/libstdc++-v3/testsuite/20_util/optional/relops/96269.cc b/libstdc++-v3/testsuite/20_util/optional/relops/96269.cc
index f0a8f2f275b..ddb4be30fd7 100644
--- a/libstdc++-v3/testsuite/20_util/optional/relops/96269.cc
+++ b/libstdc++-v3/testsuite/20_util/optional/relops/96269.cc
@@ -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 <optional>
 
diff --git a/libstdc++-v3/testsuite/20_util/optional/relops/three_way.cc b/libstdc++-v3/testsuite/20_util/optional/relops/three_way.cc
index 8ee624d4680..6fd7024595c 100644
--- a/libstdc++-v3/testsuite/20_util/optional/relops/three_way.cc
+++ b/libstdc++-v3/testsuite/20_util/optional/relops/three_way.cc
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <optional>
diff --git a/libstdc++-v3/testsuite/20_util/pair/comparison_operators/constexpr_c++20.cc b/libstdc++-v3/testsuite/20_util/pair/comparison_operators/constexpr_c++20.cc
index 2c6e20a43a2..12feacad790 100644
--- a/libstdc++-v3/testsuite/20_util/pair/comparison_operators/constexpr_c++20.cc
+++ b/libstdc++-v3/testsuite/20_util/pair/comparison_operators/constexpr_c++20.cc
@@ -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.
 //
diff --git a/libstdc++-v3/testsuite/20_util/pair/cons/92878_92947.cc b/libstdc++-v3/testsuite/20_util/pair/cons/92878_92947.cc
index c423ac2c302..706ce1ab227 100644
--- a/libstdc++-v3/testsuite/20_util/pair/cons/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/pair/cons/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/pair/constexpr_assign.cc b/libstdc++-v3/testsuite/20_util/pair/constexpr_assign.cc
index 923c019fbc5..9509180f23a 100644
--- a/libstdc++-v3/testsuite/20_util/pair/constexpr_assign.cc
+++ b/libstdc++-v3/testsuite/20_util/pair/constexpr_assign.cc
@@ -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 <utility>
 #include <tuple>
diff --git a/libstdc++-v3/testsuite/20_util/pair/constexpr_swap.cc b/libstdc++-v3/testsuite/20_util/pair/constexpr_swap.cc
index 5ef264e92c0..5f2242ca4a8 100644
--- a/libstdc++-v3/testsuite/20_util/pair/constexpr_swap.cc
+++ b/libstdc++-v3/testsuite/20_util/pair/constexpr_swap.cc
@@ -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 <utility>
 #include <tuple>
diff --git a/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc b/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc
index d4df20197ee..75ae4f6e3cc 100644
--- a/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc
+++ b/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <utility>
diff --git a/libstdc++-v3/testsuite/20_util/pointer_traits/pointer_to_constexpr.cc b/libstdc++-v3/testsuite/20_util/pointer_traits/pointer_to_constexpr.cc
index 197de127794..f5c90761d57 100644
--- a/libstdc++-v3/testsuite/20_util/pointer_traits/pointer_to_constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/pointer_traits/pointer_to_constexpr.cc
@@ -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 <memory>
 
diff --git a/libstdc++-v3/testsuite/20_util/polymorphic_allocator/allocate_object.cc b/libstdc++-v3/testsuite/20_util/polymorphic_allocator/allocate_object.cc
index c395b8cda36..54f1004b4f3 100644
--- a/libstdc++-v3/testsuite/20_util/polymorphic_allocator/allocate_object.cc
+++ b/libstdc++-v3/testsuite/20_util/polymorphic_allocator/allocate_object.cc
@@ -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 <memory_resource>
 #include <cstring>
diff --git a/libstdc++-v3/testsuite/20_util/polymorphic_allocator/construct_c++2a.cc b/libstdc++-v3/testsuite/20_util/polymorphic_allocator/construct_c++2a.cc
index bf8d4687d2e..5b5accc3240 100644
--- a/libstdc++-v3/testsuite/20_util/polymorphic_allocator/construct_c++2a.cc
+++ b/libstdc++-v3/testsuite/20_util/polymorphic_allocator/construct_c++2a.cc
@@ -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 <memory_resource>
 #include <utility>
diff --git a/libstdc++-v3/testsuite/20_util/polymorphic_allocator/lwg3237.cc b/libstdc++-v3/testsuite/20_util/polymorphic_allocator/lwg3237.cc
index aa399b5ede7..3239d5af05c 100644
--- a/libstdc++-v3/testsuite/20_util/polymorphic_allocator/lwg3237.cc
+++ b/libstdc++-v3/testsuite/20_util/polymorphic_allocator/lwg3237.cc
@@ -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 <memory_resource>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/constexpr.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/constexpr.cc
index 271e9e4d607..2d97635a9b4 100644
--- a/libstdc++-v3/testsuite/20_util/reference_wrapper/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/constexpr.cc
@@ -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 <functional>
 
diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/incomplete.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/incomplete.cc
index d00e2c3b2ea..4e82d3ea9de 100644
--- a/libstdc++-v3/testsuite/20_util/reference_wrapper/incomplete.cc
+++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/incomplete.cc
@@ -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 } }
 
 // P0357R3 reference_wrapper for incomplete types
 
diff --git a/libstdc++-v3/testsuite/20_util/remove_cvref/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/remove_cvref/requirements/alias_decl.cc
index 4a2613c1219..6b64f293506 100644
--- a/libstdc++-v3/testsuite/20_util/remove_cvref/requirements/alias_decl.cc
+++ b/libstdc++-v3/testsuite/20_util/remove_cvref/requirements/alias_decl.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc
index 02c40eef397..58fb0dd6039 100644
--- a/libstdc++-v3/testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/remove_cvref/value.cc b/libstdc++-v3/testsuite/20_util/remove_cvref/value.cc
index b739fae4d64..341492f6aa6 100644
--- a/libstdc++-v3/testsuite/20_util/remove_cvref/value.cc
+++ b/libstdc++-v3/testsuite/20_util/remove_cvref/value.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc
index 2e32a9abe7d..88b318fa5d6 100644
--- a/libstdc++-v3/testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc
+++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc
@@ -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 } }
 
 // P0591R4 makes uses-allocator construction apply recursively for nested pairs
 
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc
index 54cf2621ea1..6f790ac6c8e 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 // { dg-require-effective-target gthreads }
 // { dg-additional-options "-pthread" { target pthread } }
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/casts/rval.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/casts/rval.cc
index 9b4ab327c8c..96e98018c05 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/casts/rval.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/casts/rval.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-effective-target hosted }
 
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc
index b5649e01268..6fe6de92e4b 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc
@@ -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-effective-target hosted }
 
 #include <memory>
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/alias-rval.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/alias-rval.cc
index a955d066c3a..0cc7bb45753 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/alias-rval.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/alias-rval.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-effective-target hosted }
 
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/92878_92947.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/92878_92947.cc
index 920ffbf050f..b5fd81e5e91 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-effective-target hosted }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/array.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/array.cc
index 5c11a8b6285..534036287fc 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/array.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/array.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 // C++20 20.11.3.7 shared_ptr Creation [util.smartptr.shared.create]
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/overwrite.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/overwrite.cc
index 923e909805a..d78ee698eb1 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/overwrite.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/overwrite.cc
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++20 -fno-lifetime-dse -O0" }
+// { dg-options "-fno-lifetime-dse -O0" }
 // { dg-do run { target c++20 } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/version.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/version.cc
index 4dd1b4964a4..9c0fc5dda39 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/version.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/version.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do preprocess { target c++20 } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/time_point/4.cc b/libstdc++-v3/testsuite/20_util/time_point/4.cc
index f6c3ec99dfb..f4727ae4eec 100644
--- a/libstdc++-v3/testsuite/20_util/time_point/4.cc
+++ b/libstdc++-v3/testsuite/20_util/time_point/4.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/time_point/comparison_operators/three_way.cc b/libstdc++-v3/testsuite/20_util/time_point/comparison_operators/three_way.cc
index 2382d7dc279..182fdcd3cd6 100644
--- a/libstdc++-v3/testsuite/20_util/time_point/comparison_operators/three_way.cc
+++ b/libstdc++-v3/testsuite/20_util/time_point/comparison_operators/three_way.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/to_address/1.cc b/libstdc++-v3/testsuite/20_util/to_address/1.cc
index 6ad5630a61b..2e1ec4b3e84 100644
--- a/libstdc++-v3/testsuite/20_util/to_address/1.cc
+++ b/libstdc++-v3/testsuite/20_util/to_address/1.cc
@@ -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 <memory>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/to_address/1_neg.cc b/libstdc++-v3/testsuite/20_util/to_address/1_neg.cc
index 181f8b6dea3..21cd5165ab7 100644
--- a/libstdc++-v3/testsuite/20_util/to_address/1_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/to_address/1_neg.cc
@@ -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-error "not a function pointer" "" { target *-*-* } 0 }
 
 #include <memory>
diff --git a/libstdc++-v3/testsuite/20_util/to_address/debug.cc b/libstdc++-v3/testsuite/20_util/to_address/debug.cc
index d6eba8b5d10..394b9b32df2 100644
--- a/libstdc++-v3/testsuite/20_util/to_address/debug.cc
+++ b/libstdc++-v3/testsuite/20_util/to_address/debug.cc
@@ -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 <debug/vector>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/to_address/lwg3545.cc b/libstdc++-v3/testsuite/20_util/to_address/lwg3545.cc
index a80ac29b2c9..3a1ee8d1a9b 100644
--- a/libstdc++-v3/testsuite/20_util/to_address/lwg3545.cc
+++ b/libstdc++-v3/testsuite/20_util/to_address/lwg3545.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <memory>
diff --git a/libstdc++-v3/testsuite/20_util/to_chars/compare.cc b/libstdc++-v3/testsuite/20_util/to_chars/compare.cc
index 250058c55e5..b2faac0c69d 100644
--- a/libstdc++-v3/testsuite/20_util/to_chars/compare.cc
+++ b/libstdc++-v3/testsuite/20_util/to_chars/compare.cc
@@ -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 <charconv>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/tuple/comparison_operators/three_way.cc b/libstdc++-v3/testsuite/20_util/tuple/comparison_operators/three_way.cc
index 82e38a683bf..e441fe0c69f 100644
--- a/libstdc++-v3/testsuite/20_util/tuple/comparison_operators/three_way.cc
+++ b/libstdc++-v3/testsuite/20_util/tuple/comparison_operators/three_way.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/102270.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/102270.cc
index 5500cacab6d..6ddb9630a67 100644
--- a/libstdc++-v3/testsuite/20_util/tuple/cons/102270.cc
+++ b/libstdc++-v3/testsuite/20_util/tuple/cons/102270.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <tuple>
diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc
index 2ff431026ad..8f672c96d02 100644
--- a/libstdc++-v3/testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc
+++ b/libstdc++-v3/testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 // FIXME [!HOSTED]: avoidable std::allocator usage
 // { dg-require-effective-target hosted }
 //
diff --git a/libstdc++-v3/testsuite/20_util/tuple/constexpr_swap.cc b/libstdc++-v3/testsuite/20_util/tuple/constexpr_swap.cc
index 14fdec48f8a..1dea311a6e7 100644
--- a/libstdc++-v3/testsuite/20_util/tuple/constexpr_swap.cc
+++ b/libstdc++-v3/testsuite/20_util/tuple/constexpr_swap.cc
@@ -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.
 //
diff --git a/libstdc++-v3/testsuite/20_util/type_identity/requirements/alias_decl.cc b/libstdc++-v3/testsuite/20_util/type_identity/requirements/alias_decl.cc
index 4823a32f4a2..67e7f6a51a7 100644
--- a/libstdc++-v3/testsuite/20_util/type_identity/requirements/alias_decl.cc
+++ b/libstdc++-v3/testsuite/20_util/type_identity/requirements/alias_decl.cc
@@ -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 <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/type_identity/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/type_identity/requirements/explicit_instantiation.cc
index 193ecfeb36f..69c3a7ca1e8 100644
--- a/libstdc++-v3/testsuite/20_util/type_identity/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/20_util/type_identity/requirements/explicit_instantiation.cc
@@ -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 } }
 
 // NB: This file is for testing type_traits with NO OTHER INCLUDES.
 
diff --git a/libstdc++-v3/testsuite/20_util/type_identity/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/type_identity/requirements/typedefs.cc
index c7248a25dfa..6c9ba2247dd 100644
--- a/libstdc++-v3/testsuite/20_util/type_identity/requirements/typedefs.cc
+++ b/libstdc++-v3/testsuite/20_util/type_identity/requirements/typedefs.cc
@@ -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 <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/typeindex/comparison_operators_c++20.cc b/libstdc++-v3/testsuite/20_util/typeindex/comparison_operators_c++20.cc
index b903b72235e..98be53f4c35 100644
--- a/libstdc++-v3/testsuite/20_util/typeindex/comparison_operators_c++20.cc
+++ b/libstdc++-v3/testsuite/20_util/typeindex/comparison_operators_c++20.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-effective-target rtti }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/comparison/compare_c++20.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/comparison/compare_c++20.cc
index 43eb2d9a9dc..e0d95040eb0 100644
--- a/libstdc++-v3/testsuite/20_util/unique_ptr/comparison/compare_c++20.cc
+++ b/libstdc++-v3/testsuite/20_util/unique_ptr/comparison/compare_c++20.cc
@@ -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 <memory>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/creation/92878_92947.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/creation/92878_92947.cc
index aef555512dd..0f656de8967 100644
--- a/libstdc++-v3/testsuite/20_util/unique_ptr/creation/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/unique_ptr/creation/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-effective-target hosted }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite.cc
index 86b9045b388..37ef1b7356a 100644
--- a/libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite.cc
+++ b/libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite.cc
@@ -1,5 +1,5 @@
-// { dg-options "-std=gnu++20 -fno-lifetime-dse -O0" }
-// { dg-do run { target c++2a } }
+// { dg-options "-fno-lifetime-dse -O0" }
+// { dg-do run { target c++20 } }
 // { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite__neg.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite__neg.cc
index d1144effaf8..7afbc5a78b7 100644
--- a/libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite__neg.cc
+++ b/libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite__neg.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++20" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc
index 45c54a03b6a..7266fd3a19e 100644
--- a/libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc
+++ b/libstdc++-v3/testsuite/20_util/unique_ptr/io/lwg2948.cc
@@ -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 <memory>
 #include <sstream>
diff --git a/libstdc++-v3/testsuite/20_util/unwrap_reference/1.cc b/libstdc++-v3/testsuite/20_util/unwrap_reference/1.cc
index 15a9e39f26f..d3a33f842ca 100644
--- a/libstdc++-v3/testsuite/20_util/unwrap_reference/1.cc
+++ b/libstdc++-v3/testsuite/20_util/unwrap_reference/1.cc
@@ -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 <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/unwrap_reference/2.cc b/libstdc++-v3/testsuite/20_util/unwrap_reference/2.cc
index ab67269af6c..95e61445e4f 100644
--- a/libstdc++-v3/testsuite/20_util/unwrap_reference/2.cc
+++ b/libstdc++-v3/testsuite/20_util/unwrap_reference/2.cc
@@ -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 <type_traits>
 
diff --git a/libstdc++-v3/testsuite/20_util/unwrap_reference/3.cc b/libstdc++-v3/testsuite/20_util/unwrap_reference/3.cc
index 9ea43871468..e2e91fdb34b 100644
--- a/libstdc++-v3/testsuite/20_util/unwrap_reference/3.cc
+++ b/libstdc++-v3/testsuite/20_util/unwrap_reference/3.cc
@@ -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 <version>
 
diff --git a/libstdc++-v3/testsuite/20_util/uses_allocator/92878_92947.cc b/libstdc++-v3/testsuite/20_util/uses_allocator/92878_92947.cc
index 9c4d2966a2f..ca3efd7b297 100644
--- a/libstdc++-v3/testsuite/20_util/uses_allocator/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/uses_allocator/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-effective-target hosted }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc b/libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc
index c5a7d513b31..445e40965b2 100644
--- a/libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc
+++ b/libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
 
diff --git a/libstdc++-v3/testsuite/20_util/uses_allocator/make_obj.cc b/libstdc++-v3/testsuite/20_util/uses_allocator/make_obj.cc
index 23336a86c4c..d1a9fb5c49f 100644
--- a/libstdc++-v3/testsuite/20_util/uses_allocator/make_obj.cc
+++ b/libstdc++-v3/testsuite/20_util/uses_allocator/make_obj.cc
@@ -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 <testsuite_hooks.h>
 #include <testsuite_allocator.h>
diff --git a/libstdc++-v3/testsuite/20_util/uses_allocator/uninitialized_construct.cc b/libstdc++-v3/testsuite/20_util/uses_allocator/uninitialized_construct.cc
index 06e850f4997..8fbc767dd5e 100644
--- a/libstdc++-v3/testsuite/20_util/uses_allocator/uninitialized_construct.cc
+++ b/libstdc++-v3/testsuite/20_util/uses_allocator/uninitialized_construct.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // TODO [!HOSTED]: avoidable std::allocator usage
 // { dg-require-effective-target hosted }
diff --git a/libstdc++-v3/testsuite/20_util/variant/92878_92947.cc b/libstdc++-v3/testsuite/20_util/variant/92878_92947.cc
index 7c3d5bf7957..528c59dbdbc 100644
--- a/libstdc++-v3/testsuite/20_util/variant/92878_92947.cc
+++ b/libstdc++-v3/testsuite/20_util/variant/92878_92947.cc
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/20_util/variant/95915.cc b/libstdc++-v3/testsuite/20_util/variant/95915.cc
index 84e91583e0f..471d9a45c74 100644
--- a/libstdc++-v3/testsuite/20_util/variant/95915.cc
+++ b/libstdc++-v3/testsuite/20_util/variant/95915.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/20_util/variant/constexpr.cc b/libstdc++-v3/testsuite/20_util/variant/constexpr.cc
index 7af3d98fe5d..55fac029aaf 100644
--- a/libstdc++-v3/testsuite/20_util/variant/constexpr.cc
+++ b/libstdc++-v3/testsuite/20_util/variant/constexpr.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <variant>
diff --git a/libstdc++-v3/testsuite/20_util/variant/relops/three_way.cc b/libstdc++-v3/testsuite/20_util/variant/relops/three_way.cc
index dc3f5455fda..91f59ff9075 100644
--- a/libstdc++-v3/testsuite/20_util/variant/relops/three_way.cc
+++ b/libstdc++-v3/testsuite/20_util/variant/relops/three_way.cc
@@ -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 <variant>
 
diff --git a/libstdc++-v3/testsuite/20_util/variant/visit_neg.cc b/libstdc++-v3/testsuite/20_util/variant/visit_neg.cc
index d93c3ba10b0..6e934314a86 100644
--- a/libstdc++-v3/testsuite/20_util/variant/visit_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/variant/visit_neg.cc
@@ -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 <variant>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/variant/visit_r.cc b/libstdc++-v3/testsuite/20_util/variant/visit_r.cc
index 1fb18f25a6e..4f551a612d8 100644
--- a/libstdc++-v3/testsuite/20_util/variant/visit_r.cc
+++ b/libstdc++-v3/testsuite/20_util/variant/visit_r.cc
@@ -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 <variant>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/20_util/weak_ptr/atomic_weak_ptr.cc b/libstdc++-v3/testsuite/20_util/weak_ptr/atomic_weak_ptr.cc
index b38cea768c8..f612bc2180d 100644
--- a/libstdc++-v3/testsuite/20_util/weak_ptr/atomic_weak_ptr.cc
+++ b/libstdc++-v3/testsuite/20_util/weak_ptr/atomic_weak_ptr.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 // { dg-require-effective-target gthreads }
 // { dg-additional-options "-pthread" { target pthread } }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-15 23:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-15 23:18 [gcc r14-4064] libstdc++: Remove dg-options "-std=gnu++20" from 20_utils tests Jonathan Wakely

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).