regclass.c (record_address_regs): Don't use REG_OK_FOR_BASE_P if it is not defined.
authorJeffrey A Law <law@cygnus.com>
Sat, 10 Jan 1998 19:30:33 +0000 (19:30 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 10 Jan 1998 19:30:33 +0000 (12:30 -0700)
        * regclass.c (record_address_regs): Don't use REG_OK_FOR_BASE_P
        if it is not defined.

From-SVN: r17314

gcc/ChangeLog
gcc/regclass.c

index 3b8cf2b43c2b6f128516525b7d4dd7b88b2d22eb..7bb47591f55d5decf25cbefe269af5b7efcdee03 100644 (file)
@@ -1,3 +1,8 @@
+Sat Jan 10 20:30:12 1998  Jeffrey A Law  (law@cygnus.com)
+       * regclass.c (record_address_regs): Don't use REG_OK_FOR_BASE_P
+       if it is not defined.
 Thu Jan  8 21:06:54 1998  Richard Henderson  <rth@cygnus.com>
 
        * Makefile.in (OBJ, GEN, RTL_H): Add genrtl.[oh] bits.
index 16f886ed41ee8299a978770e37794366b3d4241a..62247ea6b5fd8d1c4a2de514f1dbc8ace206fd48 100644 (file)
@@ -1546,6 +1546,7 @@ record_address_regs (x, class, scale)
           of index or base class, give the other the class that the hard
           register is not.  */
 
+#ifdef REG_OK_FOR_BASE_P
        else if (code0 == REG && code1 == REG
                 && REGNO (arg0) < FIRST_PSEUDO_REGISTER
                 && (REG_OK_FOR_BASE_P (arg0) || REG_OK_FOR_INDEX_P (arg0)))
@@ -1560,6 +1561,7 @@ record_address_regs (x, class, scale)
                               REG_OK_FOR_BASE_P (arg1)
                               ? INDEX_REG_CLASS : BASE_REG_CLASS,
                               scale);
+#endif
 
        /* If one operand is known to be a pointer, it must be the base
           with the other operand the index.  Likewise if the other operand