From patchwork Mon Mar 2 13:28:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 1247630 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-520449-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=EqLI0Zhl; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48WLZK13M4z9sPR for ; Tue, 3 Mar 2020 00:28:38 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; q=dns; s= default; b=d5GGXSoph9eTUCVMh97PxwYQ9f6KcrDf6sn6qbHGXF1mNyEEdbjHZ 3ZsAdb8KO+89kSpwCNsb9jh8fULZJTkU0EHwFKY98cHX++7NLiVwGOZoSXypdtvK R1ANy5a+l8L9oqTbJPxnX10btA92WZlm87YNiO1kJRpOEkEWuJruBY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; s= default; bh=5l6b3kuYAGZtlzjPm6yuvZJCrsM=; b=EqLI0ZhlOV5yDBs6fb9j OzeidTlul++fEDYr1dE5OKEh1LEp7CXkRl/cBwiIunEF1i9Z2xhend1Lixu5+LbD fwI/W/c54wX1ySg7dKnqvOlJAgZrpY3nHZaV0bwZZdA8jlrlTB+G+BzPgZ4Q/5kV 4smGeqk0Gm4IC4zqTW1X98U= Received: (qmail 76953 invoked by alias); 2 Mar 2020 13:28:31 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 76945 invoked by uid 89); 2 Mar 2020 13:28:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=gcc@, situations, interaction, @var X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Mar 2020 13:28:30 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 03AEBB119 for ; Mon, 2 Mar 2020 13:28:28 +0000 (UTC) From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] Clear --help=language and --help=common interaction. To: gcc-patches@gcc.gnu.org Message-ID: <80ba9b7d-2125-a1ff-a5a8-c86a18d3f2dc@suse.cz> Date: Mon, 2 Mar 2020 14:28:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 X-IsSubscribed: yes 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 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.