https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111001
--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> --- Created attachment 56164 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56164&action=edit sh_pr11001_fix.patch Can you please try this patch? It should solve the problem, but not sure if there could be any unexpected side effects.