From patchwork Mon Sep 11 16:16:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 137897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp2191702vqo; Mon, 11 Sep 2023 09:41:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvW6tNxpnDeA5ZytW8aHFVnAWMOcE3aTOClTOdaREOMHsZjdY5oo1xW3Yv013mzJUc07Zh X-Received: by 2002:a17:907:8a1c:b0:982:a022:a540 with SMTP id sc28-20020a1709078a1c00b00982a022a540mr250148ejc.11.1694450460339; Mon, 11 Sep 2023 09:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694450460; cv=none; d=google.com; s=arc-20160816; b=dtzwdv696UNbb7LxxgKu/iIMWPRjaDu2vbV1C+wH/5NP/I/OZTULMI6D+iBSJHp3oy oHoqVePM/fxaZCm2/YtGZYcr4BbOKrigucSGJRUu77lURYcl1ho7t74rHqLDKXMRhDu/ pYCnlq5lI8fQsTkPDzU/qPNWO8J6Yn0dKduTaYDfmkylemFm02Pct4bIhsmXoGI/vCVX BShk6XpYInJcBHazXC/slsrntiSNKDtfRg6VeOw2edON0uwl3o6SjcSGfvZE/QYHESRj HpKqrHk7BdgXIzd4u9JpYCV/UosBnVDquVuBvJynPPwhDcuG/ojBU8YBdZaMvFTqhjIf 1AwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=GAb6SUmViyFaQOffisfylW4mO0KOtnXR8uR2beDPt/8=; fh=sJ+2/4g29YdyXkoRrFZSpsL2zxijepB7X/1rB0LDDh8=; b=sm84VX2rQc0PPuZPNeXlyIwAZpDuUdIuRiSsXyVJqxjakdS0QMSpX7pjn0bvOqLw9s sQszZttmcvvf76tZDjipbF11KrRAcxoCPinc0wv6lj95yMS3gULgk/KqZHLDuArnq+8x 5yaFe1BqfxR+ZAjJu9zT51qbzchnM/Q1ldThJYIY2r+36CJ0+pv8V8NQct90DoiyY6Aq jZLB0d782PHi3xLlPcJOS9QxQ+SjQCz2sWY70Fktl8sjrrEkMKVWPMuuacclKiTp9YyF Mbv6Y2rjlQvj9x+Wq8pCa3u7JlOoocC17AHyMowDI/myBiuEEneySgCW6pB8DCHPBFmP vUQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=g+8ENepT; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id g9-20020a170906538900b009a9f767b62fsi6792727ejo.114.2023.09.11.09.40.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 09:41:00 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=g+8ENepT; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 89B31388E823 for ; Mon, 11 Sep 2023 16:37:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89B31388E823 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694450252; bh=GAb6SUmViyFaQOffisfylW4mO0KOtnXR8uR2beDPt/8=; 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=g+8ENepTWozkRWRsy5eJOmtFI4MarI5wCiKmMh5ZVXtTBMEoP05GV6P/g3f4qfmbm Mi5UdS4HaHQoyJOwO8ot4x3G9oRXHABlbF6+yzJwVG90sKczAoLwHHoKBKQjM84cnO Dmnv7kDdzpg3bkN+qLvA3qHgBjQNSE4e1Hpy4fbA= 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 7E19E3857B93 for ; Mon, 11 Sep 2023 16:35:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7E19E3857B93 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-564-R9_lp6qzNK-4kgwVxyWMAw-1; Mon, 11 Sep 2023 12:35:38 -0400 X-MC-Unique: R9_lp6qzNK-4kgwVxyWMAw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (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 471D28E62C2; Mon, 11 Sep 2023 16:35:38 +0000 (UTC) Received: from localhost (unknown [10.42.28.190]) by smtp.corp.redhat.com (Postfix) with ESMTP id 098D540C2064; Mon, 11 Sep 2023 16:35:37 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH 03/13] libstdc++: Replace dg-options "-std=c++17" with dg-add-options strict_std Date: Mon, 11 Sep 2023 17:16:34 +0100 Message-ID: <20230911163534.1913512-4-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.1 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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776760085771038260 X-GMAIL-MSGID: 1776760085771038260 These tests can (and should) also be run for later standards, so replace the { dg-options "-std=c++17" } with { dg-add-options strict_std }. * testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc: Replace dg-options -std=c++17 with dg-add-options strict_std. * testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc: Likewise. --- .../special_functions/07_conf_hyperg/compile_cxx17.cc | 2 +- .../special_functions/17_hyperg/compile_cxx17.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc index 60264ebe3dd..a10ba8e517b 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=c++17" } // { dg-do compile { target c++17 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc index 40ea47c1ca4..91a55883f64 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=c++17" } // { dg-do compile { target c++17 } } +// { dg-add-options strict_std } #include