Only hard regs with pseudos considered for save/restore across calls?
Richard Henderson
rth@redhat.com
Thu Jun 5 21:43:00 GMT 2003
On Thu, Jun 05, 2003 at 12:46:26PM -0700, Fred Fish wrote:
> It appears to me that only pseudos that are allocated to hard registers that
> are clobbered across calls are saved and restored across calls, and hard
> registers that are never associated with a pseudo are not saved and restored
> even when the compiler knows they are clobbered across a call.
Correct.
> However since cc0 gets directly allocated to $mcc0 at RTL generation time,
> it never gets saved and restored.
Well, don't do that then.
r~
More information about the Gcc
mailing list