OSDN Git Service

* rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Feb 2004 18:20:55 +0000 (18:20 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Feb 2004 18:20:55 +0000 (18:20 +0000)
        against FIRST_PSEUDO_REGISTER.

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

gcc/ChangeLog
gcc/rtlanal.c

index d3203c5..45b7679 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 3744a32..e858930 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;