pa.c (pa_secondary_reload): Revise initialization of variable regno.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Fri, 2 Dec 2005 12:56:47 +0000 (12:56 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Fri, 2 Dec 2005 12:56:47 +0000 (12:56 +0000)
* pa.c (pa_secondary_reload): Revise initialization of variable regno.

From-SVN: r107890

gcc/ChangeLog
gcc/config/pa/pa.c

index 305d1ee3154927098850abaa166973640e34575e..b0f57b08377c554d223f13861e46e2e046d52d4f 100644 (file)
@@ -1,3 +1,7 @@
+2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * pa.c (pa_secondary_reload): Revise initialization of variable regno.
+
 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * ggc.h (GGC_RESIZEVEC): New.
index 595577d0cc06419e3388a00581ae66ff0fad8ef6..381a820a88590fe253e30deceef73d9810df43c3 100644 (file)
@@ -5577,8 +5577,7 @@ static enum reg_class
 pa_secondary_reload (bool in_p, rtx x, enum reg_class class,
                     enum machine_mode mode, secondary_reload_info *sri)
 {
-  int is_symbolic;
-  int regno = -1;
+  int is_symbolic, regno;
 
   /* Handle the easy stuff first.  */
   if (class == R1_REGS)
@@ -5590,6 +5589,8 @@ pa_secondary_reload (bool in_p, rtx x, enum reg_class class,
       if (class == BASE_REG_CLASS && regno < FIRST_PSEUDO_REGISTER)
        return NO_REGS;
     }
+  else
+    regno = -1;
 
   /* If we have something like (mem (mem (...)), we can safely assume the
      inner MEM will end up in a general register after reloading, so there's