From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C6F638582B6; Wed, 6 Mar 2024 09:16:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C6F638582B6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709716575; bh=klAa0qwrwKwFGp67EJuUKh2jVKffQW+d2f28aehwoRI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cF1Rc3jg5QxAs1dRyTXAs91mayUWXf/Nb16gAKjS6K06CvG9VC8DTgamgBj3z7Cdg QvKGoaITyPRPlEQvjy3liOZfMJyczu8TT4XqfkY4UMXfnj5sT/R56a3D720V93TWSF 5CbmB0CKMIzdhZXqi8acgCDN3TkJ8TkLvLjXYG0A= From: "hubicka at ucw dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/114241] False-positive -Wodr warning when using -flto and -fno-semantic-interposition Date: Wed, 06 Mar 2024 09:16:13 +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: 14.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at ucw dot cz 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: 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=3D114241 --- Comment #2 from Jan Hubicka --- This indeed looks like bug caused by fact that the class is keyed into one of the two units. Outputting translation unit names is unfortunately hard, since they are object files and often comming from .a archive where we know only offset, but no original file name or something. I had patch which passed through original filename attached to TRALSATION_UNIT_DECL, but it also had problems, i.e. printing relative filenames from wrong directory.=