Commit 806c3492 by Eric Botcazou Committed by Eric Botcazou

re PR bootstrap/48168 (Solaris 2/SPARC bootstrap broken: ICE in…

re PR bootstrap/48168 (Solaris 2/SPARC bootstrap broken: ICE in sparc_function_arg_1, at config/sparc/sparc.c:5721)

	PR bootstrap/48168
	* config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.

From-SVN: r171197
parent 65e0a0f3
2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
PR bootstrap/48168
* config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
2011-03-20 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/48156
......
......@@ -3661,6 +3661,18 @@ sparc_delegitimize_address (rtx x)
gcc_assert (GET_CODE (x) == SYMBOL_REF);
}
/* This is generated by mov{si,di}_pic_label_ref in PIC mode. */
if (GET_CODE (x) == MINUS
&& REG_P (XEXP (x, 0))
&& REGNO (XEXP (x, 0)) == PIC_OFFSET_TABLE_REGNUM
&& GET_CODE (XEXP (x, 1)) == LO_SUM
&& GET_CODE (XEXP (XEXP (x, 1), 1)) == UNSPEC
&& XINT (XEXP (XEXP (x, 1), 1), 1) == UNSPEC_MOVE_PIC_LABEL)
{
x = XVECEXP (XEXP (XEXP (x, 1), 1), 0, 0);
gcc_assert (GET_CODE (x) == LABEL_REF);
}
return x;
}
......
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