summaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-28 20:52:12 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-28 20:52:12 +0000
commitc5e839cb5ef14a22e8078adb0ede837f47d750a0 (patch)
treeaeacd772adaa4ebc4fcc69669e083225f5e6479e /gcc/doc
parent14321893db58a975cf737cf18631ce7d0ab28cdf (diff)
downloadgcc-c5e839cb5ef14a22e8078adb0ede837f47d750a0.tar.gz
* optc-gen.awk (END): Make sure no variable is defined more
than once. * opth-gen.awk (END): Allocate bits on a per-variable basis. Allow for bitfield variables other than target_flags. * doc/options.text (Mask): Document that you may specify a variable other than target_flags. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98940 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/options.texi22
1 files changed, 14 insertions, 8 deletions
diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi
index ccc6c91039a..d5d1984de52 100644
--- a/gcc/doc/options.texi
+++ b/gcc/doc/options.texi
@@ -154,14 +154,20 @@ The variable specified by the @code{Var} property should be statically
initialized to @var{value}.
@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.
-
-The options-processing script will automatically allocate a unique
-bit for the option and set the macro @code{MASK_@var{name}} to the
-appropriate bitmask. It will also declare a @code{TARGET_@var{name}}
-macro that has the value 1 when the option is active and 0 otherwise.
-You can disable this behavior using @code{MaskExists}.
+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.
+You may also specify @code{Var} to select a variable other than
+@code{target_flags}.
+
+The options-processing script will automatically allocate a unique bit
+for the option. If the option is attached to @samp{target_flags},
+the script will set the macro @code{MASK_@var{name}} to the appropriate
+bitmask. It will also declare a @code{TARGET_@var{name}} macro that has
+the value 1 when the option is active and 0 otherwise. If you use @code{Var}
+to attach the option to a different variable, the associated macros are
+called @code{OPTION_MASK_@var{name}} and @code{OPTION_@var{name}} respectively.
+
+You can disable automatic bit alloction using @code{MaskExists}.
@item InverseMask(@var{othername})
@itemx InverseMask(@var{othername}, @var{thisname})