public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] doc/options.texi: Fix the discription of 'Negative'.
@ 2021-04-28  9:24 Geng Qi
  2021-04-28 16:00 ` Martin Sebor
  2021-05-01  3:55 ` Jim Wilson
  0 siblings, 2 replies; 3+ messages in thread
From: Geng Qi @ 2021-04-28  9:24 UTC (permalink / raw)
  To: gcc-patches, hongjiu.lu; +Cc: Geng Qi

gcc/ChangeLog:
	* doc/options.texi (Negative): Fix the discription so that it matches
	the code implementation of prune_options().
---
 gcc/doc/options.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi
index 2057629..37386ca 100644
--- a/gcc/doc/options.texi
+++ b/gcc/doc/options.texi
@@ -223,8 +223,8 @@ propagate through the @code{Negative} property of the option to be
 turned off.  The driver will prune options, removing those that are
 turned off by some later option.  This pruning is not done for options
 with @code{Joined} or @code{JoinedOrMissing} properties, unless the
-options have either @code{RejectNegative} property or the @code{Negative}
-property mentions an option other than itself.
+options have both @code{RejectNegative} property and the @code{Negative}
+property mentions itself.
 
 As a consequence, if you have a group of mutually-exclusive
 options, their @code{Negative} properties should form a circular chain.
-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] doc/options.texi: Fix the discription of 'Negative'.
  2021-04-28  9:24 [PATCH] doc/options.texi: Fix the discription of 'Negative' Geng Qi
@ 2021-04-28 16:00 ` Martin Sebor
  2021-05-01  3:55 ` Jim Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Sebor @ 2021-04-28 16:00 UTC (permalink / raw)
  To: Geng Qi, gcc-patches, hongjiu.lu

On 4/28/21 3:24 AM, Geng Qi via Gcc-patches wrote:
> gcc/ChangeLog:
> 	* doc/options.texi (Negative): Fix the discription so that it matches
> 	the code implementation of prune_options().
> ---
>   gcc/doc/options.texi | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi
> index 2057629..37386ca 100644
> --- a/gcc/doc/options.texi
> +++ b/gcc/doc/options.texi
> @@ -223,8 +223,8 @@ propagate through the @code{Negative} property of the option to be
>   turned off.  The driver will prune options, removing those that are
>   turned off by some later option.  This pruning is not done for options
>   with @code{Joined} or @code{JoinedOrMissing} properties, unless the
> -options have either @code{RejectNegative} property or the @code{Negative}
> -property mentions an option other than itself.
> +options have both @code{RejectNegative} property and the @code{Negative}
> +property mentions itself.

I don't know how it works so I can't comment on the correctness
of the change but while making an adjustment to the text can you
please also add the missing article before RejectNegative?

   ...have both <ins>the</ins> @code{RejectNegative} property and
   the @code{Negative} > +property mentions itself.

Thanks
Martin

>   
>   As a consequence, if you have a group of mutually-exclusive
>   options, their @code{Negative} properties should form a circular chain.
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] doc/options.texi: Fix the discription of 'Negative'.
  2021-04-28  9:24 [PATCH] doc/options.texi: Fix the discription of 'Negative' Geng Qi
  2021-04-28 16:00 ` Martin Sebor
@ 2021-05-01  3:55 ` Jim Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Jim Wilson @ 2021-05-01  3:55 UTC (permalink / raw)
  To: Geng Qi; +Cc: GCC Patches, hongjiu.lu

On Wed, Apr 28, 2021 at 2:25 AM Geng Qi via Gcc-patches <
gcc-patches@gcc.gnu.org> wrote:

> gcc/ChangeLog:
>         * doc/options.texi (Negative): Fix the discription so that it
> matches
>         the code implementation of prune_options().
>

This matches my testing as mentioned in another thread, so I am approving
this and committed it, with the missing article added as Martin mentioned.

Jim

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-01  3:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28  9:24 [PATCH] doc/options.texi: Fix the discription of 'Negative' Geng Qi
2021-04-28 16:00 ` Martin Sebor
2021-05-01  3:55 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).