From patchwork Wed Nov 30 21:37:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 28020 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1162207wrr; Wed, 30 Nov 2022 13:38:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf72pbeFyGXr+h1zvQdBdFI6EffSdLAllEW3UeadRKHYiuroBf0DTcng34TqJ5JKRBGpRd6/ X-Received: by 2002:aa7:dd15:0:b0:46b:c12:29e5 with SMTP id i21-20020aa7dd15000000b0046b0c1229e5mr17466321edv.236.1669844297958; Wed, 30 Nov 2022 13:38:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669844297; cv=none; d=google.com; s=arc-20160816; b=FkD6hlUaw6KQz2AJtRw2KlpT2Yf/8va4M22gIQSapTlWDNHQwemJxxiwYaT7O/Q5SA 8OQlZxtrQ3Jycg8a0CDFgdi5XpRYlSwPw31oGE9ImzhWpDacPLEgLDeCVsI38GsSdyBX MdPwPxpB6aYFRfYJtMjQ7ximI/PVKO1C2qqecUtq43ts66gJHMvemcHTbX10w6Q9Bf27 orGEpnHIJobeA2zE683CVmCsFW36rqDnDSIvYkxnnJwPmOE52R3qo9xsoqsiRiZ5fHBN Vjpybn2fGuPyIrf+8016wFIfUl+xGCu4crdlG5vIorzwQXZEQ2QTtuoFuY+8SSxD622I UJkA== 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:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=qUwmkwbgxTCts1X0ByByNGeNRr+sEeTD6zRYnfPfO3Q=; b=wZMl/j1fm1Hw6FQ/1O4fAtVmTAxiG1VB+w7v0rxY8s6sjXsUjJ6mjEjQfhM2NQ7Fgc 1RWdKJF4lY5YpUnefcBbIbJmU/efeanH6CxbeWdVDJDOUoG6YphFHbmphQZKQYiQXeV2 /G0CeKh9ME/JlJO5f56Wz2TzoCYrZ+EESNHPBirPgLubXt7ERG0+b7GeRW1ilb3//oJ/ 8oqO/kPAB5rHWHwzO+P0MmXYEKY0nQ6JIllZWYYtwfLZ6vDASWpef2jQijEWWwaFWgTF X4GdTu0jZiel/Vnb78l/5F9LHAR1TZKT7LNMCMVcHxSS8xu6I+v1ttwwc9aWZ43HrLjl 8qIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=XlhouKjY; 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 sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u1-20020a1709064ac100b00779e6c93108si1565282ejt.598.2022.11.30.13.38.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 13:38:17 -0800 (PST) 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=XlhouKjY; 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 ED93A385B180 for ; Wed, 30 Nov 2022 21:38:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED93A385B180 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669844297; bh=qUwmkwbgxTCts1X0ByByNGeNRr+sEeTD6zRYnfPfO3Q=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=XlhouKjYGRyVZHB0JpQJwdN7u4JNjfPuFf/Q4hoLS3xi4x9zyyDULXegu7ob9XGOA +79T+gX3XA2ikT3ePW/OpZVfUNRg9vkzfNsS9sk8bNQCb5E3jjAXhru/JFjPU6wo35 DY05MLDgRYkiR/5YNOwSRuOfG65L1FJhrkYi3ArA= 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 E87BB3858D1E for ; Wed, 30 Nov 2022 21:37:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E87BB3858D1E Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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 4NMsxP498Lz9sYf; Wed, 30 Nov 2022 22:37:29 +0100 (CET) To: gcc-patches@gcc.gnu.org Cc: Iain Buclaw Subject: [committed] d: Synchronize gdc documentation with options in d/lang.opt Date: Wed, 30 Nov 2022 22:37:27 +0100 Message-Id: <20221130213727.545475-1-ibuclaw@gdcproject.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, 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.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?1750958654841990346?= X-GMAIL-MSGID: =?utf-8?q?1750958654841990346?= Hi, This patch synchronizes the documentation between lang.opt and gdc.texi. Tested by building and checking pdf/info/man/html pages, and committed to mainline. Regards, Iain. --- gcc/d/ChangeLog: * gdc.texi: Update gdc option documentation. * lang.opt (frevert=intpromote): Correct documentation. --- gcc/d/gdc.texi | 38 +++++++++++++++++--------------------- gcc/d/lang.opt | 2 +- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/gcc/d/gdc.texi b/gcc/d/gdc.texi index d3bf75ccfa9..6ceb2cc67aa 100644 --- a/gcc/d/gdc.texi +++ b/gcc/d/gdc.texi @@ -240,9 +240,6 @@ while @option{-fdebug=} enables @code{debug} code that are identified by any of the following values: @table @samp -@item level -Sets the debug level to @var{level}, any @code{debug} code <= @var{level} -is compiled into the program. @item ident Turns on compilation of any @code{debug} code identified by @var{ident}. @end table @@ -325,6 +322,8 @@ values are supported: @table @samp @item all Turns on all upcoming D language features. +@item bitfields +Implements bit-fields in D. @item dip1000 Implements @uref{https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md} (Scoped pointers). @@ -353,9 +352,6 @@ rvalues. @item inclusiveincontracts Implements @code{in} contracts of overridden methods to be a superset of parent contract. -@item intpromote -Implements C-style integral promotion for unary @code{+}, @code{-} and @code{~} -expressions. @item nosharedaccess Turns off and disallows all access to shared memory objects. @item rvaluerefparam @@ -387,13 +383,17 @@ are supported: @table @samp @item all Turns off all revertable D language features. +@item dip1000 +Reverts @uref{https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md} +(Scoped pointers). @item dip25 Reverts @uref{https://github.com/dlang/DIPs/blob/master/DIPs/archive/DIP25.md} (Sealed references). @item dtorfields Turns off generation for destructing fields of partially constructed objects. -@item markdown -Turns off Markdown replacements in Ddoc comments. +@item intpromote +Turns off C-style integral promotion for unary @code{+}, @code{-} and @code{~} +expressions. @end table @item -fno-rtti @@ -423,9 +423,6 @@ Turns on compilation of conditional @code{version} code into the program identified by any of the following values: @table @samp -@item level -Sets the version level to @var{level}, any @code{version} code >= @var{level} -is compiled into the program. @item ident Turns on compilation of @code{version} code identified by @var{ident}. @end table @@ -646,8 +643,10 @@ and provides source for debuggers to show when requested. @node Warnings @section Warnings -@cindex options to control warnings -@cindex warning messages +@cindex options, warnings +@cindex options, errors +@cindex warnings, suppressing +@cindex messages, error @cindex messages, warning @cindex suppressing warnings @@ -678,6 +677,11 @@ whose bound can be larger than @var{n} bytes. @option{-Walloca-larger-than} warning and is equivalent to @option{-Walloca-larger-than=@var{SIZE_MAX}} or larger. +@item -Wno-builtin-declaration-mismatch +@cindex @option{-Wno-builtin-declaration-mismatch} +@cindex @option{-Wbuiltin-declaration-mismatch} +Warn if a built-in function is declared with an incompatible signature. + @item -Wcast-result @cindex @option{-Wcast-result} @cindex @option{-Wno-cast-result} @@ -704,12 +708,6 @@ List all error messages from speculative compiles, such as messages as warnings, and these messages therefore never become errors when the @option{-Werror} option is also used. -@item -Wtemplates -@cindex @option{-Wtemplates} -@cindex @option{-Wno-templates} -Warn when a template instantiation is encountered. Some coding -rules disallow templates, and this may be used to enforce that rule. - @item -Wunknown-pragmas @cindex @option{-Wunknown-pragmas} @cindex @option{-Wno-unknown-pragmas} @@ -764,8 +762,6 @@ List all hidden GC allocations. List statistics on template instantiations. @item tls List all variables going into thread local storage. -@item vmarkdown -List instances of Markdown replacements in Ddoc. @end table @end table diff --git a/gcc/d/lang.opt b/gcc/d/lang.opt index 15ab725a2dd..b039c766aa9 100644 --- a/gcc/d/lang.opt +++ b/gcc/d/lang.opt @@ -422,7 +422,7 @@ Don't destruct fields of partially constructed objects. frevert=intpromote D RejectNegative -Use C-style integral promotion for unary '+', '-' and '~'. +Don't use C-style integral promotion for unary '+', '-' and '~'. frtti D