https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78333
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Just for future reference if anyone goes digging, this also fixes the use case of -D_FORTIFY_SOURCE=2 and printf inside __cyg_profile_func_enter/__cyg_profile_func_exit .