public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] docs: fix Var documentation for .opt files
@ 2022-12-28  9:18 Martin Liška
  2023-01-04  9:57 ` Gerald Pfeifer
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Liška @ 2022-12-28  9:18 UTC (permalink / raw)
  To: gcc-patches; +Cc: Gerald Pfeifer, Andrew Pinski

The Var documentation was somehow wrongly split into 2 pieces.

	PR middle-end/107966

gcc/ChangeLog:

	* doc/options.texi: Fix Var documentation in internal manual.
---
 gcc/doc/options.texi | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi
index 17ba923890e..39a2d1a0d43 100644
--- a/gcc/doc/options.texi
+++ b/gcc/doc/options.texi
@@ -340,19 +340,6 @@ The state of this option should be stored in variable @var{var}
 (actually a macro for @code{global_options.x_@var{var}}).
 The way that the state is stored depends on the type of option:
 
-@item WarnRemoved
-The option is removed and every usage of such option will
-result in a warning.  We use it option backward compatibility.
-
-@item Var(@var{var}, @var{set})
-The option controls an integer variable @var{var} and is active when
-@var{var} equals @var{set}.  The option parser will set @var{var} to
-@var{set} when the positive form of the option is used and @code{!@var{set}}
-when the ``no-'' form is used.
-
-@var{var} is declared in the same way as for the single-argument form
-described above.
-
 @itemize @bullet
 @item
 If the option uses the @code{Mask} or @code{InverseMask} properties,
@@ -390,11 +377,24 @@ and wasn't given.
 The option-processing script will usually zero-initialize @var{var}.
 You can modify this behavior using @code{Init}.
 
+@item Var(@var{var}, @var{set})
+The option controls an integer variable @var{var} and is active when
+@var{var} equals @var{set}.  The option parser will set @var{var} to
+@var{set} when the positive form of the option is used and @code{!@var{set}}
+when the ``no-'' form is used.
+
+@var{var} is declared in the same way as for the single-argument form
+described above.
+
 @item Init(@var{value})
 The variable specified by the @code{Var} property should be statically
 initialized to @var{value}.  If more than one option using the same
 variable specifies @code{Init}, all must specify the same initializer.
 
+@item WarnRemoved
+The option is removed and every usage of such option will
+result in a warning.  We use it option backward compatibility.
+
 @item Mask(@var{name})
 The option is associated with a bit in the @code{target_flags}
 variable (@pxref{Run-time Target}) and is active when that bit is set.
-- 
2.39.0


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

* Re: [PATCH] docs: fix Var documentation for .opt files
  2022-12-28  9:18 [PATCH] docs: fix Var documentation for .opt files Martin Liška
@ 2023-01-04  9:57 ` Gerald Pfeifer
  0 siblings, 0 replies; 2+ messages in thread
From: Gerald Pfeifer @ 2023-01-04  9:57 UTC (permalink / raw)
  To: Martin Liška; +Cc: gcc-patches, Andrew Pinski

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

On Wed, 28 Dec 2022, Martin Liška wrote:
> The Var documentation was somehow wrongly split into 2 pieces.
> 
> 	PR middle-end/107966

And on top of that those two bits you are merging were not 
sorted in alphabetically - which your patch also addresses. :-)

> gcc/ChangeLog:
> 
> 	* doc/options.texi: Fix Var documentation in internal manual.

Looks good to me; thank you!

Gerald

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

end of thread, other threads:[~2023-01-04  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-28  9:18 [PATCH] docs: fix Var documentation for .opt files Martin Liška
2023-01-04  9:57 ` Gerald Pfeifer

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).