https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71071
Bug ID: 71071 Summary: [7 regression] ICE --enable-checking=fold : fold check: original tree changed by fold Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com Target Milestone: --- r236043 PASS r236132 FAIL /home/dimhen/src/gcc_current/configure --prefix=/usr/local/gcc_current --enable-checking=fold --enable-languages=c,c++ --disable-multilib /home/dimhen/build/gcc_current/./gcc/xgcc -B/home/dimhen/build/gcc_current/./gcc/ -B/usr/local/gcc_current/x86_64-pc-linux-gnu/bin/ -B/usr/local/gcc_current/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/gcc_current/x86_64-pc-linux-gnu/include -isystem /usr/local/gcc_current/x86_64-pc-linux-gnu/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fpic -mlong-double-80 -DUSE_ELF_SYMVER -I. -I. -I../.././gcc -I/home/dimhen/src/gcc_current/libgcc -I/home/dimhen/src/gcc_current/libgcc/. -I/home/dimhen/src/gcc_current/libgcc/../gcc -I/home/dimhen/src/gcc_current/libgcc/../include -I/home/dimhen/src/gcc_current/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _gcov.o -MT _gcov.o -MD -MP -MF _gcov.dep -DL_gcov -c /home/dimhen/src/gcc_current/libgcc/libgcov-driver.c /home/dimhen/src/gcc_current/libgcc/libgcov-driver.c: In function '__gcov_dump_one': /home/dimhen/src/gcc_current/libgcc/libgcov-driver.c:855:3: internal compiler error: fold check: original tree changed by fold if (root->dumped) ^~ 0xa3931f fold_check_failed /home/dimhen/src/gcc_current/gcc/fold-const.c:12099 0xa3a05c fold_build2_stat_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /home/dimhen/src/gcc_current/gcc/fold-const.c:12358 0x11e7407 generic_simplify_186 /home/dimhen/build/gcc_current/gcc/generic-match.c:6903 0x1224527 generic_simplify_NE_EXPR /home/dimhen/build/gcc_current/gcc/generic-match.c:27430 0x1229e7a generic_simplify(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /home/dimhen/build/gcc_current/gcc/generic-match.c:29656 0xa2e7af fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /home/dimhen/src/gcc_current/gcc/fold-const.c:9265 0xa39f9c fold_build2_stat_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /home/dimhen/src/gcc_current/gcc/fold-const.c:12347 0x80aa18 c_fully_fold_internal /home/dimhen/src/gcc_current/gcc/c/c-fold.c:305 0x80a147 c_fully_fold(tree_node*, bool, bool*) /home/dimhen/src/gcc_current/gcc/c/c-fold.c:90 0x7de299 c_parser_condition /home/dimhen/src/gcc_current/gcc/c/c-parser.c:5314 0x7de2f7 c_parser_paren_condition /home/dimhen/src/gcc_current/gcc/c/c-parser.c:5331 0x7de775 c_parser_if_statement /home/dimhen/src/gcc_current/gcc/c/c-parser.c:5493 0x7ddac5 c_parser_statement_after_labels /home/dimhen/src/gcc_current/gcc/c/c-parser.c:5138 0x7dd543 c_parser_compound_statement_nostart /home/dimhen/src/gcc_current/gcc/c/c-parser.c:4858 0x7dcf5a c_parser_compound_statement /home/dimhen/src/gcc_current/gcc/c/c-parser.c:4693 0x7d7fb7 c_parser_declaration_or_fndef /home/dimhen/src/gcc_current/gcc/c/c-parser.c:2105 0x7d6b98 c_parser_external_declaration /home/dimhen/src/gcc_current/gcc/c/c-parser.c:1549 0x7d6740 c_parser_translation_unit /home/dimhen/src/gcc_current/gcc/c/c-parser.c:1430 0x801c9e c_parse_file() /home/dimhen/src/gcc_current/gcc/c/c-parser.c:17915 0x8602ec c_common_parse_file() /home/dimhen/src/gcc_current/gcc/c-family/c-opts.c:1064 Please submit a full bug report,