https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89463
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|gcc generates wrong debug |debug information for |information at -O3 |iteractor of an empty loop | |is gone (at -O3) Severity|normal |enhancement --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- What is happening is the empty loop is being removed and not replaced with a debug statement say i is 6 afterwards. I don't know if this is a good idea to put a debug statement here or not.