From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63259385843A; Thu, 18 Nov 2021 10:24:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63259385843A From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/103241] Odd 0 length entries in location lists Date: Thu, 18 Nov 2021 10:24:18 +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: marxin 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: bug_status everconfirmed cf_reconfirmed_on 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: Thu, 18 Nov 2021 10:24:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103241 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 Last reconfirmed| |2021-11-18 --- Comment #8 from Martin Li=C5=A1ka --- I tried reducing that to: $ cat set_memory.i enum { CPA_PROTECT, CPA_DETECT } check_conflict(int warnlvl, long) { warnlvl || conflicts(); } long static_protections_start; static_protections(warnlvl) { check_conflict(warnlvl, static_protections_start); lookup_address_in_pgd(0, static_protections_start); } __change_page_attr_numpages; __change_page_attr() { __change_page_attr_numpages =3D 2; static_protections(CPA_DETECT); } $ gcc set_memory.i -w -g -O2 -c && llvm-dwarfdump -c --name=3D"static_protections" set_memory.o | grep "0x0000000000000055, 0x0000000000000055" [0x0000000000000055, 0x0000000000000055): DW_OP_reg4 RSI) Is it an example of the error you reported?=