diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-29 00:04:48 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-29 00:04:48 +0000 |
commit | 1eaf1dbefe219bcd5f1b87d32863a7f92bda154d (patch) | |
tree | 817e0bd186b25372de8bb48878056440c3f75bfb /gcc/doc/options.texi | |
parent | 85ac1c40b2529d4be5e3e9572778ab8d06e00f76 (diff) | |
download | gcc-1eaf1dbefe219bcd5f1b87d32863a7f92bda154d.tar.gz |
2014-11-29 Tobias Burnus <burnus@net-b.de>
Manuel López-Ibáñez <manu@gcc.gnu.org>
gcc/
* opt-functions.awk (lang_enabled_by): Support || for
enabled-by.
* optc-gen.awk: Ditto.
* doc/options.texi (LangEnabledBy, EnabledBy): Document the
|| syntax.
gcc/fortran/
* lang.opt (Wtabs): Combine duplicated item into a single
one using || for LangEnabledBy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218175 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/options.texi')
-rw-r--r-- | gcc/doc/options.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index bcffdf86aaa..1ead0972134 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -459,15 +459,18 @@ value of @option{-fmath-errno} for languages that do not use @code{errno}. @item EnabledBy(@var{opt}) +@itemx EnabledBy(@var{opt} || @var{opt2}) @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 +@option{-@var{opt}}; multiple options can be given, separated by +@code{||}. The third form using @code{&&} 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}) When compiling for the given language, the option is set to the value -of @option{-@var{opt}}, if not explicitly set. In the second form, if +of @option{-@var{opt}}, if not explicitly set. @var{opt} can be also a list +of @code{||} separated options. In the second form, if @var{opt} is used in the positive form then @var{posarg} is considered to be passed to the option, and if @var{opt} is used in the negative form then @var{negarg} is considered to be passed to the option. It |