https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82045
--- Comment #9 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> --- Created attachment 42098 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42098&action=edit first cut of fix Here's the patch I'm testing. Only sanity-checked on aarch64-linux-gnu and cross sparc-sun-solaris2.11 so far.