http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60457
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 32302 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32302&action=edit gcc49-pr60457.patch Perhaps something like this can fix this? From the patch description it seems you were after functions only.