https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469
--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to Rin Okuyama from comment #3) > Thank you very much for your analysis! > > If that peephole is removed, GCC 10.3 generates working codes. > > NetBSD/shle built by this compiler works fine as far as I can see. > I'm carrying out full regression tests of NetBSD on this system. > (It takes about a day to finish.) > > Is there a better fix than mechanically removing that peephole? Thanks for reporting and analyzing this issue. I was suspecting that to be a broken peephole pattern. Of course it's better to fix the broken pattern instead of deleting it completely. I'll try to come up with a patch during this week.