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/optc-gen.awk | |
parent | 0fa4e351537fe6bf253e13e3c3e7b122cbe9468c (diff) | |
download | gcc-666a21a2993b36e8c10f2d0759cd7f68811663fb.tar.gz |
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/optc-gen.awk')
-rw-r--r-- | gcc/optc-gen.awk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk index 502b23bf6e0..24def356218 100644 --- a/gcc/optc-gen.awk +++ b/gcc/optc-gen.awk @@ -362,6 +362,11 @@ for (i = 0; i < n_opts; i++) { print "#error Alias with single argument " \ "allowing negative form" } + if (alias_posarg != "" \ + && flag_set_p("NegativeAlias", flags[i])) { + print "#error Alias with multiple arguments " \ + "used with NegativeAlias" + } alias_opt = opt_enum(alias_opt) if (alias_posarg == "") |