https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109578
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- We don't removing code before undefined behavior ... That is GCC does not know that printf does not have side effects.