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

--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> ---
Created attachment 57029
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57029&action=edit
probably related testcase, ICEing elsewhere at -O1

Compiler output with the other testcase at -O1:
$ x86_64-pc-linux-gnu-gcc -O testcase2.c 
during GIMPLE pass: ccp
testcase2.c: In function 'foo':
testcase2.c:8:1: internal compiler error: in extended_tree, at tree.h:6449
    8 | }
      | ^
0xf083fe wi::extended_tree<128>::extended_tree(tree_node const*)
        /repo/gcc-trunk/gcc/tree.h:6449
0xf083fe wi::extended_tree<128>::extended_tree(tree_node const*)
        /repo/gcc-trunk/gcc/tree.h:6446
0x1164b80 generic_wide_int<wi::extended_tree<128> >::generic_wide_int<tree_node
const*>(tree_node const* const&)
        /repo/gcc-trunk/gcc/wide-int.h:847
0x1164b80 poly_int<1u, generic_wide_int<wi::extended_tree<128> >
>::poly_int<tree_node const*>(poly_int_full, tree_node const* const&)
        /repo/gcc-trunk/gcc/poly-int.h:467
0x1164b80 poly_int<1u, generic_wide_int<wi::extended_tree<128> >
>::poly_int<tree_node const*>(tree_node const* const&)
        /repo/gcc-trunk/gcc/poly-int.h:453
0x1164b80 wi::to_poly_offset(tree_node const*)
        /repo/gcc-trunk/gcc/tree.h:6549
0x1164b80 fold_const_aggregate_ref_1(tree_node*, tree_node* (*)(tree_node*))
        /repo/gcc-trunk/gcc/gimple-fold.cc:8358
0x1165c34 gimple_fold_stmt_to_constant_1(gimple*, tree_node* (*)(tree_node*),
tree_node* (*)(tree_node*))
        /repo/gcc-trunk/gcc/gimple-fold.cc:7670
0x162f8ae ccp_fold
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:1288
0x162f8ae evaluate_stmt
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:2226
0x1631faf visit_assignment
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:2861
0x16ee563 ssa_propagation_engine::simulate_stmt(gimple*)
        /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:221
0x16ee83a ssa_propagation_engine::simulate_block(basic_block_def*)
        /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:328
0x16eed73 ssa_propagation_engine::ssa_propagate()
        /repo/gcc-trunk/gcc/tree-ssa-propagate.cc:478
0x1627509 do_ssa_ccp
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:2980
0x1627509 execute
        /repo/gcc-trunk/gcc/tree-ssa-ccp.cc:3026
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to