This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] sh64: prepare_move_operand fix


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.

Attachment: prepare-move-operand.patch
Description: prepare-move-operand.patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]