From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gdcproject.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gdcproject.org 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gdcproject.org; s=MBO0001; t=1669844249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qUwmkwbgxTCts1X0ByByNGeNRr+sEeTD6zRYnfPfO3Q=; b=Eiica16CXA2toV8s8yk9gZpb1FQRXMv7nmB+ahx2FDH7DJ782JLDi51iliLpwWY9M9J3LB ySKEfrUyzmQSyMeBLq8Rqr0dpl8bsdqp5Wisq4MEtOUoFhOWy36XIf735Moe495QvJ949w wBf2YDe8i0vWdjFofhkbU6OtPNQCpuIa6U5keWiXo3q/J1xrrqL7wLey4i/rmU4Z9PLZlg G4MqJ5gGlPGFneKLvk3MgFvX289t81rOPKIq/KvUPiMB1kw8kyUjgtbM4hu+88xcFWv79X mvvw4KSzKwiTiprYjFJRfgDBXdp/88Xx2O0WwPBfccIuBidmsK+GmKRmjhZLDg== From: Iain Buclaw 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 Content-Transfer-Encoding: 8bit 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 List-Id: 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 -- 2.37.2