diff options
author | Martin Liska <mliska@suse.cz> | 2019-09-10 18:15:16 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-09-10 16:15:16 +0000 |
commit | 68a57628f482c75003abfc77b5c2a3be029668fa (patch) | |
tree | 84c59df749dae34dd7bb119424fe9cd116182766 /gcc/opts-common.c | |
parent | ef8febf85853e289951278ab5cb7ba6f4e3d2cd1 (diff) |
Rename Deprecated to WarnRemoved in *.opt files.
2019-09-10 Martin Liska <mliska@suse.cz>
* common.opt: Use newly added WarnRemoved.
* config/aarch64/aarch64.opt: Likewise.
* config/arm/arm.opt: Likewise.
* config/i386/i386.opt: Likewise.
* config/ia64/ia64.opt: Likewise.
* config/rs6000/rs6000.opt: Likewise.
* doc/options.texi: Document WarnRemoved properly.
* dwarf2out.c (gen_producer_string): Handle renamed
OPT_SPECIAL_warn_removed.
* lto-opts.c (lto_write_options): Likewise.
* lto-wrapper.c (merge_and_complain): Likewise.
* opts-common.c (decode_cmdline_option): Likewise.
(prune_options): Likewise.
(read_cmdline_option): Likewise.
(control_warning_option): Likewise.
* opts.c (print_filtered_help): Likewise.
* optc-gen.awk: Parse for WarnRemoved and make usage
of Deprecated an error.
* opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
2019-09-10 Martin Liska <mliska@suse.cz>
* c.opt: Use newly added WarnRemoved.
From-SVN: r275592
Diffstat (limited to 'gcc/opts-common.c')
-rw-r--r-- | gcc/opts-common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/opts-common.c b/gcc/opts-common.c index 200951b5010..b4ec1bd25ac 100644 --- a/gcc/opts-common.c +++ b/gcc/opts-common.c @@ -667,7 +667,7 @@ decode_cmdline_option (const char **argv, unsigned int lang_mask, size_t new_opt_index = option->alias_target; if (new_opt_index == OPT_SPECIAL_ignore - || new_opt_index == OPT_SPECIAL_deprecated) + || new_opt_index == OPT_SPECIAL_warn_removed) { gcc_assert (option->alias_arg == NULL); gcc_assert (option->neg_alias_arg == NULL); @@ -840,7 +840,7 @@ decode_cmdline_option (const char **argv, unsigned int lang_mask, decoded->canonical_option[i] = NULL; } if (opt_index != OPT_SPECIAL_unknown && opt_index != OPT_SPECIAL_ignore - && opt_index != OPT_SPECIAL_deprecated) + && opt_index != OPT_SPECIAL_warn_removed) { generate_canonical_option (opt_index, arg, value, decoded); if (separate_args > 1) @@ -1018,7 +1018,7 @@ prune_options (struct cl_decoded_option **decoded_options, { case OPT_SPECIAL_unknown: case OPT_SPECIAL_ignore: - case OPT_SPECIAL_deprecated: + case OPT_SPECIAL_warn_removed: case OPT_SPECIAL_program_name: case OPT_SPECIAL_input_file: goto keep; @@ -1348,7 +1348,7 @@ read_cmdline_option (struct gcc_options *opts, if (decoded->opt_index == OPT_SPECIAL_ignore) return; - if (decoded->opt_index == OPT_SPECIAL_deprecated) + if (decoded->opt_index == OPT_SPECIAL_warn_removed) { /* Warn only about positive ignored options. */ if (decoded->value) @@ -1653,7 +1653,7 @@ control_warning_option (unsigned int opt_index, int kind, const char *arg, arg = cl_options[opt_index].alias_arg; opt_index = cl_options[opt_index].alias_target; } - if (opt_index == OPT_SPECIAL_ignore || opt_index == OPT_SPECIAL_deprecated) + if (opt_index == OPT_SPECIAL_ignore || opt_index == OPT_SPECIAL_warn_removed) return; if (dc) diagnostic_classify_diagnostic (dc, opt_index, (diagnostic_t) kind, loc); |