https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71071

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Created attachment 38476
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38476&action=edit
libgcov-driver.i

$ ./cc1 -quiet libgcov-driver.i
/home/marek/src/gcc/libgcc/libgcov-driver.c: In function ‘__gcov_dump_one’:
/home/marek/src/gcc/libgcc/libgcov-driver.c:855:3: internal compiler error:
fold check: original tree changed by fold
   if (root->dumped)
   ^~
0x9c37dc fold_check_failed
        /home/marek/src/gcc/gcc/fold-const.c:12099
0x9c4aff fold_build2_stat_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        /home/marek/src/gcc/gcc/fold-const.c:12359
0x123df44 generic_simplify_186
        /home/marek/x/trunk/gcc/generic-match.c:6903
0x128a166 generic_simplify_NE_EXPR
        /home/marek/x/trunk/gcc/generic-match.c:27430
0x1290e7d generic_simplify(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        /home/marek/x/trunk/gcc/generic-match.c:29656
0x9b422e fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        /home/marek/src/gcc/gcc/fold-const.c:9265
0x9c4a3f fold_build2_stat_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        /home/marek/src/gcc/gcc/fold-const.c:12348
0x745d3d c_fully_fold_internal
        /home/marek/src/gcc/gcc/c/c-fold.c:305
0x7470bb c_fully_fold(tree_node*, bool, bool*)
        /home/marek/src/gcc/gcc/c/c-fold.c:90
0x7179ca c_parser_condition
        /home/marek/src/gcc/gcc/c/c-parser.c:5314
0x717a47 c_parser_paren_condition
        /home/marek/src/gcc/gcc/c/c-parser.c:5331
0x730b13 c_parser_if_statement
        /home/marek/src/gcc/gcc/c/c-parser.c:5493
0x730b13 c_parser_statement_after_labels
        /home/marek/src/gcc/gcc/c/c-parser.c:5138
0x732615 c_parser_compound_statement_nostart
        /home/marek/src/gcc/gcc/c/c-parser.c:4858
0x732a5e c_parser_compound_statement
        /home/marek/src/gcc/gcc/c/c-parser.c:4693
0x72e6a9 c_parser_declaration_or_fndef
        /home/marek/src/gcc/gcc/c/c-parser.c:2105
0x73a4bd c_parser_external_declaration
        /home/marek/src/gcc/gcc/c/c-parser.c:1549
0x73ad99 c_parser_translation_unit
        /home/marek/src/gcc/gcc/c/c-parser.c:1430
0x73ad99 c_parse_file()
        /home/marek/src/gcc/gcc/c/c-parser.c:17915
0x79d702 c_common_parse_file()
        /home/marek/src/gcc/gcc/c-family/c-opts.c:1064
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.

Reply via email to