PATCH ARM make thumb-state address validation code into functions.

Richard Earnshaw rearnsha@arm.com
Thu Jan 23 18:13:00 GMT 2003


This is the corresponding change for Thumb-state to the change I committed 
yesterday for ARM state addressing.

2003-01-23  Richard Earnshaw  <rearnsha@arm.com>

	* arm.c (thumb_base_register_rtx_p): New function.
	(thumb_index_register_rtx_p): New function.
	(thumb_legitimate_address_p): New function.
	(thumb_legitimate_offset_p): New function.
	* arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
	(ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid dumplicate
	definitions.
	(THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
	(THUMB_LEGITIMATE_OFFSET): Delte.
	(THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
	* arm-protos.h (thumb_legitimate_address_p): Add prototype.
	(thumb_legitimate_offset_p): Likewise.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: thumb-leg-addr.patch
Type: application/x-patch
Size: 17244 bytes
Desc: thumb-leg-addr.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030123/7f8971df/attachment.bin>


More information about the Gcc-patches mailing list