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

            Bug ID: 64088
           Summary: [5 Regression] ICE: in fold_abs_const, at
                    fold-const.c:15550
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
              Host: powerpc64-unknown-linux-gnu
            Target: powerpc64-unknown-linux-gnu
             Build: powerpc64-unknown-linux-gnu

r214957 causes the following ICE during Firefox build on ppc64:

trippels@gcc2-power8 libvorbis % cat test.i
extern int abs (int);
extern void attenuate_curve(int*);
int a;
void
setup_tone_curves_center_boost ()
{
  int b[0];
  a = 0;
  for (; a < 6; a++)
    {
      int c = abs (a);
      b[a] = c;
    }
  attenuate_curve (b);
}

trippels@gcc2-power8 libvorbis % gcc -c -mcpu=power8 -O3 test.i
test.i: In function ‘setup_tone_curves_center_boost’:
test.i:5:1: internal compiler error: in fold_abs_const, at fold-const.c:15550
 setup_tone_curves_center_boost ()
 ^
0x1043ee77 fold_abs_const(tree_node*, tree_node*)
        ../../gcc/gcc/fold-const.c:15550
0x1046a0d7 const_unop(tree_code, tree_node*, tree_node*)
        ../../gcc/gcc/fold-const.c:1484
0x104f878b gimple_resimplify1
        ../../gcc/gcc/gimple-match-head.c:97
0x104c434b fold_stmt_1
        ../../gcc/gcc/gimple-fold.c:3194
0x1091bd3b optimize_stmt
        ../../gcc/gcc/tree-ssa-dom.c:2381
0x1091bd3b dom_opt_dom_walker::before_dom_children(basic_block_def*)
        ../../gcc/gcc/tree-ssa-dom.c:1990
0x10dabb43 dom_walker::walk(basic_block_def*)
        ../../gcc/gcc/domwalk.c:188
0x1091916f execute
        ../../gcc/gcc/tree-ssa-dom.c:906
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