diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-10-16 15:38:58 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-10-16 15:38:58 +0000 |
commit | d919140b83feaa44cf32f4e3e9c31ac78278ac27 (patch) | |
tree | a6523b7f9bf2d5a90aa29d3a35230edb359537cf /gcc/opts.c | |
parent | 65d4f2cd2a488125a6522eeb6c9df5f890c7086f (diff) | |
download | gcc-d919140b83feaa44cf32f4e3e9c31ac78278ac27.zip gcc-d919140b83feaa44cf32f4e3e9c31ac78278ac27.tar.gz gcc-d919140b83feaa44cf32f4e3e9c31ac78278ac27.tar.bz2 |
re PR c/53063 (encode group options in the .opt files)
2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
PR c/40989
* doc/options.texi (EnabledBy): Document new form.
* optc-gen.awk: Handle new form of EnabledBy.
* common.opt (Wunused-but-set-parameter): Use EnabledBy.
(Wunused-parameter): Likewise.
* opts.c (finish_options): Do not handle them explicitly.
* opt-functions.awk (search_var_name): New.
From-SVN: r192503
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -830,15 +830,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, opts->x_param_values, opts_set->x_param_values); /* This replaces set_Wunused. */ - /* Wunused-parameter is enabled if both -Wunused -Wextra are enabled. */ - if (opts->x_warn_unused_parameter == -1) - opts->x_warn_unused_parameter = (opts->x_warn_unused - && opts->x_extra_warnings); - /* Wunused-but-set-parameter is enabled if both -Wunused -Wextra are - enabled. */ - if (opts->x_warn_unused_but_set_parameter == -1) - opts->x_warn_unused_but_set_parameter = (opts->x_warn_unused - && opts->x_extra_warnings); /* Wunused-local-typedefs is enabled by -Wunused or -Wall. */ if (opts->x_warn_unused_local_typedefs == -1) opts->x_warn_unused_local_typedefs = opts->x_warn_unused; |