https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212
--- Comment #315 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to Alexandre Oliva from comment #277) > Created attachment 59153 [details] > [lra] take scratch as implicit unused output reloads > > > * call_pcrel patterns: match_scratch can cause ICE for the corner case. We > > use a fixed register instead of scratch as a quick fix. More investigation > > is needed. > > This sounds familiar. I may have an LRA patch to address this problem, but > it's got very little testing. Alex, thanks for the patch. It seems to be doing OK here. What else is needed to upstream it?