Commit 77b10485 by Richard Sandiford Committed by Richard Sandiford

options.texi (Negative): Explicitly mention that the Negative chain must be circular.

gcc/
	* doc/options.texi (Negative): Explicitly mention that the
	Negative chain must be circular.

From-SVN: r172419
parent 61e46a7d
2011-04-14 Richard Sandiford <rdsandiford@googlemail.com>
* doc/options.texi (Negative): Explicitly mention that the
Negative chain must be circular.
2011-04-14 Nathan Froyd <froydnj@codesourcery.com> 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
* function.h (block_chainon): Declare. * function.h (block_chainon): Declare.
......
...@@ -222,6 +222,13 @@ the option name with the leading ``-'' removed. This chain action will ...@@ -222,6 +222,13 @@ the option name with the leading ``-'' removed. This chain action will
propagate through the @code{Negative} property of the option to be propagate through the @code{Negative} property of the option to be
turned off. turned off.
As a consequence, if you have a group of mutually-exclusive
options, their @code{Negative} properties should form a circular chain.
For example, if options @option{-@var{a}}, @option{-@var{b}} and
@option{-@var{c}} are mutually exclusive, their respective @code{Negative}
properties should be @samp{Negative(@var{b})}, @samp{Negative(@var{c})}
and @samp{Negative(@var{a})}.
@item Joined @item Joined
@itemx Separate @itemx Separate
The option takes a mandatory argument. @code{Joined} indicates The option takes a mandatory argument. @code{Joined} indicates
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment