From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 50DF33858D3C; Fri, 27 Oct 2023 12:23:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50DF33858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698409384; bh=wE+ELKICI+GCbRqqEPjCVamGh9CUkFtvkeRt8m5Erac=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OteTjCzpgERVtLiZ5x9w8iRrmXHPp71GX9kMDarNt80hCXLIujNtxkCfCln9Z8BHP V9RP45JzeSYRId+YDhNDquRj7MSxRidfsR1Eq1UFnFnuqX0dOtEYAQJqs95ttZW3+b 5QPDqCm6bMmQpFIupBgDT3+6nMcJwcc/IYyFQyBI= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/111958] [11/12/13/14 Regression] Line number debugging information indicates wrong file Date: Fri, 27 Oct 2023 12:23:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: needs-bisection, needs-reduction, wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords component priority cc 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=3D111958 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-reduction Component|debug |ipa Priority|P3 |P2 CC| |hubicka at gcc dot gnu.org, | |marxin at gcc dot gnu.org --- Comment #3 from Richard Biener --- The issue goes away when using -fno-ipa-icf - we have # 2 "/usr/include/sys/unistd.h" 2 3 4 # 9 "getgid.c" 2 # 14 "getgid.c" gid_t _POSIX_types_Gid =3D 0; gid_t getgid (void) { return _POSIX_types_Gid; } gid_t getegid (void) { return _POSIX_types_Gid; } which we first ICF and then inline back. So it looks like when "materializ= ing" the alias clone for getegid we get a wrong location (or the location for the alias clone is broken / not initialized?) Honza?=