From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D952E3865C2A; Mon, 19 Jul 2021 13:22:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D952E3865C2A From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/101473] LTO makes debug info depend on toolchain path Date: Mon, 19 Jul 2021 13:22:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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: Mon, 19 Jul 2021 13:22:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101473 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #5 from Richard Biener --- Confirmed. The difference is --- t2.g 2021-07-19 15:17:18.856725031 +0200 +++ t1.g 2021-07-19 15:17:20.632748927 +0200 @@ -1387,20 +1387,20 @@ The Directory Table (offset 0x167, lines 5, columns 1): Entry Name 0 (indirect line string, offset: 0x0): /tmp - 1 (indirect line string, offset: 0x16): /tmp/install_alternate_two/usr/local/lib64/gcc/x86_64-pc-linux-gnu/12.0.0/i= nclude - 2 (indirect line string, offset: 0x82): /usr/include/bits/types - 3 (indirect line string, offset: 0x70): /usr/include/bits - 4 (indirect line string, offset: 0x9a): /usr/include + 1 (indirect line string, offset: 0x55): /tmp/install_one/usr/local/lib64/gcc/x86_64-pc-linux-gnu/12.0.0/include + 2 (indirect line string, offset: 0x3d): /usr/include/bits/types + 3 (indirect line string, offset: 0x2b): /usr/include/bits + 4 (indirect line string, offset: 0x16): /usr/include where stddef.h is included from. I wonder how we can avoid this difference without making the DWARF "invalid" though. stddef.h is provided by the compiler. Btw, this doesn't neeed -flto to trigger it's visible with plain -g as well, it just doesn't end up in differences in the symbol table without -flto but the debug info still differs.=