https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97696
--- Comment #3 from Richard Sandiford <rsandifo at gcc dot gnu.org> --- Created attachment 57520 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57520&action=edit Candidate patch The attached patch seems to fix it. I'm taking next week off, but I'll run the patch through proper testing when I get back.