https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53988
--- Comment #6 from Oleg Endo <olegendo at gcc dot gnu.org> --- Author: olegendo Date: Mon Jan 19 22:35:53 2015 New Revision: 219864 URL: https://gcc.gnu.org/viewcvs?rev=219864&root=gcc&view=rev Log: gcc/ PR target/53988 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return nullptr for insn when reaching the first insn. * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator. (sh_insn_operands_modified_between_p): Add nullptr check. (sh_find_extending_set_of_reg): Fix log message. Don't accept sign extending mem load if the insn contains any UNSPEC or UNSPEC_VOLATILE. Modified: trunk/gcc/ChangeLog trunk/gcc/config/sh/sh-protos.h trunk/gcc/config/sh/sh.c