[PATCH] sh64: prepare_move_operand fix

Clarke, Stephen stephen.clarke@superh.com
Wed Aug 7 11:52:00 GMT 2002


The attached file contains a patch for sh64 that prevents
prepare_move_operand from calling target_reg_operand when
compiling for a target that does not have branch target
registers.

There isn't currently a problem, as target_reg_operand
happens to return false for all 32-bit targets, and
the targets with branch target registers are 64-bit.
However, this seems to be accidental, and thus fragile.

Regression tested on sh-elf/sh-hms-sim and sh64-elf/sh64-sim.

Steve.
--
Stephen Clarke, Principal Engineer, SuperH Inc.
Phone:1-408-273-3146, Fax:1-408-273-3199, mailto:Stephen.Clarke@superh.com
Mail:  SuperH Inc., 405 River Oaks Pkwy, San Jose, CA 95134, USA.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prepare-move-operand.patch
Type: application/octet-stream
Size: 1033 bytes
Desc: prepare-move-operand.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20020807/be0ffa8c/attachment.obj>


More information about the Gcc-patches mailing list