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.6/4.7/4.8 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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-09 09:00:32 UTC ---
Author: jakub
Date: Wed Jan  9 09:00:22 2013
New Revision: 195046

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195046
Log:
    PR tree-optimization/48189
    * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
    If nitercst is 0, don't predict the exit edge.

    * gcc.dg/pr48189.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr48189.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/predict.c
    trunk/gcc/testsuite/ChangeLog


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