From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B79E43858401; Fri, 17 Sep 2021 07:15:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B79E43858401 From: "suochenyao at 163 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102385] New: ICE: in single_pred_edge, at basic-block.h:350 under "-O2 -fno-toplevel-reorder -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tree-loop-ivcanon -fpredictive-commoning" Date: Fri, 17 Sep 2021 07:15:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: suochenyao at 163 dot com X-Bugzilla-Status: UNCONFIRMED 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: 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: Fri, 17 Sep 2021 07:15:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102385 Bug ID: 102385 Summary: ICE: in single_pred_edge, at basic-block.h:350 under "-O2 -fno-toplevel-reorder -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tree-loop-ivcanon -fpredictive-commoning" Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: suochenyao at 163 dot com Target Milestone: --- ***************************************************************************= **** OS and Platform: CentOS Linux release 7.8.2003 (Core), x86_64 GNU/Linux ***************************************************************************= **** Program: short a, b; int c[9]; void(d)() {} void e() { a =3D 0; for (; a <=3D 4; a++) { short *f =3D &b; c[a] || (*f =3D 0); d(c[a + 2]); } } int main() {return 0;} ***************************************************************************= **** gcc version: $ gcc -v Using built-in specs. COLLECT_GCC=3D/data/bin/gcc-dev/bin/gcc COLLECT_LTO_WRAPPER=3D/data/bin/gcc-dev/libexec/gcc/x86_64-pc-linux-gnu/12.= 0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../configure --prefix=3D/data/bin/gcc-dev --disable-multil= ib --enable-languages=3Dc,c++ Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210916 (experimental) (GCC) git version: 745781d24cd7562202687cfbe05597ee673d4537 ***************************************************************************= **** Command Lines: $ gcc -Wall -Wextra -O2 -fno-toplevel-reorder -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tree-loop-ivcanon -fpredictive-commoning a.c during GIMPLE pass: pcom a.c: In function =E2=80=98e=E2=80=99: a.c:4:6: internal compiler error: in single_pred_edge, at basic-block.h:350 4 | void e() { | ^ 0x773ee4 single_pred_edge ../../gcc/basic-block.h:350 0x77461d single_pred_edge ../../gcc/sbitmap.h:105 0x77461d tree_transform_and_unroll_loop(loop*, unsigned int, edge_def*, tree_niter_desc*, void (*)(loop*, void*), void*) ../../gcc/tree-ssa-loop-manip.c:1295 0xf525c8 pcom_worker::tree_predictive_commoning_loop(bool) ../../gcc/tree-predcom.c:3401 0xf52aa4 tree_predictive_commoning(bool) ../../gcc/tree-predcom.c:3428 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=