From d919140b83feaa44cf32f4e3e9c31ac78278ac27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Tue, 16 Oct 2012 15:38:58 +0000 Subject: re PR c/53063 (encode group options in the .opt files) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2012-10-16 Manuel López-Ibáñez 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 --- gcc/opts.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gcc/opts.c') diff --git a/gcc/opts.c b/gcc/opts.c index aea0cfc..98bbd30 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -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; -- cgit v1.1