m68hc11.c (m68hc11_addr_mode): New variable.
authorStephane Carrez <stcarrez@nerim.fr>
Tue, 2 Mar 2004 22:40:57 +0000 (23:40 +0100)
committerStephane Carrez <ciceron@gcc.gnu.org>
Tue, 2 Mar 2004 22:40:57 +0000 (23:40 +0100)
commitde70723b1d7a97c50386a44ec93bb81580947e7f
tree658e9739cd9735ba9bb88ca14c4590094d5a4506
parentd6da68b9d4dec53bfd5d0ac6b80847cbc65eb806
m68hc11.c (m68hc11_addr_mode): New variable.

* config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
(m68hc11_mov_addr_mode): Likewise.
(m68hc11_override_options): Initialize them based on target.
(register_indirect_p): Allow a MEM for indirect addressing modes and
use flags to control what is allowed.
(m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
supported addressing modes.
(m68hc11_register_indirect_p): Use m68hc11_addr_mode.
(go_if_legitimate_address_internal): Likewise.
(m68hc11_indirect_p): Likewise and check the mode.
(print_operand): Allow a (MEM (MEM)) and generate indirect addressing.

From-SVN: r78792
gcc/ChangeLog
gcc/config/m68hc11/m68hc11.c