From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE4853858D3C; Fri, 19 Nov 2021 10:18:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE4853858D3C From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/103241] Odd 0 length entries in location lists Date: Fri, 19 Nov 2021 10:18:11 +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: 11.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: WAITING 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 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: Fri, 19 Nov 2021 10:18:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103241 --- Comment #14 from Alexandre Oliva --- Hi, Will, Jakub, Martin, There's nothing particularly unusual about apparently empty ranges, especia= lly when views are enabled, since the very point of location views is to enable multiple states to be distinguished at the same PC. It is a little odd that an additional location entry gets emitted for prot = at function entry. I suppose inspection of gimple dumps will show some SSA assignment apparently setting some prot version, and that we end up outputt= ing a new entry for it. The difference between the two locations, one without = and the other with DW_OP_piece, suggests that some internal state change was perceived between one view and the other; it might be something about (do-nothing) promotions between the argument bindings for the prototype and= the body. We might be able to get rid of the restatement of the binding with some more effort.=