From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5AA783858CDB; Fri, 3 Nov 2023 18:52:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5AA783858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699037557; bh=GMx9AEnJdaZD7dbIw/8iNiK6eBMTYSNA1OuV2sSz8NA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tt4UXM90mg5QxkjDqePgt59dcszVGVo9eYS8EYKSEPM/caZpObcoOSHrodVi7c03e JoWjwPIH18qavcu3gEtm+QE8p1hgt58qz4LclIsWWEoZOrmQWBEey1Ca0PCynKl5cJ X5QxJzzPo0yaS90De/PKAy+z4P/FmxX+LJn3Srec= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/112372] GCC omits function location in DWARF at higher optimisation levels Date: Fri, 03 Nov 2023 18:52:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D112372 --- Comment #3 from Andrew Pinski --- (In reply to Giuliano Procida from comment #2) > The symbols are not aliased (which is what I thought might have happened > with very aggressive optimisations). If they had been aliased, it would be > much harder to give the symbols types. They can't alias for language reasons that is `&y !=3D &x` (and `&x !=3D &z= `) has to be true. Anyways as mentioned in PR 65797, a thunk is being created and going wrong.=20 Yes maybe ICF should not touch empty functions ... But I doubt that was your original testcase.=