From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B217385802C; Tue, 18 Jan 2022 10:38:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B217385802C From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/104089] New: ICE in constant_svalue, at analyzer/svalue.h:271 Date: Tue, 18 Jan 2022 10:38:52 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code 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 keywords 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: Tue, 18 Jan 2022 10:38:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104089 Bug ID: 104089 Summary: ICE in constant_svalue, at analyzer/svalue.h:271 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc 12.0.0 20220116 snapshot (g:90045c5df5b3c8853e7740fb72a11aead1c489bb) I= CEs when compiling the following testcase, reduced from gcc/testsuite/gcc.dg/torture/float16-tg-3.c, w/ -fanalyzer -frounding-math: volatile _Float16 true_min =3D 5.96046447753906250000000000000000000e-8F16; int main (void) { return __builtin_fpclassify (0, 1, 4, 3, 2, true_min); } % gcc-12.0.0 -fanalyzer -frounding-math -c caqiocbw.c during IPA pass: analyzer caqiocbw.c: In function 'main': caqiocbw.c:6:10: internal compiler error: in constant_svalue, at analyzer/svalue.h:271 6 | return __builtin_fpclassify (0, 1, 4, 3, 2, true_min); | ^~~~~~~~~~~~~~~~~~~~ 0x7b22a8 ana::constant_svalue::constant_svalue(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/svalue.h:271 0x7b22a8 ana::region_model_manager::get_or_create_constant_svalue(tree_node= *) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/region-model-manager.cc:216 0x12a37da ana::region_model_manager::get_or_create_unaryop(tree_node*, tree_code, ana::svalue const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/region-model-manager.cc:441 0x128ba67 ana::region_model::on_assignment(gassign const*, ana::region_model_context*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/region-model.cc:870 0x1265bc8 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-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/engine.cc:1305 0x1268ff6 ana::exploded_graph::process_node(ana::exploded_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/engine.cc:3694 0x1269fea ana::exploded_graph::process_worklist() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/engine.cc:3137 0x126c670 ana::impl_run_checkers(ana::logger*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/engine.cc:5716 0x126d56e ana::run_checkers() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/engine.cc:5787 0x125c2a8 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_p20220116/work/gcc-12-20220116/gcc/an= alyzer/analyzer-pass.cc:87=