https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66626
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Uroš Bizjak from comment #8) > (In reply to H.J. Lu from comment #7) > > Created attachment 35882 [details] > > A patch > > Uhuh... it's correct. We want to limit regparm value with local_regparm. > > However, the unpatched compiler shows that LRA doesn't correctly handle argp > elimination. However, patched compiler will avoid this situation. LRA should check that it is impossible to pass 3 parameters plus a hidden chain into nested functions for x86.