From patchwork Wed Aug 17 17:24:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 584 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:38f:b0:2d5:3c95:9e21 with SMTP id 15csp2790394pxh; Wed, 17 Aug 2022 10:24:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR6dh/2kEc9o/P+NH1H212FP4SHxXRehyuyClnYZvw8MEoazGFCxeR9K7IH2/vj6/VpOS1iu X-Received: by 2002:a17:907:10d1:b0:730:7c7d:3869 with SMTP id rv17-20020a17090710d100b007307c7d3869mr16660156ejb.356.1660757096713; Wed, 17 Aug 2022 10:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660757096; cv=none; d=google.com; s=arc-20160816; b=cRRLHUcrTiQBWHgrQlKluVMD01p260H2VrlqE7igGSA6mLiVmrKM5NsxV1ieC9fKMI ylTcY39U2vvuAf0MMRjuGjMv+RIW1OHWelpCQWmzmTXFPb4bqyS7ToFGhs3ig1hbH1G6 wN0pmJbz9bk5OC06VXxJB74BnsVzhBALM8AO7cD4apdke5/vy5IZhSIMu+L+Ut0S/tKY e7/k3pUnTIwMsaqWIaRJANEs5Dh/r5aR0EmNW6lJ6G7N/kCwD04EtTnVr4KL5GpTll+p c/a+vFmT4ttYFvJ5HCXq2ai0ceRGGe2b82ury8a4PR4Cq0C8Z0Rfw5akB3FBkVDtaxzm 601g== 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:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=P89qZafwSoRlFJlhjuvw6RCzC8xcJkHggAVoR4GO6so=; b=pobrofu1tHZ+Geg2Jh3yiDrMMbdwfEdz4wHvCd1qFGVGmKJx8MbRFxSRIxfHlD5AdR bvYFyRiDmPZqhQkigAQDcSSC2I6H651+wBHaUG6gYQ4G4XGTBWJqE7iFrtemVLkl42Ss MggxqdCXwmjHj8oM1x8Yc+xM0+Sl1GmpuvqvbFMS1XuKBRiMEL7lyYNg4yHP5nZWoWuk zZtsfFVjB+rsoFJ5ggUBPWy6gTnaZll4OHoGa62x9xoO9+f0zdPuWa9+LPCbavtUo61j GsetQuiMc6PkXE6lDJxNBKjcl6VYSyNVyAd+WisMELuxVG+HS+ECho62mWLkTIch0YT6 o7jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="YeC/W/Ep"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id v1-20020aa7cd41000000b00445ce1e10b2si2536682edw.301.2022.08.17.10.24.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 10:24:56 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="YeC/W/Ep"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 50CEA3858D39 for ; Wed, 17 Aug 2022 17:24:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50CEA3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1660757095; bh=P89qZafwSoRlFJlhjuvw6RCzC8xcJkHggAVoR4GO6so=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=YeC/W/Ep0E4Fm7LXehLuc882ebQPPcNKdlctnEX5tlil3z+VcEdJ8f6tDBVKjs3Jf Rjh3/2THBJ+SYnJf6FFISly6KFvfrJeC4g+bsWXCz/nMZdj6mETZRfL6CEnJvzdJud ZPBIuEO+dabjrxvC1t/NJYM6y3YGfWY0IQrn2ijY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by sourceware.org (Postfix) with ESMTPS id 20FAD3858288 for ; Wed, 17 Aug 2022 17:24:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 20FAD3858288 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4M7FHX3v0pz9sSG; Wed, 17 Aug 2022 19:24:08 +0200 (CEST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] wwwdocs: Add D language changes and caveats to gcc-12/changes.html Date: Wed, 17 Aug 2022 19:24:04 +0200 Message-Id: <20220817172404.1025025-1-ibuclaw@gdcproject.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4M7FHX3v0pz9sSG X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Iain Buclaw via Gcc-patches From: Iain Buclaw Reply-To: Iain Buclaw Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741430033344485411?= X-GMAIL-MSGID: =?utf-8?q?1741430033344485411?= Hi, This patch belatedly adds the new features and changes to the D front-end during the GCC 12 development cycle, as well as a bullet in the caveat section for D's new bootstrapping requirements. If nothing stands out being really wrong, I'll go ahead and commit it by end of week. OK? Regards, Iain. --- htdocs/gcc-12/changes.html | 78 +++++++++++++++++++++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html index ef957204..5bbad9bf 100644 --- a/htdocs/gcc-12/changes.html +++ b/htdocs/gcc-12/changes.html @@ -72,6 +72,17 @@ You may also want to check out our pool arguments. Those configurations had been broken for some time. +
  • + D: + Building and bootstrapping GDC, the D compiler, now requires a working GDC + compiler (GCC version 9.1 or later) and D runtime library, libphobos, as + the D front end is written in D. On some targets, libphobos isn't enabled + by default, but compiles and works if --enable-libphobos is + used. Other targets may require a more recent minimum version of GCC to + bootstrap. Specifics are documented for affected targets in the + manual for + installing GCC. +
  • Fortran: OpenMP code using the omp_lib.h include file can no longer be @@ -509,7 +520,72 @@ function Multiply (S1, S2 : Sign) return Sign is
  • - +

    D

    +
      +
    • New features: +
        +
      • Support for the D programming language has been updated to version + 2.100.1 of the language and run-time library. Full changelog for this + release and previous releases can be found on the + dlang.org + website. +
      • +
      • On supported targets, the __traits(compiles) expression + can now be used to determine whether a target-specific built-in is + available without error during CTFE + (PR101127). +
      • +
      • Partial support for directly importing C99 sources into a D + compilation (ImportC) + has been added to the language. A notable missing feature is support + for preprocessing C imports, which can be worked around by + preprocessing all C sources used for importing ahead of time. +
      • +
      +
    • +
    • New language options: +
        +
      • -fcheck=, enables or disables the code generation of + specific run-time contract checks. +
      • +
      • -fcheckaction=, controls the run-time behaviour on an + assert, array bounds check, or final switch contract failure. The + default is -fcheckaction=throw. +
      • +
      • -fdump-c++-spec=, dumps all compiled + extern(C++) declarations as C++ code to a file. + The supplimentary option -fdump-c++-spec-verbose turns on + emission of comments for ignored declaration in the generated C++ spec. +
      • +
      • -fextern-std=, controls which C++ standard + extern(C++) declarations are compiled to be compatible + with. The default is -fextern-std=c++17. +
      • +
      • -fpreview=, added to enable upcoming D language features + in the compiler. +
      • +
      • -frevert=, added to revert D language changes to support + older D codebases that need more time to transition. +
      • +
      • -fsave-mixins=, saves mixins expanded at compile-time to + a file. +
      • +
      +
    • +
    • Deprecated and removed features: +
        +
      • The -Wtemplates compiler switch has been removed, as it + had been superceded by -ftransition=templates, which more + accurately reports on which templates have been instantiated. +
      • +
      • The -ftransition=dip25 and + -ftransition=dip1000 compiler switches have been renamed + to -fpreview=dip25 and -fprefix=dip1000. +
      • +
      +
    • +
    +

    Fortran