------- Comment #8 from ian at airs dot com 2006-05-15 05:41 ------- Steven: what's your patch? It seems to me that this fixes the problem in mainline:
Index: tree-ssa-loop-niter.c =================================================================== --- tree-ssa-loop-niter.c (revision 113773) +++ tree-ssa-loop-niter.c (working copy) @@ -1612,7 +1612,7 @@ infer_loop_bounds_from_undefined (struct diff = fold_build2 (MINUS_EXPR, utype, TYPE_MAX_VALUE (type), init); - if (!integer_zerop (step)) + if (!integer_zerop (step) && !TREE_OVERFLOW (diff)) { estimation = fold_build2 (CEIL_DIV_EXPR, utype, diff, step); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603