http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59150
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 32055 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32055&action=edit gcc49-pr59150.patch Untested fix for that and various other issues.