From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 48695385700C; Mon, 17 Aug 2020 09:45:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48695385700C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597657524; bh=WmeJ/KQQyc8Jstr8InLFaALuGR41FlSOkt/nfrHzuC8=; h=From:To:Subject:Date:From; b=wERMnM7B8HPAxogr2u1xbv28RkwRgg7BejURbbwG9kGh5pwp9kLi/wLceZ5K2nSCH Z5iyhWm2JAF3h7yZ2onM8pLY480UapUU8oWQuORSSEt1bY5lfjTUoaASDr8KOs58n9 jxvIdMitN+nwjTsnvO/xQnAENLrm/oU0BZ7b+8VU= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/96648] New: [11 Regression] ICE in get_field_at_bit_offset, at analyzer/region.cc:229 Date: Mon, 17 Aug 2020 09:45:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Mon, 17 Aug 2020 09:45:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96648 Bug ID: 96648 Summary: [11 Regression] ICE in get_field_at_bit_offset, at analyzer/region.cc:229 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc-11.0.0-alpha20200816 snapshot (g:c99116aeeb9644ebddec653ee8b19de4d38b65= bd) ICEs when compiling the following testcase w/ -O1 -fanalyzer: struct vd { struct vd *rs; }; struct fh { struct vd cl; }; struct i3 { struct fh *h4; }; struct fh * gm (void); void j7 (struct vd *); inline void mb (struct vd *e7) { j7 (e7->rs); } void po (struct i3 *d2) { struct i3 *s2; d2->h4 =3D gm (); mb (&d2->h4->cl); s2 =3D ({ d2 - 1; }); po (s2); } % gcc-11.0.0 -O1 -fanalyzer -c yepd00sw.c during IPA pass: analyzer yepd00sw.c: In function 'po': yepd00sw.c:22:3: internal compiler error: in get_field_at_bit_offset, at analyzer/region.cc:229 22 | j7 (e7->rs); | ^~~~~~~~~~~ 0x720bb1 ana::region::get_subregions_for_binding(ana::region_model_manager*, generic_wide_int >, generic_wide_int >, tree_node*, auto_vec*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/region.cc:229 0x113822c ana::binding_cluster::get_representative_path_vars(ana::region_mo= del const*, hash_set >*, ana::region const*, ana::svalue const*, auto_vec*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/store.cc:1121 0x11392e7 ana::store::get_representative_path_vars(ana::region_model const*, hash_set= >*, ana::svalue const*, auto_vec*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/store.cc:1805 0x110dc5d ana::region_model::get_representative_path_var(ana::svalue const*, hash_set= >*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/region-model.cc:1806 0x110e3a7 ana::region_model::get_representative_tree(ana::svalue const*) co= nst =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/region-model.cc:1851 0x10f8474 ana::impl_sm_context::get_diagnostic_tree(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:295 0x11320df on_stmt =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/sm-malloc.cc:805 0x10f318f ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:1098 0x10f426d ana::exploded_graph::process_node(ana::exploded_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:2526 0x10f4d5a ana::exploded_graph::process_worklist() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:2341 0x10f6e8f ana::impl_run_checkers(ana::logger*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:4107 0x10f7aac ana::run_checkers() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/engine.cc:4175 0x10ec468 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200816/work/gcc-11-20200816/gc= c/analyzer/analyzer-pass.cc:84=