https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71858
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 38898 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38898&action=edit gcc7-pr71858-2.patch And for the second issue.