[Xtensa] move macros into functions
Bob Wilson
bwilson@tensilica.com
Sat Feb 3 01:25:00 GMT 2007
This patch replaces some big macros in xtensa.h with calls to equivalent
functions in xtensa.c. Tested with an xtensa-elf build and committed on the
mainline.
2007-02-02 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
(xtensa_legitimate_address_p): New.
(xtensa_legitimize_address): New.
(xtensa_output_addr_const_extra): New.
* config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
(BASE_REG_P): New.
(REG_OK_FOR_BASE_P): Use BASE_REG_P.
(GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
(LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
(OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
* config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
(xtensa_legitimize_address): New.
(xtensa_output_addr_const_extra): New.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-cleanup.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070203/cf6bce67/attachment.ksh>
More information about the Gcc-patches
mailing list