From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B5D53833E85; Wed, 14 Dec 2022 08:35:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B5D53833E85 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671006930; bh=fQRL7qeXXSXR0Mtj9po0lJ85vU0CVbDnDj/89eQiYOU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vavluyh+S9RZdB1l/LP8yOMqCiRTJPtZhibYnb4ghgtdnj0Ankhq2neV3YsWfDdqY N/fQOLEtO8CaX/blz4M0MqtjI4pOEAJfJSOUNbN00cglJo5RBxSFc3pZl/flPE2oSo ReMN0gEPkBB3wmUDBv72vWYSqV3iBaPAXx77z9L8= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/108086] internal compiler error: in set_accesses, at rtl-ssa/internals.inl:449 Date: Wed, 14 Dec 2022 08:35:21 +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: 12.2.0 X-Bugzilla-Keywords: compile-time-hog, needs-reduction 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on cc bug_status everconfirmed 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=3D108086 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-12-14 CC| |rsandifo at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #4 from Richard Biener --- Confirmed with 12.2.0 during RTL pass: fwprop1 main.cpp: In function =E2=80=98int main()=E2=80=99: main.cpp:230:1: internal compiler error: in set_accesses, at rtl-ssa/internals.inl:449 0x6ca5e3 rtl_ssa::insn_info::set_accesses(rtl_ssa::access_info**, unsigned = int, unsigned int) /space/rguenther/src/gcc-12-branch/gcc/rtl-ssa/internals.inl:449 0x6ca5e3 rtl_ssa::insn_info::set_accesses(rtl_ssa::access_info**, unsigned = int, unsigned int) /space/rguenther/src/gcc-12-branch/gcc/rtl-ssa/internals.inl:444 0x6ca5e3 rtl_ssa::function_info::finish_insn_accesses(rtl_ssa::insn_info*) /space/rguenther/src/gcc-12-branch/gcc/rtl-ssa/insns.cc:407 0x1b0cabc rtl_ssa::function_info::start_block(rtl_ssa::function_info::build_info&, rtl_ssa::bb_info*) /space/rguenther/src/gcc-12-branch/gcc/rtl-ssa/blocks.cc:1022 0x1b0cb5f rtl_ssa::function_info::bb_walker::before_dom_children(basic_block_def*) /space/rguenther/src/gcc-12-branch/gcc/rtl-ssa/blocks.cc:129 0x195216e dom_walker::walk(basic_block_def*) /space/rguenther/src/gcc-12-branch/gcc/domwalk.cc:309 0x1b0d871 rtl_ssa::function_info::process_all_blocks() /space/rguenther/src/gcc-12-branch/gcc/rtl-ssa/blocks.cc:1252 0x1a83ba1 rtl_ssa::function_info::function_info(function*) /space/rguenther/src/gcc-12-branch/gcc/rtl-ssa/functions.cc:50 0x1961033 fwprop_init /space/rguenther/src/gcc-12-branch/gcc/fwprop.cc:906 0x1961033 fwprop /space/rguenther/src/gcc-12-branch/gcc/fwprop.cc:976 we have // Change the list of instruction accesses to ACCESSES, which contains // NUM_DEFS definitions followed by NUM_USES uses. inline void insn_info::set_accesses (access_info **accesses, unsigned int num_defs, unsigned int num_uses) { m_accesses =3D accesses; m_num_defs =3D num_defs; gcc_assert (num_defs =3D=3D m_num_defs); that's a strange assert ...=