From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6C5921382C5 for ; Mon, 22 Mar 2021 14:05:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A96CBE0882; Mon, 22 Mar 2021 14:05:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 83DA2E0882 for ; Mon, 22 Mar 2021 14:05:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A2447335DC1 for ; Mon, 22 Mar 2021 14:05:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3624C634 for ; Mon, 22 Mar 2021 14:05:09 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1616421868.48250a8c5ca66d2fea1da96cac93e9e541e9aeb2.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/lcov/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/lcov/files/lcov-1.13-gcc-8.patch X-VCS-Directories: dev-util/lcov/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 48250a8c5ca66d2fea1da96cac93e9e541e9aeb2 X-VCS-Branch: master Date: Mon, 22 Mar 2021 14:05:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 16bee08c-cd1d-435e-a45d-4377f8964546 X-Archives-Hash: 95a55649ac0b09806f99597e6b2ad340 commit: 48250a8c5ca66d2fea1da96cac93e9e541e9aeb2 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Sun Mar 21 12:39:58 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Mon Mar 22 14:04:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48250a8c dev-util/lcov: remove unused patch(es) Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/20033 Signed-off-by: Joonas Niilola gentoo.org> dev-util/lcov/files/lcov-1.13-gcc-8.patch | 91 ------------------------------- 1 file changed, 91 deletions(-) diff --git a/dev-util/lcov/files/lcov-1.13-gcc-8.patch b/dev-util/lcov/files/lcov-1.13-gcc-8.patch deleted file mode 100644 index b67ca411bda..00000000000 --- a/dev-util/lcov/files/lcov-1.13-gcc-8.patch +++ /dev/null @@ -1,91 +0,0 @@ -From a5dd9529f9232b8d901a4d6eb9ae54cae179e5b3 Mon Sep 17 00:00:00 2001 -From: Peter Oberparleiter -Date: Wed, 7 Mar 2018 14:18:55 +0100 -Subject: [PATCH] geninfo: Add gcc 8 support - -Fix errors and incorrect data when trying to collect coverage data -for programs compiled with gcc 8. - -Covers the following gcov-related changes in gcc: - -.gcov-file format: - - Line coverage data can appear multiple times for the same line - - Line coverage count can be suffixed by '*' to indicated unexecuted - basic blocks in that line - -.gcno-file format: - - new header field 'support unexecuted blocks flag' - - new function record fields 'column number', 'ending line number', - and 'compiler-generated entity flag' - -Signed-off-by: Peter Oberparleiter ---- - bin/geninfo | 20 ++++++++++++++++++++ - 1 file changed, 20 insertions(+) - -diff --git a/bin/geninfo b/bin/geninfo -index 8562560..ef6a818 100755 ---- a/bin/geninfo -+++ b/bin/geninfo -@@ -68,6 +68,7 @@ our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php"; - our $gcov_tool = "gcov"; - our $tool_name = basename($0); - -+our $GCOV_VERSION_8_0_0 = 0x80000; - our $GCOV_VERSION_4_7_0 = 0x40700; - our $GCOV_VERSION_3_4_0 = 0x30400; - our $GCOV_VERSION_3_3_0 = 0x30300; -@@ -1934,6 +1935,9 @@ sub read_gcov_file($) - { - my ($count, $line, $code) = ($1, $2, $3); - -+ # Skip instance-specific counts -+ next if ($line == $last_line); -+ - $last_line = $line; - $last_block = $UNNAMED_BLOCK; - # Check for exclusion markers -@@ -1963,6 +1967,9 @@ sub read_gcov_file($) - } - } - -+ # Strip unexecuted basic block marker -+ $count =~ s/\*$//; -+ - # :: - if ($line eq "0") - { -@@ -3537,6 +3544,10 @@ sub read_gcno_function_record(*$$$$$) - graph_expect("function name"); - $function = read_gcno_string($handle, $big_endian); - return undef if (!defined($function)); -+ if ($version >= $GCOV_VERSION_8_0_0) { -+ graph_skip($handle, 4, "compiler-generated entity flag") -+ or return undef; -+ } - # Read filename - graph_expect("filename"); - $filename = read_gcno_string($handle, $big_endian); -@@ -3544,6 +3555,11 @@ sub read_gcno_function_record(*$$$$$) - # Read first line number - $lineno = read_gcno_value($handle, $big_endian, "initial line number"); - return undef if (!defined($lineno)); -+ # Skip column and ending line number -+ if ($version >= $GCOV_VERSION_8_0_0) { -+ graph_skip($handle, 4, "column number") or return undef; -+ graph_skip($handle, 4, "ending line number") or return undef; -+ } - # Add to list - push(@{$bb->{$function}->{$filename}}, $lineno); - graph_add_order($fileorder, $function, $filename); -@@ -3631,6 +3647,10 @@ sub read_gcno($) - debug(sprintf("found version 0x%08x\n", $version)); - # Skip stamp - graph_skip(*HANDLE, 4, "file timestamp") or goto incomplete; -+ if ($version >= $GCOV_VERSION_8_0_0) { -+ graph_skip(*HANDLE, 4, "support unexecuted blocks flag") -+ or goto incomplete; -+ } - while (!eof(HANDLE)) { - my $next_pos; - my $curr_pos;