rtlanal.c (refers_to_regno_p): Test regno, not inner_regno, against FIRST_PSEUDO_REGI...
authorDavid Edelsohn <edelsohn@gnu.org>
Mon, 2 Feb 2004 18:20:55 +0000 (18:20 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 2 Feb 2004 18:20:55 +0000 (13:20 -0500)
        * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
        against FIRST_PSEUDO_REGISTER.

From-SVN: r77128

gcc/ChangeLog
gcc/rtlanal.c

index d3203c584e30f2257c3d0cbcbd93ded88010bba2..45b7679556c829c444bc0459b7cd629e6d73faca 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-02  David Edelsohn  <edelsohn@gnu.org>
+
+       * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
+       against FIRST_PSEUDO_REGISTER.
+
 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * doc/invoke.texi (SPARC options): Further improve.
index 3744a327f20611bfa75c2b88b710e9be61c0c0c4..e85893064094dd9e51c0a9548ac60a90f90788b3 100644 (file)
@@ -1449,7 +1449,7 @@ refers_to_regno_p (unsigned int regno, unsigned int endregno, rtx x,
        {
          unsigned int inner_regno = subreg_regno (x);
          unsigned int inner_endregno
-           = inner_regno + (inner_regno < FIRST_PSEUDO_REGISTER
+           = inner_regno + (regno < FIRST_PSEUDO_REGISTER
                             ? hard_regno_nregs[regno][GET_MODE (x)] : 1);
 
          return endregno > inner_regno && regno < inner_endregno;