From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F0E4C3857831; Thu, 2 Dec 2021 12:56:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F0E4C3857831 From: "nils.smeds at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/103438] Updated documentation for gcc Optimization command line options (sec 3.11) Date: Thu, 02 Dec 2021 12:56:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.2.1 X-Bugzilla-Keywords: documentation, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: nils.smeds at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2021 12:56:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103438 --- Comment #10 from Nils Smeds --- Is there a benefit to augment the -Q output as follows? [tooladmin@login2302 build]$ diff -r -p a b diff -r -p a/gcc/opts.c b/gcc/opts.c *** a/gcc/opts.c Wed Jul 28 08:55:07 2021 --- b/gcc/opts.c Thu Dec 2 13:50:34 2021 *************** print_filtered_help (unsigned int includ *** 1531,1536 **** --- 1531,1538 ---- strcat (new_help, _("[enabled]")); else if (ena =3D=3D 0) strcat (new_help, _("[disabled]")); + else + strcat (new_help, _("[deferred]")) } } ------ This should lead to the following diff: - -fdelete-null-pointer-checks [enabled] + -fdelete-null-pointer-checks [deferred] @@ -332 +332 @@ - -fleading-underscore [enabled] + -fleading-underscore [deferred] @@ -393 +393 @@ - -fprefetch-loop-arrays [enabled] + -fprefetch-loop-arrays [deferred] @@ -502 +502 @@ - -fstrict-volatile-bitfields [enabled] + -fstrict-volatile-bitfields [deferred] @@ -533 +533 @@ - -ftree-loop-if-convert [enabled] + -ftree-loop-if-convert [deferred] Indicating to the user that he/she should dig further if they are intereste= d to find out how/if the option is in effect.=