From patchwork Mon Aug 3 20:08:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 1340468 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=hPWOdK+b; dkim-atps=neutral Received: from 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BL88W57dmz9sTM for ; Tue, 4 Aug 2020 06:08:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 40CFC3851C1F; Mon, 3 Aug 2020 20:08:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by sourceware.org (Postfix) with ESMTPS id AD0743857C42 for ; Mon, 3 Aug 2020 20:08:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AD0743857C42 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nathanmsidwell@gmail.com Received: by mail-qk1-x735.google.com with SMTP id l23so36414661qkk.0 for ; Mon, 03 Aug 2020 13:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=G9k7tDo8LE6gOIzgzmAqrI6MNWBGwwVq4YKV1xfeBiA=; b=hPWOdK+b2BbI+d6gcjDDqs5Sg7GPTEd3rRjtiyR2jRSoUJD14VeRyB3ttoP8y0Vd+I eO+OJ+no/zdnHlRsR27bz+zSbs39xLun5S+x3JMK55b5ipNbjt2ok6c+hUXmWEEs6jld Ji21iXekLUihniSf4M3rgBQEGqIdAjYr3V0rFSm/qnnKl+toGYNI+WLfYRb1Iu4apj7Y kfTjdMzagnx3VLS/iyXsnnt/wE5+NtXxFdAAgRBH6XY1wUz5MTDNT3vKM0lvYG+VEgFN WTiEuAS4tucoQ8cGadSbUudrBK9/ggBuKo3aV73RQiHVhL50kG1IP57LOlCPmSxA8gTZ DIiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language; bh=G9k7tDo8LE6gOIzgzmAqrI6MNWBGwwVq4YKV1xfeBiA=; b=BEQcWgDqYcV5GTd6AMOktdRtJnmQWalSz/vDby/3t6V6qmKG4XEoUj+QHVPjRZs5I/ miv1X6hr9anMoBmm3YcJf9UmKLiFrgoZI762snKADPg2jqHnCkK3oGg9hLn8Lp4Jmgoy jQhHq0EJbN3i0nYlrrbzP9B/w+HPmRdax77hesOfYUrD30kEDOxXH8TS3otw/H3/vK3v z8tZCZvlCzxg1eRMRD9rBP/KtYesrGrT9x83G06D8+yAlQe3CebjuXaXRtdH0KDrM6BM vetypGI+2zeeurmoNiqAZm4ILhGJmEEnXZmdH1qSd8tqRiuYPLtKeDs0I7iNHjMQFSXO JiiA== X-Gm-Message-State: AOAM531yFLrF8gAUrjnCBwi2iSL2XP+8G++S+dHe47EleORSTVRzEQeN HTZqbzmyenwdyXD/xT+QVXY= X-Google-Smtp-Source: ABdhPJzbfNEiYcZUV/d5fTYgDg35Ab/e/eMle5qTZbXIgdoA2A4hMac/TxfxsiCttNdAgCWdOnRJEg== X-Received: by 2002:a05:620a:62f:: with SMTP id 15mr17211728qkv.483.1596485299686; Mon, 03 Aug 2020 13:08:19 -0700 (PDT) Received: from ?IPv6:2620:10d:c0a8:1102:3181:78b7:7ca1:dcc9? ([2620:10d:c091:480::1:b5cd]) by smtp.googlemail.com with ESMTPSA id p4sm19896106qkj.135.2020.08.03.13.08.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Aug 2020 13:08:18 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: docs: refer to c++20 Message-ID: Date: Mon, 3 Aug 2020 16:08:17 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" I noticed a bunch of references to c++2a. fixed thusly gcc/ * doc/invoke.texi: Refer to c++20 nathan diff --git i/gcc/doc/invoke.texi w/gcc/doc/invoke.texi index eb73f306051..4aa492452ae 100644 --- i/gcc/doc/invoke.texi +++ w/gcc/doc/invoke.texi @@ -2833,7 +2833,7 @@ This flag is enabled by default for @option{-std=c++17}. @itemx -fno-char8_t @opindex fchar8_t @opindex fno-char8_t -Enable support for @code{char8_t} as adopted for C++2a. This includes +Enable support for @code{char8_t} as adopted for C++20. This includes the addition of a new @code{char8_t} fundamental type, changes to the types of UTF-8 string and character literals, new signatures for user-defined literals, associated standard library updates, and new @@ -2899,10 +2899,10 @@ exhaustion is signalled by throwing @code{std::bad_alloc}. See also @itemx -fconcepts-ts @opindex fconcepts @opindex fconcepts-ts -Below @option{-std=c++2a}, @option{-fconcepts} enables support for the +Below @option{-std=c++20}, @option{-fconcepts} enables support for the C++ Extensions for Concepts Technical Specification, ISO 19217 (2015). -With @option{-std=c++2a} and above, Concepts are part of the language +With @option{-std=c++20} and above, Concepts are part of the language standard, so @option{-fconcepts} defaults to on. But the standard specification of Concepts differs significantly from the TS, so some constructs that were allowed in the TS but didn't make it into the @@ -3286,7 +3286,7 @@ about ABI tags. @opindex Wcomma-subscript @opindex Wno-comma-subscript Warn about uses of a comma expression within a subscripting expression. -This usage was deprecated in C++2a. However, a comma expression wrapped +This usage was deprecated in C++20. However, a comma expression wrapped in @code{( )} is not deprecated. Example: @smallexample @@ -3298,7 +3298,7 @@ void f(int *a, int b, int c) @{ @end group @end smallexample -Enabled by default with @option{-std=c++2a}. +Enabled by default with @option{-std=c++20}. @item -Wctor-dtor-privacy @r{(C++ and Objective-C++ only)} @opindex Wctor-dtor-privacy @@ -3819,7 +3819,7 @@ non-class type, @code{volatile}-qualified function return type, @code{volatile}-qualified parameter type, and structured bindings of a @code{volatile}-qualified type. This usage was deprecated in C++20. -Enabled by default with @option{-std=c++2a}. +Enabled by default with @option{-std=c++20}. @item -Wzero-as-null-pointer-constant @r{(C++ and Objective-C++ only)} @opindex Wzero-as-null-pointer-constant @@ -6273,7 +6273,7 @@ This is the warning level of @option{-Wshift-overflow} and is enabled by default in C99 and C++11 modes (and newer). This warning level does not warn about left-shifting 1 into the sign bit. (However, in C, such an overflow is still rejected in contexts where an integer constant expression -is required.) No warning is emitted in C++2A mode (and newer), as signed left +is required.) No warning is emitted in C++20 mode (and newer), as signed left shifts always wrap. @item -Wshift-overflow=2