Message ID | ccd68154-65bc-bd4b-be6b-cf71d00ee8e6@gmx.de |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp440096wrn; Wed, 14 Dec 2022 12:05:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7S7H/GuphJp2VpDVz1Gj+lmsPMkLR5uijL2jdAWtbsII8KuZXwiqo2mPgLHrNbZldZDTH0 X-Received: by 2002:a17:907:7da0:b0:7c1:80d7:55f2 with SMTP id oz32-20020a1709077da000b007c180d755f2mr15396407ejc.48.1671048325672; Wed, 14 Dec 2022 12:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671048325; cv=none; d=google.com; s=arc-20160816; b=uzqt8ALXAOw2U1p/njC/MiW+3jd9Kt3I1GXZWziSUShGT6JqJ/NxEjoYkavfidUrF1 wvDr9z1QrHLb+M6j5BODBXmVFh+1QevwiPpBIObbifgB3ByJ5wx+hBszMt6FFxIaowyU Ocr61zJiAkUfRCDI/oz3Y0rIWXYVtP8nuc1vvN5WqrZoth6MJqWK8OqiOqDNy+ZSZJ/f ylmu5eZ8aAiFlydq6vP8tl8cA1OtoGNoIw+7joW5Yct/3FdcwNNfzmvhytnXHjkYT8tu TnTAuwpZa0Wf9N4eWcD7ue3TL/i4k4hQSBdAnRWyH8GKQCwa2zO4kmxf/WbkoPm/42Q9 MrWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:ui-outboundreport :subject:to:content-language:user-agent:mime-version:date:message-id :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=QudOqcAR4HbVGry4WBfZf2Z8BE2mWp+Sb2tXH9qID+s=; b=I9ZDp/esPFni7H7u/X6LahhWwNmJfDpSqUi6tq8Kc3Bd54PO0RsDnm6LNoLvIcxFxR hYuPAKbIhbtg7gq8Bgogyf+GCBon6lHZ/IYDbmCPzGa0GJSiU/uVfPlb/w51QvvUwKjF MyxSaw4SeP8CH8Ob/ZGMSXzYQBHf5ZZ0NlyLmFEzVVt/BEaucOj0mK5aTTIrCNo5jlvT owi2W/+szTjOudjVwTXk6EPrVNmYTN1jEVvCw0XY8hwVDcZX0F7CKXk7GTnTu2I6Dge9 AhTpKDtbChYgXspziDFPAV4nXeCiI8uk/OE6YHkWGtyY2pxxWaJh9MaeQ1nHQVwiax0A vTMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=GMW+HsEs; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id vm7-20020a170907b68700b007c11fd18a86si10070560ejc.794.2022.12.14.12.05.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 12:05:25 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=GMW+HsEs; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8C547383B6FD for <ouuuleilei@gmail.com>; Wed, 14 Dec 2022 20:04:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C547383B6FD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671048273; bh=QudOqcAR4HbVGry4WBfZf2Z8BE2mWp+Sb2tXH9qID+s=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=GMW+HsEsmxFkBnS79Ur1r4POw8bjTvy07PN9qtYHL59yjG+dxd63BGMUCUfiNxgll HYkBGcAGBYh7SeVY5Mxiz0SGpf1dWByjxYYfC5JaTFk6c2+EvHz4cK8fHYUYwIc9SX BlZWKyqNwpVuhJQJ9k8TbYYE8NsBq2UV88OZ/4Mg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by sourceware.org (Postfix) with ESMTPS id F4153383D8C9 for <gcc-patches@gcc.gnu.org>; Wed, 14 Dec 2022 20:03:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F4153383D8C9 X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.30] ([109.193.125.230]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MZCbB-1pRs2148Qb-00VCHj for <gcc-patches@gcc.gnu.org>; Wed, 14 Dec 2022 21:03:09 +0100 Content-Type: multipart/mixed; boundary="------------4fZIDvSeXZbVb0lGPSUB0pwH" Message-ID: <ccd68154-65bc-bd4b-be6b-cf71d00ee8e6@gmx.de> Date: Wed, 14 Dec 2022 21:03:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Content-Language: de-DE To: gcc-patches@gcc.gnu.org Subject: [PATCH] gcov: annotate uncovered branches [PR107537] X-Provags-ID: V03:K1:RU1+Oaw04X5c2mvN5SV+1hKQ8wvPigSK73hf0ypxW45aBD7WPfK l+pgr61+tvG7nRbNiStx2R3IKa+Gq7VTZ8gRdhiWrifj43DjbUWy6U1LM/ZX3qvAy2BnaNF ZRtqj4eRMnbBi0jl1SK1OsrSRkqHMeLJC6uzTATe2/LrbhbfmjMZxA3UjXGgWjf4Nysqmwo +IHpxZwFDb1jI+gfPXhLw== UI-OutboundReport: notjunk:1;M01:P0:XET/7G6s3ZA=;v8Rs61CpQmfzhDKkZZd/jpLWaax nBQ0BZCMXLxIxyemvWdgUibqsuoL8Id1DOlpLIhBuTdsTdls0atM9xHjaXN5tL7TbZ65Vq+9y 92iIRaKct2qN2Khu3CdzaRlDyTINqNnqiOUjxaV0lwIoBGnW2a1QDwL+Pjg5/JnIN5l6otlqJ bghmUa8tPECMVOniN7r7LJgXppbgeJlfKIG9KmhuZDAVcF3QZMmm8gSGdt22MO9S0Yuw11sbm 4HrSWAvP0W9gg8mwIDtBKke2PQGhWk5yyqeXfQVhNzcl+D02G29p08aQbzXEoxrGgMnp+uedm LGpktY41jEYUgsedwpwXxtVpNBywgfUTXZarVvSkup7KFa6tpv6D5FN+33bHa0HAMyPdsnKJE 9uFYRcG9wqdmKDwEFRrQve/MV7dNqId0uy+Kr+41oiVC59b7nniCbAbyUigSlUNzY9UNObPvH ABPQfz8Tjq+SOf95O+iAXIShO4zaACB8kypUWjse/IeJuRgdhXF8Xj83XututTXoA77Abwge+ ry0EVCoXxRWyTaij8eJjZqzU22VGCFBVcz3asIlS9ZwZnzHH3pR1Zi1lCb11fb3UZr2K4+eXd LuFUeyZvHM3GNBVUe7swQs9nygJTAp//uwIKPH+Nfrlz1t4g1UP3B2qJDIz0AzRUBJkWObiRB NCiCEBnfaTyPrVdRy3eeuhxiSt4+tiqYvcMQk5vWCGKfNpUmB6siOuPpUbXt7R0AIcnjSbRs1 lXwzRD6ZWpdAZY304UBDKowYlSnZu9or0ff986K0KR8WmbuGoPcStnwoZU+W0EBZscRngSqxy 5C7CIM9RvO5TJDjYO+zFpvvneoIO5pCDwvLMY6vfVH5tpKPHryyHnsrzv/OlP7H/sBiKoXmB1 h0RYhdczrk23R9aRKvx7jTaXEDO/8pHHUx9MfDTI/kI9dxcBxwGvQKJumXDT4F4tPmNJgPP7L Pxe1Bg== X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: =?utf-8?q?Michael_F=C3=B6rderer_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Michael_F=C3=B6rderer?= <michael.foerderer@gmx.de> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752221169451334584?= X-GMAIL-MSGID: =?utf-8?q?1752221169451334584?= |
Series |
gcov: annotate uncovered branches [PR107537]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Michael Förderer
Dec. 14, 2022, 8:03 p.m. UTC
Dear all, this is a patch to print the gcov annotations (fallthrough or throw) als to uncovered branches. Best regards, Michael From b65cfc8a837cd9d1b6421978865210e59ba62e0e Mon Sep 17 00:00:00 2001 From: Spacetown <michael.foerderer@gmx.de> Date: Sun, 4 Dec 2022 21:03:34 +0100 Subject: [PATCH] gcov: annotate uncovered branches [PR107537] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc/ChangeLog: PR gcc/107537 * gcov.cc (output_branch_count): Add annotation '(fallthrough)' or '(throw)' also to uncovered branches. Signed-off-by: Michael Förderer <michael.foerderer@gmx.de> --- gcc/gcov.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On 12/14/22 21:03, Michael Förderer via Gcc-patches wrote: > Dear all, > > this is a patch to print the gcov annotations (fallthrough or throw) als > to uncovered branches. Hey. It's fine and I've just pushed the revision on your behalf: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=c263c3eba8953c341cd8ac2d0a5f2b8f38623016 Thanks for you contribution. Martin > > > Best regards, > > Michael
diff --git a/gcc/gcov.cc b/gcc/gcov.cc index 9cf1071166f..5314be8a887 100644 --- a/gcc/gcov.cc +++ b/gcc/gcov.cc @@ -2893,7 +2893,9 @@ output_branch_count (FILE *gcov_file, int ix, const arc_info *arc) arc->fall_through ? " (fallthrough)" : arc->is_throw ? " (throw)" : ""); else - fnotice (gcov_file, "branch %2d never executed", ix); + fnotice (gcov_file, "branch %2d never executed%s", ix, + arc->fall_through ? " (fallthrough)" + : arc->is_throw ? " (throw)" : ""); if (flag_verbose) fnotice (gcov_file, " (BB %d)", arc->dst->id);