https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87485
--- Comment #25 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Richard Biener from comment #24) > IIRC we used to say sth like "unable to find a register to spill" for > -fschedule-insns introduced issues. Even the ICE with max. number of > LRA passes is nicer than compiling indefinitely. > > So I wonder if we can at least avoid endless work in IRA/LRA and > maybe even give a sensible hint to the user (try disabling -fschedule-insns). The patch in Comment #20 is the correct solution, as explained in Comment #19.