[Bug tree-optimization/57081] New: Segmentation fault in simple_iv (tree-scalar-evolution.c:3151)

antoine.balestrat at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Apr 26 11:40:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57081

             Bug #: 57081
           Summary: Segmentation fault in simple_iv
                    (tree-scalar-evolution.c:3151)
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: antoine.balestrat@gmail.com


Using GCC 4.9.0 as of 20130426 :

$ cat seg.c
int a;

void f(void)
{
    int b;

    if(0)
lbl:
        goto lbl;

    if(b)
    {
        int p = 0;
        goto lbl;
    }

    a = 0;
    while(b++);
    goto lbl;
}

$ xgcc -w -O2 seg.c
seg.c: In function ‘f’:
seg.c:20:1: internal compiler error: Segmentation fault
 }
 ^
0x90ba1f crash_signal
    ../../srcdir/gcc/toplev.c:333
0x9a90c4 simple_iv(loop*, loop*, tree_node*, affine_iv*, bool)
    ../../srcdir/gcc/tree-scalar-evolution.c:3151
0x86ec0f is_comparison_with_loop_invariant_p
    ../../srcdir/gcc/predict.c:1084
0x8725ac predict_loops
    ../../srcdir/gcc/predict.c:1552
0x8725ac tree_estimate_probability()
    ../../srcdir/gcc/predict.c:2342
0x872f10 tree_estimate_probability_driver
    ../../srcdir/gcc/predict.c:2379
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.


More information about the Gcc-bugs mailing list