From patchwork Fri Mar 17 11:54:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 740276 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3vl3gK52VYz9ryj for ; Fri, 17 Mar 2017 22:55:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="XX7fCZ36"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=IjoAGS7knztUAbhuS rvzViAgVkoVwh98YI+J78xJezLMEPjZp9toJ5CgW9d2JkUfX91Ivdp1/+OWdJv79 /BUQL47fBIJG5eYcKiS6o8H4sfkeG2Ux9ASMeBqNJNtaGAHswjIlIA83UW989yoi Q6Fdus/F8P75vRQ1dUWdunGy/w= 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 :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=Y0+e9Z/lQwW9M4xmG1NC3T7 G+2E=; b=XX7fCZ36cWVeL5uPKjfB9EHmpJMT4BkYktjm0wVEt0hC3JGND8BtxwP CsGGjw89ctaAPBWOR6n+V7Lybbl96t+sr0vsVbQkLj7YRWt3S83M23qC1iAeuF3P J+z1YEn7KRJ3ZTWnHpeQqKyr0c1IE1i136neyKgWjl7BsplfuTDE= Received: (qmail 122659 invoked by alias); 17 Mar 2017 11:55:00 -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 122640 invoked by uid 89); 17 Mar 2017 11:54:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:1313 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Mar 2017 11:54:56 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1coqT8-0000nx-K2 from Tom_deVries@mentor.com ; Fri, 17 Mar 2017 04:54:54 -0700 Received: from [127.0.0.1] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 17 Mar 2017 11:54:50 +0000 Subject: Re: [PATCH] Install gcov-dump. To: =?UTF-8?Q?Martin_Li=c5=a1ka?= , GCC Patches References: CC: Richard Biener From: Tom de Vries Message-ID: <9623065d-0720-cf7f-cb9f-dccb71901b10@mentor.com> Date: Fri, 17 Mar 2017 12:54:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) On 14/03/17 13:30, Martin Liška wrote: > Tested on my local machine that's properly installed. > > Ready for trunk? I'm guessing there's an invariant that installed tools mention a bug url with --help. Using attached patch, we get: ... $ gcov-dump --help Usage: gcov-dump [OPTION] ... gcovfiles Print coverage file contents -h, --help Print this help -v, --version Print version number -l, --long Dump record contents too -p, --positions Dump record positions -w, --working-sets Dump working set computed from summary For bug reporting instructions, please see: . ... OK for trunk, 5 and 6 branch? Thanks, - Tom Print bug url for gcov-dump --help 2017-03-17 Tom de Vries * gcov-dump.c (print_usage): Print bug_report_url. --- gcc/gcov-dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c index 3311772..91c4866 100644 --- a/gcc/gcov-dump.c +++ b/gcc/gcov-dump.c @@ -136,6 +136,8 @@ print_usage (void) printf (" -l, --long Dump record contents too\n"); printf (" -p, --positions Dump record positions\n"); printf (" -w, --working-sets Dump working set computed from summary\n"); + printf ("\nFor bug reporting instructions, please see:\n%s.\n", + bug_report_url); } static void