sh-protos.h (sh_legitimate_index_p): Declare.
authorKaz Kojima <kkojima@gcc.gnu.org>
Tue, 12 May 2009 22:41:54 +0000 (22:41 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Tue, 12 May 2009 22:41:54 +0000 (22:41 +0000)
commitcdeed45ae6332ad98f220653878c11e6208a267f
treeb112c515e96cb3fc7c38e8b52a67d03c6f1e859c
parent1195342643fe340155fe865f734e679552b751c6
sh-protos.h (sh_legitimate_index_p): Declare.

* config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
(sh_legitimate_address_p): Likewise.
* config/sh/sh.c (sh_legitimate_index_p): New.
(sh_legitimate_address_p): Likewise.
* config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
(REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
(MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
(MAYBE_BASE_REGISTER_RTX_P): New macro.
(MAYBE_INDEX_REGISTER_RTX_P): Likewise.
(BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
(INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
(GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
(GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.

From-SVN: r147450
gcc/ChangeLog
gcc/config/sh/sh-protos.h
gcc/config/sh/sh.c
gcc/config/sh/sh.h