summaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-01 17:53:43 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-01 17:53:43 +0000
commitd87f6c047d1232827476d42bfffc823085eba2c4 (patch)
tree6a76c8f2fe00c9a49d73c6cd17afe82a66a2ce3d /gcc/ira.c
parentd72cadac35d2f8a850f75ee74723eda0f9e043b2 (diff)
downloadgcc-d87f6c047d1232827476d42bfffc823085eba2c4.tar.gz
* ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139869 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index c98f0a05e6f..dc9d16abab4 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -1258,7 +1258,6 @@ compute_regs_asm_clobbered (char *regs_asm_clobbered)
static void
setup_eliminable_regset (void)
{
- int i;
/* Like regs_ever_live, but 1 if a reg is set or clobbered from an
asm. Unlike regs_ever_live, elements of this array corresponding
to eliminable regs (like the frame pointer) are set if an asm
@@ -1266,6 +1265,7 @@ setup_eliminable_regset (void)
char *regs_asm_clobbered
= (char *) alloca (FIRST_PSEUDO_REGISTER * sizeof (char));
#ifdef ELIMINABLE_REGS
+ int i;
static const struct {const int from, to; } eliminables[] = ELIMINABLE_REGS;
#endif
/* FIXME: If EXIT_IGNORE_STACK is set, we will not save and restore