From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4124C3858295; Wed, 19 Oct 2022 10:32:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4124C3858295 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666175549; bh=cN6w47/abu8WqyXHsbFmvl14uYjVHlgvctgeuwdVSfQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Wza1uR9c4j7qoiu7TvFgFR4EDaPYi0hp7dmx0lz02He3YqwUuAdmEFYAiGEIlcSaU bCrGI80UoMcb24CvgUG5tOxF8kEki6mvAinkxmFI3Jh8k6d0aCFcuCtbJ/O0615mT8 Sl2+eSu224QeYZYMPvrUxhtZYuMqJuPziQUy3SnM= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/105988] [10/11/12/13 Regression] ICE in linemap_ordinary_map_lookup, at libcpp/line-map.cc:1064 since r6-4873-gebedc9a3414d8422 Date: Wed, 19 Oct 2022 10:32:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org 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: 10.5 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=3D105988 --- Comment #7 from Richard Biener --- The rtx_insn in question is (note 13 14 17 5 [bb 5] NOTE_INSN_BASIC_BLOCK) but INSN_LOCATION here is the NOTE kind!? Still it says INSN_HAS_LOCATION and the XUINT access RTL_CHECK2 isn't flagging this. What's the correct check to use here in /* Dump file:line from INSN's location info to dump_file. */ static void dump_insn_location (rtx_insn *insn) { if (dump_file && INSN_HAS_LOCATION (insn)) { expanded_location xloc =3D insn_location (insn); fprintf (dump_file, " %s:%i", xloc.file, xloc.line); } } ?=