Hi.

For situations like -Q --help=warning,c one can't see a warning
that is common. For that one needs to use -Q --help=warning,common.
My patch explains the behavior in documentation.

Ready to be installed?
Thanks,
Martin

gcc/ChangeLog:

2020-03-02  Martin Liska  <mli...@suse.cz>

        PR c/93886
        PR c/93887
        * doc/invoke.texi: Clarify --help=language and --help=common
        interaction.
---
 gcc/doc/invoke.texi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 4f88fe68999..e43d954283f 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -1665,7 +1665,8 @@ option.
 @item @var{language}
 Display the options supported for @var{language}, where
 @var{language} is the name of one of the languages supported in this
-version of GCC@.
+version of GCC@.  If an option is supported by all languages, one needs
+to use @var{common} qualifier instead.
 
 @item @samp{common}
 Display the options that are common to all languages.

Reply via email to