From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D3CB3858421; Thu, 19 Jan 2023 13:21:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D3CB3858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674134496; bh=wEA+j9oxNymvDpHcY17/40sR4ojouESqZFPgyxHRZN8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=v9Zq8or/KKrrVwvNCGL2B9/YtWBLRwJSj0uzwYKB66kpXY7BeTPPjmuMGM8OqFq2C XorVTmvdBozWftCpXFfRoSRXE7g83LO10gfEVI4hlp8QYV9emCunJyiseK4w2Xw6wp n3eR4UwdyLahU17EF9A3QW038gLqFzFp3rBhprSs= From: "richard.purdie at linuxfoundation dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/108464] [13 Regression] Broken -fdebug-prefix-map since r13-3599 Date: Thu, 19 Jan 2023 13:21:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: richard.purdie at linuxfoundation dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108464 --- Comment #1 from Richard Purdie --- I can see why that would change behaviour with the patch :(. It is a tough dilemma since without the patch, files might have prefixes removed some of the time but not all the time, depending on whether they we= re accessed via a symlink (or similar) or not. It was effectively impossible to remap some prefix values meaning in some cases output files couldn't be bui= ld deterministically. One possible way to fix this issue might be to call realpath on DW_AT_comp_= dir so that we're always working on canonicalized paths? I'm not sure if that w= ould be acceptable or not, the challenge right now is that we're making comparis= ons against things which aren't always definitive.=