[Bug rtl-optimization/66626] [4.9/5/6 Regression] gcc.dg/torture/stackalign/non-local-goto-5.c segfaults w/ -mregparm=3

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 1 11:40:00 GMT 2015


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.


More information about the Gcc-bugs mailing list