https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102880
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So this is standard main is called once only difference. renaming main to hhh (and adding a return 0; at the end), I get the optimization. the added DCE changes how inlining heurstic are for the functions so I really doubt this is a real issue.