Commit 055be976 by Richard Henderson Committed by Richard Henderson

regrename.c (consider_available): Test fixed_regs not PIC_OFFSET_TABLE_REGNUM.

        * regrename.c (consider_available): Test fixed_regs not
        PIC_OFFSET_TABLE_REGNUM.

From-SVN: r32919
parent b26e3a82
2000-04-04 Richard Henderson <rth@cygnus.com>
* regrename.c (consider_available): Test fixed_regs not
PIC_OFFSET_TABLE_REGNUM.
2000-04-04 Geoff Keating <geoffk@cygnus.com>
* config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
......
......@@ -776,6 +776,9 @@ consider_available (reg_use, avail_reg, avail_regs, rc, du, inum)
if (!TEST_HARD_REG_BIT (*avail_regs, avail_reg))
return 0;
if (fixed_regs[avail_reg])
return 0;
#ifdef HARD_REGNO_RENAME_OK
if (!HARD_REGNO_RENAME_OK (REGNO (reg_use), avail_reg))
return 0;
......@@ -810,9 +813,7 @@ consider_available (reg_use, avail_reg, avail_regs, rc, du, inum)
/* If register is a callee-saved register it must be saved in the frame.
call saved registers can not be added to regs_ever_live after reload,
as it would invalidate most elimination offsets */
if (regs_ever_live[avail_reg] || call_used_regs[avail_reg]
|| (avail_reg == PIC_OFFSET_TABLE_REGNUM
&& flag_pic && (current_function_uses_pic_offset_table)))
if (regs_ever_live[avail_reg] || call_used_regs[avail_reg])
return 1;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment