https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79898
Bug ID: 79898 Summary: ICE in const_binop, at fold-const.c:1554 on ARM target Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Target: arm-linux-gnueabi Following ICEs on ARM target (with cross-compiler): $ arm-linux-gnueabi-gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/fixed-point/loop-index.c -Ofast /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/fixed-point/loop-index.c: In function ‘main’: /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/fixed-point/loop-index.c:55:1: internal compiler error: in const_binop, at fold-const.c:1554 main () ^~~~ 0x8907da const_binop(tree_code, tree_node*, tree_node*, tree_node*) .././../gcc/fold-const.c:1553 0xee5cb8 gimple_resimplify2(gimple**, code_helper*, tree_node*, tree_node**, tree_node* (*)(tree_node*)) .././../gcc/gimple-match-head.c:132 0xd440dd vn_nary_build_or_lookup_1 .././../gcc/tree-ssa-sccvn.c:1676 0xd44345 vn_nary_simplify(vn_nary_op_s*) .././../gcc/tree-ssa-sccvn.c:1771 0xd1db90 fully_constant_expression .././../gcc/tree-ssa-pre.c:1216 0xd22f25 phi_translate_1 .././../gcc/tree-ssa-pre.c:1462 0xd20d23 phi_translate .././../gcc/tree-ssa-pre.c:1742 0xd20ea5 phi_translate_set .././../gcc/tree-ssa-pre.c:1780 0xd21d7d compute_antic_aux .././../gcc/tree-ssa-pre.c:2116 0xd21d7d compute_antic .././../gcc/tree-ssa-pre.c:2403 0xd250c0 execute .././../gcc/tree-ssa-pre.c:5094