From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id B7D0F3857BB3 for ; Mon, 11 Sep 2023 16:35:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B7D0F3857BB3 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694450141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ji/toJDqcUdD5kERfqNIDghbuNyxBB3vj/BH6y3jo6E=; b=ByYEgyVuMSFauprQaPTJiGotfIaAYtUOuIpkoO5ClNA9bs83tUBWjLRRisVoB71s0d3IUF vkVwO3YT51UgwZXADY1vqJ40F8PKE4OvULJC0h8rWkoSmxAK2Wa6+RsvZkhl2xCG+xmbky CN20ndZClVt3apmwombgJozBMxke1YA= 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-651-uG8874yDNOKWxNmc9GumIA-1; Mon, 11 Sep 2023 12:35:40 -0400 X-MC-Unique: uG8874yDNOKWxNmc9GumIA-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 F3CC9928B82; Mon, 11 Sep 2023 16:35:39 +0000 (UTC) Received: from localhost (unknown [10.42.28.190]) by smtp.corp.redhat.com (Postfix) with ESMTP id BA08340C6EA8; Mon, 11 Sep 2023 16:35:39 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH 05/13] libstdc++: Remove dg-options "-std=c++20" from and tests Date: Mon, 11 Sep 2023 17:16:36 +0100 Message-ID: <20230911163534.1913512-6-jwakely@redhat.com> In-Reply-To: <20230911163534.1913512-1-jwakely@redhat.com> References: <20230911163534.1913512-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 Content-Type: text/plain Content-Transfer-Encoding: 8bit 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_H4,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 List-Id: 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. There doesn't seem to be any reason they need to use strict -std=c++20 mode, so don't add the { dg-add-options strict_std } directive, just let them use strict or non-strict modes. libstdc++-v3/ChangeLog: * testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc: Remove dg-options. * testsuite/23_containers/span/contiguous_range_neg.cc: Likewise. * testsuite/23_containers/span/everything.cc: Likewise. --- .../testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc | 1 - .../testsuite/23_containers/span/contiguous_range_neg.cc | 3 +-- libstdc++-v3/testsuite/23_containers/span/everything.cc | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc b/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc index df68fb7c82f..1964803cbd1 100644 --- a/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc +++ b/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=c++20" } // { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc b/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc index d5f64922052..2ed44740a86 100644 --- a/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=c++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/23_containers/span/everything.cc b/libstdc++-v3/testsuite/23_containers/span/everything.cc index 74f943e937f..31c17346dd3 100644 --- a/libstdc++-v3/testsuite/23_containers/span/everything.cc +++ b/libstdc++-v3/testsuite/23_containers/span/everything.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=c++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include -- 2.41.0