https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66759
Bug ID: 66759 Summary: [6 Regression] ICE in generic-match.c on 456.hmmer Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: miyuki at gcc dot gnu.org Target Milestone: --- $ cat weight.i int a, b; float c; int fn2(); void fn1() { if (fn2() <= 1. - c) b = a; } $ cc1 -Ofast weight.i weight.i: In function 'fn1': weight.i:7:1: internal compiler error: Segmentation fault } ^ 0xbb59ff crash_signal /home/jenkins/workspace/build-gcc-trunk/src/gcc/toplev.c:360 0x9414e3 tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) /home/jenkins/workspace/build-gcc-trunk/src/gcc/tree.h:2980 0x9414e3 generic_simplify(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /home/jenkins/workspace/build-gcc-trunk/build/gcc/generic-match.c:14669 0x823647 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /home/jenkins/workspace/build-gcc-trunk/src/gcc/fold-const.c:9413 0x8319ea fold_build2_stat_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /home/jenkins/workspace/build-gcc-trunk/src/gcc/fold-const.c:13378 0x823789 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /home/jenkins/workspace/build-gcc-trunk/src/gcc/fold-const.c:9411 0xcdc36b combine_cond_expr_cond /home/jenkins/workspace/build-gcc-trunk/src/gcc/tree-ssa-forwprop.c:405 0xcdef80 forward_propagate_into_comparison_1 /home/jenkins/workspace/build-gcc-trunk/src/gcc/tree-ssa-forwprop.c:478 0xce3cf2 forward_propagate_into_gimple_cond /home/jenkins/workspace/build-gcc-trunk/src/gcc/tree-ssa-forwprop.c:551 0xce3cf2 execute /home/jenkins/workspace/build-gcc-trunk/src/gcc/tree-ssa-forwprop.c:2408 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Started between r225351 and r225388.