https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60779 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Hasn't this been fixed by using the optimize attribute infrastructure for LTO now?