diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b8cf2b43c2..7bb47591f55 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 * Makefile.in (OBJ, GEN, RTL_H): Add genrtl.[oh] bits. diff --git a/gcc/regclass.c b/gcc/regclass.c index 16f886ed41e..62247ea6b5f 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -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