From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3CBE53858C2D; Tue, 11 Oct 2022 04:39:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3CBE53858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665463177; bh=0aPB0jcup9og0uVxZPdSSzBZrPLXhAWswzn1+qEpmIk=; h=From:To:Subject:Date:From; b=aSaH4atUm5TrWh10fzTxj1cyMtK1NtuHSw0gvXJBh9EC8m19l/G8q360ZLY4fkPa4 HzjARajQGeCSspJkxy3JWCZyIvTwLNk8rtC8lqDTpUfj8lF7dxxlX8wqJoCFp06hQn 1Fvp3kSpwtE/wdgt5WnINx0cxZyn4iOoiWPnc/IE= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/107210] New: [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392 Date: Tue, 11 Oct 2022 04:39:37 +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: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107210 Bug ID: 107210 Summary: [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gfortran 13.0.0 20221009 snapshot (g:e95e91eccd022a4a3a86da2749809fbad9afd2= 0e) ICEs when compiling the following testcase, reduced from gcc/testsuite/gfortran.dg/sizeof.f90, w/ -O1 -fanalyzer: subroutine check_int (j) INTEGER(4) :: i, ia(5), ib(5,4), ip, ipa(:) target :: ib POINTER :: ip, ipa logical :: l(5) l =3D (/ sizeof(i) =3D=3D 4, sizeof(ia) =3D=3D 20, sizeof(ib) =3D=3D 80, & sizeof(ip) =3D=3D 4, sizeof(ipa) =3D=3D 8 /) if (any(.not.l)) STOP 4 end subroutine check_int % gfortran-13 -O1 -fanalyzer -c twz5zkp4.f90 during IPA pass: analyzer twz5zkp4.f90:8:43: 8 | sizeof(ip) =3D=3D 4, sizeof(ipa) =3D=3D 8 /) | ^ internal compiler error: in tree_to_uhwi, at tree.cc:6392 0x7ad4c3 tree_to_uhwi(tree_node const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/tr= ee.cc:6392 0x7ad4c3 tree_to_uhwi(tree_node const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/tr= ee.cc:6390 0x13dbc17 ana::constant_svalue::maybe_fold_bits_within(tree_node*, ana::bit_range const&, ana::region_model_manager*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/svalue.cc:891 0x13dbc17 ana::constant_svalue::maybe_fold_bits_within(tree_node*, ana::bit_range const&, ana::region_model_manager*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/svalue.cc:870 0x13a089d ana::region_model_manager::maybe_fold_bits_within_svalue(tree_nod= e*, ana::bit_range const&, ana::svalue const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/region-model-manager.cc:1025 0x13a11aa ana::region_model_manager::get_or_create_bits_within(tree_node*, ana::bit_range const&, ana::svalue const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/region-model-manager.cc:1116 0x13cc1e3 ana::binding_cluster::maybe_get_compound_binding(ana::store_manag= er*, ana::region const*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/store.cc:1736 0x1374a96 ana::region_model::get_store_value(ana::region const*, ana::region_model_context*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/region-model.cc:3210 0x137537c ana::region_model::get_rvalue(ana::path_var, ana::region_model_context*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/region-model.cc:3104 0x137c717 ana::region_model::on_assignment(gassign const*, ana::region_model_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/region-model.cc:1088 0x134f294 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*, ana::uncertainty_t*, ana::path_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/engine.cc:1447 0x135233f ana::exploded_graph::process_node(ana::exploded_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/engine.cc:4033 0x13531fa ana::exploded_graph::process_worklist() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/engine.cc:3436 0x13558ec ana::impl_run_checkers(ana::logger*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/engine.cc:6084 0x135693e ana::run_checkers() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/engine.cc:6158 0x13451f8 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/an= alyzer/analyzer-pass.cc:86=