reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno, against FIRST_P...
authorDavid Edelsohn <edelsohn@gnu.org>
Wed, 4 Feb 2004 22:35:46 +0000 (22:35 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 4 Feb 2004 22:35:46 +0000 (17:35 -0500)
* reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
against FIRST_PSEUDO_REGISTER.

From-SVN: r77276

gcc/ChangeLog
gcc/reload.c

index b5ddc26..853884c 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-04  David Edelsohn  <edelsohn@gnu.org>
+
+       * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
+       against FIRST_PSEUDO_REGISTER.
+
 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        * Makefile.in: Move target, host overrides after per-language
index 92c3c47..ea5b6f5 100644 (file)
@@ -6188,7 +6188,7 @@ refers_to_regno_for_reload_p (unsigned int regno, unsigned int endregno,
        {
          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;