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/48189] [4.3/4.4/4.5/4.6/4.7 Regression] ICE: SIGFPE (division by zero) in in predict_loops () at predict.c:991 with --param max-predicted-iterations=0


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.03.21 12:46:09
                 CC|                            |hubicka at gcc dot gnu.org
   Target Milestone|---                         |4.3.6
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-21 12:46:09 UTC ---
Honza, if the loop is predicted to run zero times the exit edge isn't executed.
What's the probability value for this?  I'd say it's NaN (aka, not relevant
as it isn't executed as all).

It doesn't seem to be correct to limit max-predicted-iterations to >= 1
as estimated_loop_iterations_int could return zero as well.


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