mn10300-protos.h (legitimate_address_p): Declare.
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 28 Jun 2004 08:13:06 +0000 (08:13 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Mon, 28 Jun 2004 08:13:06 +0000 (08:13 +0000)
commite733134f02f87e7f7bb595f3edca602c4102e3f9
tree74d147dba6a70b9b8f9d7d0495232f7f2298a8a5
parent0a73e37f4f131d0581df2b6b6df19b03d6903ee2
mn10300-protos.h (legitimate_address_p): Declare.

* config/mn10300/mn10300-protos.h (legitimate_address_p): Declare.
* config/mn10300/mn10300.c (legitimate_address_p): New.  Test that
index is legitimate, compared with code moved from...
* config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): here.
(REG_STRICT): Define, according to REG_OK_STRICT.
(REGNO_IN_RANGE_P, REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P,
REGNO_EXTENDED_P, REGNO_AM33_P, REGNO_FP_P): Introduce strict
argument.
(REGNO_STRICT_OK_FOR_BASE_P, REGNO_STRICT_OK_FOR_BIT_BASE_P,
REGNO_STRICT_OK_FOR_INDEX_P): New.
(REGNO_OK_FOR_BASE_P, REG_OK_FOR_BASE_P, REGNO_OK_FOR_BIT_BASE_P,
REG_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P,
RTX_OK_FOR_BASE_P): Use them.

From-SVN: r83766
gcc/ChangeLog
gcc/config/mn10300/mn10300-protos.h
gcc/config/mn10300/mn10300.c
gcc/config/mn10300/mn10300.h