diff options
author | Joseph Myers <joseph@codesourcery.com> | 2011-03-30 20:42:51 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2011-03-30 20:42:51 +0100 |
commit | 666a21a2993b36e8c10f2d0759cd7f68811663fb (patch) | |
tree | 8d690cb4ef7d285476b7a0854fa4a67ca23779ba /gcc/doc/options.texi | |
parent | 0fa4e351537fe6bf253e13e3c3e7b122cbe9468c (diff) | |
download | gcc-666a21a2993b36e8c10f2d0759cd7f68811663fb.zip gcc-666a21a2993b36e8c10f2d0759cd7f68811663fb.tar.gz gcc-666a21a2993b36e8c10f2d0759cd7f68811663fb.tar.bz2 |
options.texi (NegativeAlias): Document.
* doc/options.texi (NegativeAlias): Document.
(Alias): Mention NegativeAlias.
* opt-functions.awk: Handle NegativeAlias.
* optc-gen.awk: Disallow NegativeAlias with multiple Alias
arguments.
* opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
* opts.h (CL_NEGATIVE_ALIAS): Define.
* config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
(rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
OPT_mspe_.
* config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
Alias entries.
* config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
mno-spe and mno-isel instead of mspe=no and -misel=no.
From-SVN: r171745
Diffstat (limited to 'gcc/doc/options.texi')
-rw-r--r-- | gcc/doc/options.texi | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index e39d79e..608afa2 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -364,7 +364,8 @@ for later processing. @item Alias(@var{opt}) @itemx Alias(@var{opt}, @var{arg}) @itemx Alias(@var{opt}, @var{posarg}, @var{negarg}) -The option is an alias for @option{-@var{opt}}. In the first form, +The option is an alias for @option{-@var{opt}} (or the negative form +of that option, depending on @code{NegativeAlias}). In the first form, any argument passed to the alias is considered to be passed to @option{-@var{opt}}, and @option{-@var{opt}} is considered to be negated if the alias is used in negated form. In the second form, the @@ -387,6 +388,13 @@ not need to handle it and no @samp{OPT_} enumeration value is defined for it; only the canonical form of the option will be seen in those places. +@item NegativeAlias +For an option marked with @code{Alias(@var{opt})}, the option is +considered to be an alias for the positive form of @option{-@var{opt}} +if negated and for the negative form of @option{-@var{opt}} if not +negated. @code{NegativeAlias} may not be used with the forms of +@code{Alias} taking more than one argument. + @item Ignore This option is ignored apart from printing any warning specified using @code{Warn}. The option will not be seen by specs and no @samp{OPT_} |