From 666a21a2993b36e8c10f2d0759cd7f68811663fb Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 30 Mar 2011 20:42:51 +0100 Subject: 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 --- gcc/optc-gen.awk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/optc-gen.awk') 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 == "") -- cgit v1.2.1