summaryrefslogtreecommitdiff
path: root/gcc/stupid.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-02-15 03:21:26 -0800
committerYamaArashi <shadow962@live.com>2016-02-15 03:21:26 -0800
commitdae4baf0b704d1b566bbff41774f220b00bf365b (patch)
tree690def17e9d822f5d62f0d8dbbc266202bce8e01 /gcc/stupid.c
parentffa585754d6f1cc8eae38ae213b1b1dc6a74d7d3 (diff)
clean up more reg ifdefs
Diffstat (limited to 'gcc/stupid.c')
-rwxr-xr-xgcc/stupid.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/stupid.c b/gcc/stupid.c
index d912a33..385831d 100755
--- a/gcc/stupid.c
+++ b/gcc/stupid.c
@@ -500,13 +500,8 @@ stupid_find_reg (call_preserved, class, mode,
int changes_size ATTRIBUTE_UNUSED;
{
register int i, ins;
-#ifdef HARD_REG_SET
- register /* Declare them register if they are scalars. */
-#endif
HARD_REG_SET used, this_reg;
-#ifdef ELIMINABLE_REGS
static struct {int from, to; } eliminables[] = ELIMINABLE_REGS;
-#endif
/* If this register's life is more than 5,000 insns, we probably
can't allocate it, so don't waste the time trying. This avoids
@@ -518,15 +513,8 @@ stupid_find_reg (call_preserved, class, mode,
COPY_HARD_REG_SET (used,
call_preserved ? call_used_reg_set : fixed_reg_set);
-#ifdef ELIMINABLE_REGS
for (i = 0; i < (int)(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
for (ins = born_insn; ins < dead_insn; ins++)
IOR_HARD_REG_SET (used, after_insn_hard_regs[ins]);