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

            Bug ID: 109301
           Summary: [13 Regression] ICE in format_helper, at real.h:233
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started between 20220717 and 20220724, at -Ofast :


$ cat z1.c
double x[256];
void f (void)
{
  int i, j;
  for (i=0; i<256; ++i)
    for (j=0; j<8; ++j)
      x[i] = __builtin_pow (x[i], 0.5);
}


$ gcc-13-20230326 -c z1.c -Ofast
during GIMPLE pass: cunroll
z1.c: In function 'f':
z1.c:2:6: internal compiler error: in format_helper, at real.h:233
    2 | void f (void)
      |      ^
0x94a671 format_helper::format_helper<machine_mode>(machine_mode const&)
        ../../gcc/real.h:233
0x94a671 const_binop
        ../../gcc/fold-const.cc:1340
0x94b027 const_binop(tree_code, tree_node*, tree_node*, tree_node*)
        ../../gcc/fold-const.cc:1761
0x10e23d8 gimple_resimplify2
        ../../gcc/gimple-match-head.cc:280
0x10e258a gimple_match_op::resimplify(gimple**, tree_node* (*)(tree_node*))
        ../../gcc/gimple-match-head.cc:516
0x1206eb8 gimple_simplify_CFN_POW
        .../gcc-13-20230326/zzz_rel/gcc/gimple-match.cc:188875
0x10e1112 gimple_simplify
        .../gcc-13-20230326/zzz_rel/gcc/gimple-match.cc:211319
0x10e22ca gimple_resimplify2
        ../../gcc/gimple-match-head.cc:323
0x10e258a gimple_match_op::resimplify(gimple**, tree_node* (*)(tree_node*))
        ../../gcc/gimple-match-head.cc:516
0x10fd1c0 gimple_simplify_CFN_SQRT
        .../gcc-13-20230326/zzz_rel/gcc/gimple-match.cc:87171
0x12a7aa7 gimple_simplify
        .../gcc-13-20230326/zzz_rel/gcc/gimple-match.cc:95836
0x12a8dc9 gimple_resimplify1
        ../../gcc/gimple-match-head.cc:246
0x10e259a gimple_match_op::resimplify(gimple**, tree_node* (*)(tree_node*))
        ../../gcc/gimple-match-head.cc:514
0x12a8f86 gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), tree_node* (*)(tree_node*))
        ../../gcc/gimple-match-head.cc:1115
0x99029d fold_stmt_1
        ../../gcc/gimple-fold.cc:6251
0xe234f8 eliminate_dom_walker::eliminate_stmt(basic_block_def*,
gimple_stmt_iterator*)
        ../../gcc/tree-ssa-sccvn.cc:7062
0xe298b7 process_bb
        ../../gcc/tree-ssa-sccvn.cc:8050
0xe2ad95 do_rpo_vn_1
        ../../gcc/tree-ssa-sccvn.cc:8501
0xe2bdc9 do_rpo_vn(function*, edge_def*, bitmap_head*, bool, bool,
vn_lookup_kind)
        ../../gcc/tree-ssa-sccvn.cc:8603
0xd9b03d tree_unroll_loops_completely
        ../../gcc/tree-ssa-loop-ivcanon.cc:1485

Reply via email to