From 1090f26fd84c35ec887a79ee2df012ebcce0a116 Mon Sep 17 00:00:00 2001 From: manu Date: Tue, 16 Oct 2012 15:38:58 +0000 Subject: =?UTF-8?q?2012-10-16=20=20Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez=20?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192503 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/doc/options.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/doc/options.texi') diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index 8011502f9f1..0a8e1cd49b5 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -460,7 +460,10 @@ value of @option{-fmath-errno} for languages that do not use @code{errno}. @item EnabledBy(@var{opt}) -If not explicitly set, the option is set to the value of @option{-@var{opt}}. +@itemx EnabledBy(@var{opt} && @var{opt2}) +If not explicitly set, the option is set to the value of +@option{-@var{opt}}. The second form specifies that the option is +only set if both @var{opt} and @var{opt2} are set. @item LangEnabledBy(@var{language}, @var{opt}) @itemx LangEnabledBy(@var{language}, @var{opt}, @var{posarg}, @var{negarg}) -- cgit v1.2.1