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 0CA153858D1E for ; Fri, 8 Sep 2023 18:16:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0CA153858D1E 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=1694196966; 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; bh=QeG2k9zKW5mhubSi0MTcV/d9di6EauGMZK4ohnBSHC4=; b=WrTAeRB0zZyaQjB+IAEBlUATwXb85mIXd43A/rGFQk8b6SJTmZ7yp8qz1l1O2zL83Z9XcA ywTxg/EsZafi/zgx1+JinfsNDDZLsfhya6djaWoPhk2G26WJCcaamQCTB76X8CO41OzBXg trXDTnjQg94NMn3nVpdxSipBNDDSp4Q= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-197-A5XzOGZnMA-FXKuU_a19Tw-1; Fri, 08 Sep 2023 14:16:05 -0400 X-MC-Unique: A5XzOGZnMA-FXKuU_a19Tw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (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 C16291C11806; Fri, 8 Sep 2023 18:16:04 +0000 (UTC) Received: from localhost (unknown [10.42.28.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 871A32026D2B; Fri, 8 Sep 2023 18:16:04 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Update outdated default -std in testing docs Date: Fri, 8 Sep 2023 19:15:09 +0100 Message-ID: <20230908181603.1719292-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,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: Pushed to gcc-13 (I've removed/rewritten this text on trunk). I'll push to the older branches too. -- >8 -- libstdc++-v3/ChangeLog: * doc/xml/manual/test.xml: Update reference to -std=gnu++14 as the default. * doc/html/manual/test.html: Regenerate. --- libstdc++-v3/doc/html/manual/test.html | 10 +++++----- libstdc++-v3/doc/xml/manual/test.xml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libstdc++-v3/doc/xml/manual/test.xml b/libstdc++-v3/doc/xml/manual/test.xml index 964c53d2632..9853a284814 100644 --- a/libstdc++-v3/doc/xml/manual/test.xml +++ b/libstdc++-v3/doc/xml/manual/test.xml @@ -767,7 +767,7 @@ cat 27_io/objects/char/3_xin.in | a.out be run for a specific standard (and not later standards) using an effective target like c++11_only. However, this means the test will be skipped by default (because the default mode is - gnu++14), and so will only run when + gnu++17), and so will only run when or is used explicitly. For tests that require a specific standard it is better to use a dg-options directive: @@ -783,13 +783,13 @@ cat 27_io/objects/char/3_xin.in | a.out Similarly, tests which depend on a newer standard than the default must use dg-options instead of (or in addition to) an effective target, so that they are not skipped by default. - For example, tests for C++17 features should use - // { dg-options "-std=gnu++17" } + For example, tests for C++20 features should use + // { dg-options "-std=gnu++20" } before any dg-do such as: - // { dg-do run "c++17" } + // { dg-do run { target c++20 } } The dg-options directive must come first, so that the -std flag has already been added to the options - before checking the c++17 target. + before checking the c++20 effective target.
Examples of Test Directives -- 2.41.0