https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121027
--- Comment #10 from Richard Sandiford <rsandifo at gcc dot gnu.org> --- Fixed. I backported both r15-4111-g4fd473f66faf5bd95c84fe5c0fa41be735a7c09f and the trunk fix for the code quality regression.