http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59538
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|c |middle-end
Resolution|--- |INVALID
Severity|critical |normal
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The loop to calculate the prime number is an empty finite loop and the result
of the loop is not used so the loop is removed. This is a valid optimization.