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

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 2 12:15:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66626

--- Comment #18 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Uroš Bizjak from comment #16)
> (In reply to H.J. Lu from comment #13)
> 
> > These simply won't work to together.  Since we must keep LRA, we
> > should remove ix86_static_chain_on_stack.
> 
> ... or LRA notes that static chain reg has just been loaded from stack (insn
> 32) and can be reused in all subsequent instructions (insn 14) and (insn 17).

... or prevent fwprop to distribute static chain reg into its users and leave
it in a temporary.


More information about the Gcc-bugs mailing list