summaryrefslogtreecommitdiff
path: root/gcc/regrename.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-05 01:23:57 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-05 01:23:57 +0000
commit22d9265e4c9b07227ad1ccf2bf4e6417711353c7 (patch)
tree07bd1c9b2ac74a5b83def68a27eddb3fe1720cf3 /gcc/regrename.c
parent0567ecbdd65d9d23cd9618709a8c6a1f4b6219f3 (diff)
downloadgcc-22d9265e4c9b07227ad1ccf2bf4e6417711353c7.tar.gz
* regrename.c (consider_available): Test fixed_regs not
PIC_OFFSET_TABLE_REGNUM. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32919 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r--gcc/regrename.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c
index 816a5d262d1..b07b1055610 100644
--- a/gcc/regrename.c
+++ b/gcc/regrename.c
@@ -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;