summaryrefslogtreecommitdiff
path: root/gcc/stupid.c
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1993-09-24 19:56:27 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1993-09-24 19:56:27 +0000
commit1f861423436821fe9a324e0948ceb080de030035 (patch)
treec2ced3688c542211bf5f8b24eb839d2406887196 /gcc/stupid.c
parentf410e5230b511b8ea2dbeae1d072cad47deb4832 (diff)
downloadgcc-1f861423436821fe9a324e0948ceb080de030035.tar.gz
* stupid.c: (stupid_find_reg): never use HARD_FRAME_POINTER_REGNUM.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5469 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stupid.c')
-rw-r--r--gcc/stupid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/stupid.c b/gcc/stupid.c
index 47d7740fb64..f9179f50098 100644
--- a/gcc/stupid.c
+++ b/gcc/stupid.c
@@ -360,6 +360,9 @@ stupid_find_reg (call_preserved, class, mode,
#ifdef ELIMINABLE_REGS
for (i = 0; i < sizeof eliminables / sizeof eliminables[0]; i++)
SET_HARD_REG_BIT (used, eliminables[i].from);
+#if HARD_FRAME_POINTER_REGNUM != FRAME_POINTER_REGNUM
+ SET_HARD_REG_BIT (used, HARD_FRAME_POINTER_REGNUM);
+#endif
#else
SET_HARD_REG_BIT (used, FRAME_POINTER_REGNUM);
#endif