https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663
--- Comment #12 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- (In reply to Peter Bergner from comment #11) > > With the test case, rld_mode is SDmode and our > secondary_memory_needed_mode(SDmode) returns DDmode for reasons described > above. However, newly added code overrides our secondary_memory_needed_mode > and changes sec_mode back to SDmode which causes us to loop forever since > LRA doesn't make progress. Thank you, Peter. I already have a patch solving the PR. If the tests on targets I usually check are ok, I'll submit it tomorrow.