diff options
author | DJ Delorie <dj@redhat.com> | 2005-04-28 16:52:12 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2005-04-28 16:52:12 -0400 |
commit | f7f655c70668e1d6b8e7d438fb8c94d927bcd3ef (patch) | |
tree | aeacd772adaa4ebc4fcc69669e083225f5e6479e /gcc/doc/options.texi | |
parent | b4ad897d570a81c1c1e92470b66915244bcc7ec9 (diff) | |
download | gcc-f7f655c70668e1d6b8e7d438fb8c94d927bcd3ef.tar.gz |
optc-gen.awk (END): Make sure no variable is defined more than once.
* 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.
From-SVN: r98940
Diffstat (limited to 'gcc/doc/options.texi')
-rw-r--r-- | gcc/doc/options.texi | 22 |
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}) |