From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id EDCE63858D20 for ; Fri, 27 Jan 2023 01:54:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EDCE63858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from linux-libre.fsfla.org ([209.51.188.54] helo=free.home) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLDxC-0006DK-4o for gcc-patches@gcc.gnu.org; Thu, 26 Jan 2023 20:54:58 -0500 Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 30R1slMA285553 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 26 Jan 2023 22:54:47 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org Subject: [FYI] [docs] note that -g opts are implicitly negatable too Organization: Free thinker, not speaking for the GNU Project Errors-To: aoliva@lxoliva.fsfla.org Date: Thu, 26 Jan 2023 22:54:46 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,SPF_HELO_PASS,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: Back in 2017, I made -g* options implicitly negatable, without realizing there was documentation that required updating. Oops. Fixed, at last! Regstrapped on x86_64-linux-gnu. I'm installing this as obvious. for gcc/ChangeLog * doc/options.texi (option, RejectNegative): Mention that -g-started options are also implicitly negatable. --- gcc/doc/options.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index c6e73fd1818ed..f50063c97870b 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -161,7 +161,7 @@ the help text to use for @option{--help} (omitted if the second field contains the @code{Undocumented} property). @end enumerate -By default, all options beginning with ``f'', ``W'' or ``m'' are +By default, all options beginning with ``f'', ``g'', ``W'' or ``m'' are implicitly assumed to take a ``no-'' form. This form should not be listed separately. If an option beginning with one of these letters does not have a ``no-'' form, you can use the @code{RejectNegative} @@ -239,8 +239,8 @@ and should not be accepted by the driver. @item RejectNegative The option does not have a ``no-'' form. All options beginning with -``f'', ``W'' or ``m'' are assumed to have a ``no-'' form unless this -property is used. +``f'', ``g'', ``W'' or ``m'' are assumed to have a ``no-'' form unless +this property is used. @item Negative(@var{othername}) The option will turn off another option @var{othername}, which is -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about