regclass.c (record_address_regs): Don't use REG_OK_FOR_BASE_P if it is not defined.

* regclass.c (record_address_regs): Don't use REG_OK_FOR_BASE_P
        if it is not defined.

From-SVN: r17314
This commit is contained in:
Jeffrey A Law 1998-01-10 19:30:33 +00:00 committed by Jeff Law
parent 9e28580c86
commit 3f9e9508c3
2 changed files with 7 additions and 0 deletions

View 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.

View 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