Commit 77253e56 by Kaz Kojima

re PR target/37909 (internal compiler error: in fixup_mova, at config/sh/sh.c:3756)

	PR target/37909
	* config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
	no address.

From-SVN: r141452
parent b4cb33a1
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
......
......@@ -3826,6 +3826,10 @@ untangle_mova (int *num_mova, rtx *first_mova, rtx new_mova)
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment