diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-16 15:38:58 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-16 15:38:58 +0000 |
commit | 1090f26fd84c35ec887a79ee2df012ebcce0a116 (patch) | |
tree | a6523b7f9bf2d5a90aa29d3a35230edb359537cf /gcc/doc/options.texi | |
parent | 77b27208e4842b5adb8d007d52ca6bbaa03f0e6d (diff) | |
download | gcc-1090f26fd84c35ec887a79ee2df012ebcce0a116.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192503 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/options.texi')
-rw-r--r-- | gcc/doc/options.texi | 5 |
1 files changed, 4 insertions, 1 deletions
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}) |