https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66657
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You can use -save-temps and look at the .s files. >To identify errant calls to printf and puts. For this you can also do use the attribute warning and do it at compile time rather than assembly time. There are other tricks too.