aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-01-10 19:30:33 +0000
committerJeff Law <law@gcc.gnu.org>1998-01-10 12:30:33 -0700
commit3f9e9508c3b4e72a3a0234d87d35421055db64ae (patch)
treefe140840e3c7a654817a49b472928c669b460a14 /gcc
parent9e28580c86a71602740377b38f4b48bea079817a (diff)
downloadgcc-3f9e9508c3b4e72a3a0234d87d35421055db64ae.zip
gcc-3f9e9508c3b4e72a3a0234d87d35421055db64ae.tar.gz
gcc-3f9e9508c3b4e72a3a0234d87d35421055db64ae.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/regclass.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3b8cf2b..7bb4759 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 <rth@cygnus.com>
* Makefile.in (OBJ, GEN, RTL_H): Add genrtl.[oh] bits.
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 16f886e..62247ea 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