PR target/37909
* config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
no address.
From-SVN: r141452
+2008-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
+
+ PR target/37909
+ * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
+ no address.
+
2008-10-29 David Edelsohn <edelsohn@gnu.org>
PR target/37878
if (optimize)
{
+ /* If NEW_MOVA has no address yet, it will be handled later. */
+ if (INSN_ADDRESSES_SIZE() <= (unsigned) INSN_UID (new_mova))
+ return -1;
+
n_addr = INSN_ADDRESSES (INSN_UID (new_mova));
n_target = INSN_ADDRESSES (INSN_UID (XEXP (MOVA_LABELREF (new_mova), 0)));
if (n_addr > n_target || n_addr + 1022 < n_target)