aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2008-09-01 17:53:43 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2008-09-01 17:53:43 +0000
commit89ceba31285f7e09da8d74d730467a9ca68a8c6b (patch)
tree6a76c8f2fe00c9a49d73c6cd17afe82a66a2ce3d /gcc/ira.c
parentba623cedf4b07b3a2c2f3e638fa379bcde55c42e (diff)
downloadgcc-89ceba31285f7e09da8d74d730467a9ca68a8c6b.zip
gcc-89ceba31285f7e09da8d74d730467a9ca68a8c6b.tar.gz
gcc-89ceba31285f7e09da8d74d730467a9ca68a8c6b.tar.bz2
ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is defined.
* ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is defined. From-SVN: r139869
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 c98f0a05..dc9d16a 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