From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 37FA2385E01B; Tue, 24 Mar 2020 22:29:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37FA2385E01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585088958; bh=4ittqnwWj6rt0wwuLBv7n483cmN5TXo6yhn1Rnq0RsE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c2gpbpJDNeCYygV04HfhLxHyDH4wKGfIp5dGjGbWlImGrRfLHB7+kkEmSQ0c2GL+m IKbTJUFFRE7A/j+sEdRh1D1qaZH/+yh8SK+c14EvL4Xs3ZAA7uUBUbIOnvQXe36dxP ZR29BVPbjmV2G2Ktn6MO+KXRXaQBBKaVQE1QRztM= From: "sandra at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/94029] [9 Regression] gcc crash in coverage.c:655 since r9-4216-g390e529e2b98983d Date: Tue, 24 Mar 2020 22:29:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sandra at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2020 22:29:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94029 --- Comment #18 from sandra at gcc dot gnu.org --- I'm seeing the missing gcov file on nios2-linux-gnu as well. Git revision 6e00d8dcf32ace6588a1a4843dfcc0e8b9f9d00f. I took another look at the testcase. I haven't used gcov for about a gazil= lion years, but... It says "{ dg-do compile }". Don't you have to run the testcase to collect= the data to run with gcov? And copy the .gcda file from the target to the host? Then, it is trying to run "gcov gcov-pr94029.c" instead of e.g. "nios2-elf-= gcov gcov-pr94029.c", and it's picking up some random gcov program installed on = the host system instead of the one for the target. Maybe this testcase should just be restricted to native targets?=