From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0A100386F808; Wed, 19 Aug 2020 20:04:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A100386F808 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597867447; bh=pB7FPQqHY55XetMi3fkw4RTBHX5M6zicUs0zG4iQJ/U=; h=From:To:Subject:Date:From; b=l+yiOXTT2Iv++vx1Nm0iH2jqd/+7OO5fFn+6498rRfhArFkYM4RFvljJiELziyTc/ KhMgynCkUePojc6V1htB+7kt9YAqC+rX1M4quP1+pNhDZw2tqJ8SANh2HAh2PZnvlZ 3VfOQ1ZcyERkjyVyh2Pf1bZZgfJP64grD6EmuvWM= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/96713] New: [11 Regression] ICE: in fold_relational_const, at fold-const.c:14921 with -fanalyzer Date: Wed, 19 Aug 2020 20:04:06 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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 cf_gcchost attachments.created 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: Wed, 19 Aug 2020 20:04:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96713 Bug ID: 96713 Summary: [11 Regression] ICE: in fold_relational_const, at fold-const.c:14921 with -fanalyzer Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 49083 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49083&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -fanalyzer testcase.c=20 during IPA pass: analyzer testcase.c: In function 'foo': testcase.c:6:5: internal compiler error: in fold_relational_const, at fold-const.c:14921 6 | d <=3D e; | ~~^~~~ 0x66d990 fold_relational_const /repo/gcc-trunk/gcc/fold-const.c:14921 0xd51bfe const_binop(tree_code, tree_node*, tree_node*, tree_node*) /repo/gcc-trunk/gcc/fold-const.c:1599 0xd44841 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /repo/gcc-trunk/gcc/fold-const.c:10274 0x1478486 ana::constant_svalue::eval_condition(ana::constant_svalue const*, tree_code, ana::constant_svalue const*) /repo/gcc-trunk/gcc/analyzer/svalue.cc:403 0x143d597 ana::region_model::eval_condition(ana::svalue const*, tree_code, ana::svalue const*) const /repo/gcc-trunk/gcc/analyzer/region-model.cc:1500 0x143f5ee ana::region_model::get_gassign_result(gassign const*, ana::region_model_context*) /repo/gcc-trunk/gcc/analyzer/region-model.cc:469 0x143f747 ana::region_model::on_assignment(gassign const*, ana::region_model_context*) /repo/gcc-trunk/gcc/analyzer/region-model.cc:563 0x1423070 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*) const /repo/gcc-trunk/gcc/analyzer/engine.cc:1029 0x14241af ana::exploded_graph::process_node(ana::exploded_node*) /repo/gcc-trunk/gcc/analyzer/engine.cc:2526 0x1424aa2 ana::exploded_graph::process_worklist() /repo/gcc-trunk/gcc/analyzer/engine.cc:2341 0x1426b19 ana::impl_run_checkers(ana::logger*) /repo/gcc-trunk/gcc/analyzer/engine.cc:4107 0x14284ac ana::run_checkers() /repo/gcc-trunk/gcc/analyzer/engine.cc:4175 0x141c5e8 execute /repo/gcc-trunk/gcc/analyzer/analyzer-pass.cc:84 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r11-2773-20200819203610-= ge6e01618e83-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/11.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r11-2773-20200819203610-ge6e01618e= 83-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.0 20200819 (experimental) (GCC)=