From 3f9e9508c3b4e72a3a0234d87d35421055db64ae Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Sat, 10 Jan 1998 19:30:33 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/regclass.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b8cf2b43c2b..7bb47591f55d 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 16f886ed41ee..62247ea6b5fd 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 -- 2.43.5