From patchwork Fri Mar 25 23:13:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 52382 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0AFFD388E80E for ; Fri, 25 Mar 2022 23:13:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 1F7E23858D37 for ; Fri, 25 Mar 2022 23:13:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1F7E23858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.90,211,1643702400"; d="scan'208";a="73612146" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 25 Mar 2022 15:13:21 -0800 IronPort-SDR: WJiG2WsWmoueE0AHR1B4jRbhce3qN25n6Vo+yzvSo+YV5E2TqkEWp+FqQZ2p89qkA+gdUo8w+C cx7DJ/NL9ob0QjwSZ/bknT+zZZrWH5bropkvcW+ZECN+fnAUdOJmde3ibM4iZiFz3LQDBZTvXr P/rSscq+jn7WuALhpedlw3wpR/QTGL8hmAmSaMblpkTJRyOkQ7YW87wANeTRxtAKg8NA0fxzGP eu+/xjXoD1FpolMMgTkjQ6zpEJfSMiSRHyL2oj4bA4zjmmWOzUsewUdoa9TfFt17YwQtgRafF2 9eY= Date: Fri, 25 Mar 2022 23:13:16 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: [committed] wwwdocs: Add release notes for new C2X features in GCC 12 Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3119.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Committed. diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html index 9cff81b9..689feeba 100644 --- a/htdocs/gcc-12/changes.html +++ b/htdocs/gcc-12/changes.html @@ -193,6 +193,27 @@ a work-in-progress.

+

C

+
    +
  • Some new features from the upcoming C2X revision of the ISO C + standard are supported with -std=c2x + and -std=gnu2x. Some of these features are also + supported as extensions when compiling for older language versions. + In addition to the features listed, some features previously + supported as extensions and now added to the C standard are enabled + by default in C2X mode and not diagnosed with -std=c2x + -Wpedantic. +
      +
    • Digit separators (as in C++) are supported for C2X.
    • +
    • The #elifdef and #elifndef + preprocessing directives are now supported.
    • +
    • The printf and scanf format checking + with -Wformat now supports the %b format + specified by C2X for binary integers, and the %B + format recommended by C2X for printf. +
  • +
+

C++

  • Several C++23 features have been implemented: