On 3/2/20 11:52 PM, Joseph Myers wrote:
On Mon, 2 Mar 2020, Martin Liška wrote:

+version of GCC@.  If an option is supported by all languages, one needs
+to use @var{common} qualifier instead.

"common" is literal text, so it should be @samp{common} not @var{common},
and the existing documentation here describes it as a "class" with other
things such as "undocumented" or "joined" being "qualifiers"


Thank you for the comments. I've got an updated version of the patch.

Martin
>From 4fc81d25275a98493eaa9494e77dae9691fdbd20 Mon Sep 17 00:00:00 2001
From: Martin Liska <mli...@suse.cz>
Date: Mon, 2 Mar 2020 14:25:05 +0100
Subject: [PATCH] Clear --help=language and --help=common interaction.

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..98102020f55 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 select @samp{common} class.
 
 @item @samp{common}
 Display the options that are common to all languages.
-- 
2.25.1

Reply via email to