https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66777
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-07-07 CC| |ebotcazou at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > -Waggressive-loop-optimizations, but it doesn't warn for me in this case. Note that it's enabled by default. And it only warns for simple cases, in particular not if you have a && in the exit condition.