OSDN Git Service

* ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Sep 2008 17:53:43 +0000 (17:53 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Sep 2008 17:53:43 +0000 (17:53 +0000)
defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139869 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ira.c

index a6bc7c1..ec456c0 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
+       defined.
+
 2008-09-01  Jan Hubicka  <jh@suse.cz>
 
        * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
index c98f0a0..dc9d16a 100644 (file)
--- 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