https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65506
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 35111 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35111&action=edit gcc5-pr65506.patch Indeed, have verified this with the cross-compiler and the attached patch should cure this.