From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A407E383D834; Tue, 17 Aug 2021 16:52:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A407E383D834 From: "xaizek at posteo dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/89961] When "--intermediate-format" is used "--preserve-paths"/"--hash-filenames" is ignored Date: Tue, 17 Aug 2021 16:52:48 +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: 8.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xaizek at posteo dot net X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 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, 17 Aug 2021 16:52:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D89961 --- Comment #18 from xaizek --- > The following 2 files should be created (right now b.gcov.json.gz and > a.gcov.json.gz are created) >=20 > b.gcov.json.gz > src/a.gcov.json.gz >=20 > and so -p and -x does not play any role here. Now you'll need to search for output recursively, but this will fix the iss= ue, although I'm not sure what will happen if you run `gcov` outside of build t= ree (I remember the docs, but isn't intermediate format is more usable because = it doesn't need sources and so the restriction on where to run `gcov` doesn't apply?). I still don't understand why not just make `-p` and `-x` work? The options are there anyway. By the way, I worked around the issue in May by not invoking `gcov` with two files that are named identically. It works even with GCC 8 for me (although not in one call), but people will continue to use `-p` and `-x` and get surpris= ing results.=