mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-30 05:19:40 +08:00
(calc_live_regs): For pragma_interrupt case...
(calc_live_regs): For pragma_interrupt case, exclude call clobbered regs that are fixed, explicitly add MACH_REG and MACL_REG. From-SVN: r12415
This commit is contained in:
parent
2b4092f276
commit
20fef67b3a
@ -1879,7 +1879,10 @@ calc_live_regs (count_ptr, live_regs_mask2)
|
||||
{
|
||||
/* Need to save all the regs ever live. */
|
||||
if ((regs_ever_live[reg]
|
||||
|| (call_used_regs[reg] && regs_ever_live[PR_REG]))
|
||||
|| (call_used_regs[reg] && ! fixed_regs[reg]
|
||||
&& regs_ever_live[PR_REG])
|
||||
|| reg == MACH_REG
|
||||
|| reg == MACL_REG)
|
||||
&& reg != STACK_POINTER_REGNUM && reg != ARG_POINTER_REGNUM
|
||||
&& reg != T_REG && reg != GBR_REG)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user