http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60072
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- It is fixed by the same patch, and is the same problem. If one of the two PRs ever worked with optimize attribute, it was purely by accident.