http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53915
--- Comment #2 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> 2012-07-10 14:46:28 UTC --- Actually this should not be the problem, because if top = bottom = 9, then the division is done exactly anyway; moreover "percent = limit - 1;" won't be executed in this case due to the condition top != bottom. Now, I can't explain the result.