aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-12-28 10:16:58 +0100
committerMartin Liska <mliska@suse.cz>2023-01-06 13:05:26 +0100
commit17176326de45cc7de4f8cedf4414b40df0df39bb (patch)
tree5e9b355072d2f5a822daa1071ddb777326b7ac7b /gcc/doc
parentb9479ddc7a28fb672ca67304a67d66524d8200a4 (diff)
downloadgcc-17176326de45cc7de4f8cedf4414b40df0df39bb.zip
gcc-17176326de45cc7de4f8cedf4414b40df0df39bb.tar.gz
gcc-17176326de45cc7de4f8cedf4414b40df0df39bb.tar.bz2
docs: fix Var documentation for .opt files
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.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/options.texi26
1 files changed, 13 insertions, 13 deletions
diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi
index 17ba923..39a2d1a 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.