This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/56478] New: Regression: ICE: Floating point exception in tree_estimate_probability


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

             Bug #: 56478
           Summary: Regression: ICE: Floating point exception in
                    tree_estimate_probability
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dhazeghi@yahoo.com


The following snippet (generated by csmith) causes top-of-trunk to generate an
ICE at -O2 and above.  This is a regression from 4.7 which compiles the code
fine.

$ gcc-trunk --version
gcc-trunk (GCC) 4.8.0 20130227 (experimental) [trunk revision 196310]
$ cat crash2.c 
/* gcc-trunk -O2+ */
int a;
void fn1 ()
{
    int b;
    b = 0;
    for (;; b++)
        a = 0 < -9223372036854775807LL - 1 - b ? : 0;
}
$ gcc-trunk -O -c crash2.c 
$ gcc-4.7 -O2 -c crash2.c
$ gcc-trunk -O2 -c crash2.c
crash2.c: In function âfn1â:
crash2.c:9:1: internal compiler error: Floating point exception
 }
 ^
0x7a32df crash_signal
    ../../gcc-trunk/gcc/toplev.c:332
0x7274ce predict_iv_comparison
    ../../gcc-trunk/gcc/predict.c:1231
0x7274ce predict_loops
    ../../gcc-trunk/gcc/predict.c:1552
0x7274ce tree_estimate_probability()
    ../../gcc-trunk/gcc/predict.c:2276
0x7277c0 tree_estimate_probability_driver
    ../../gcc-trunk/gcc/predict.c:2313
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.
$


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]