From patchwork Fri Sep 15 23:18:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1835199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=HFA4hA0v; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RnVY16N0Vz1yhP for ; Sat, 16 Sep 2023 09:20:37 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DFF4C3853D1E for ; Fri, 15 Sep 2023 23:20:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFF4C3853D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694820035; bh=rCTUI8SIHrzCKScBsnXNOyVnWJ8AiqfTsavFd8tYYfI=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=HFA4hA0vyB6Ckr4Ip8ofFA3+eyPLpSNB/wxgd845sffr1WegkQcjdiJkTeeIlSNt6 Juhga3XmiDRinAra7H/ctOKf/d1HRARC7jbHh1Blz936P/eEl7n3uatSaqZ0WA6jEs d2c/0Se09UanyxzhF2veRW9TIDDuod0G2lySCoLA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 12BEB3858C33 for ; Fri, 15 Sep 2023 23:20:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12BEB3858C33 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-50-b_3KRIXyNLiiboYOAwamKg-1; Fri, 15 Sep 2023 19:20:12 -0400 X-MC-Unique: b_3KRIXyNLiiboYOAwamKg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B708B85A5A8; Fri, 15 Sep 2023 23:20:11 +0000 (UTC) Received: from localhost (unknown [10.42.28.190]) by smtp.corp.redhat.com (Postfix) with ESMTP id 77BA040C6EA8; Fri, 15 Sep 2023 23:20:11 +0000 (UTC) To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: [committed 02/11] libstdc++: Remove dg-options "-std=gnu++20" from tests Date: Sat, 16 Sep 2023 00:18:50 +0100 Message-ID: <20230915232009.2348586-2-jwakely@redhat.com> In-Reply-To: <20230915232009.2348586-1-jwakely@redhat.com> References: <20230915232009.2348586-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Tested aarch64-linux. Pushed to trunk. -- >8 -- 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/18_support/comparisons/algorithms/fallback.cc: Remove dg-options -std=gnu++2a. * testsuite/18_support/comparisons/algorithms/partial_order.cc: Likewise. * testsuite/18_support/comparisons/algorithms/strong_order.cc: Likewise. * testsuite/18_support/comparisons/algorithms/strong_order_floats.cc: Likewise. * testsuite/18_support/comparisons/algorithms/weak_order.cc: Likewise. * testsuite/18_support/comparisons/categories/94565.cc: Likewise. * testsuite/18_support/comparisons/categories/partialord.cc: Likewise. * testsuite/18_support/comparisons/categories/strongord.cc: Likewise. * testsuite/18_support/comparisons/categories/weakord.cc: Likewise. * testsuite/18_support/comparisons/categories/zero_neg.cc: Likewise. * testsuite/18_support/comparisons/common/1.cc: Likewise. * testsuite/18_support/comparisons/object/93479.cc: Likewise. * testsuite/18_support/comparisons/object/lwg3530.cc: Likewise. --- .../testsuite/18_support/comparisons/algorithms/fallback.cc | 1 - .../18_support/comparisons/algorithms/partial_order.cc | 3 +-- .../18_support/comparisons/algorithms/strong_order.cc | 3 +-- .../18_support/comparisons/algorithms/strong_order_floats.cc | 1 - .../testsuite/18_support/comparisons/algorithms/weak_order.cc | 3 +-- .../testsuite/18_support/comparisons/categories/94565.cc | 3 +-- .../testsuite/18_support/comparisons/categories/partialord.cc | 3 +-- .../testsuite/18_support/comparisons/categories/strongord.cc | 3 +-- .../testsuite/18_support/comparisons/categories/weakord.cc | 3 +-- .../testsuite/18_support/comparisons/categories/zero_neg.cc | 4 ++-- libstdc++-v3/testsuite/18_support/comparisons/common/1.cc | 3 +-- libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc | 3 +-- .../testsuite/18_support/comparisons/object/lwg3530.cc | 3 +-- 13 files changed, 12 insertions(+), 24 deletions(-) diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc index 8bf78faf232..da8aaeedcb4 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc index 7c186e607b4..d83bb000160 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc index be640714245..c97f31442db 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc index e28fcac6e11..135cba2e658 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc index a66ca6a51e0..1ff471f7203 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc index 624f114204d..47092b9116c 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc index 818f5a17b15..57fe68a3d82 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc index 87999741536..e23c571c909 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc index a0f6eb3677c..866733741f8 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc index 17a129bcb75..9d2115b3f4f 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a -Wno-unused-result" } -// { dg-do compile { target c++2a } } +// { dg-options "-Wno-unused-result" } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc b/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc index f9acf163ed0..7050e75327a 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc b/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc index 82e1d72f03d..15178f7c27f 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc b/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc index f042ce0f1dc..b9a3cf55ee6 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include