Commit ff4f03c3 by Jakub Jelinek Committed by Jakub Jelinek

re PR bootstrap/43287 (Bootstrap fails at stage 1 on powerpc-apple-darwin9)

	PR bootstrap/43287
	* config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
	UNSPEC_MACHOPIC_OFFSET.

From-SVN: r157334
parent 9473ebb1
2010-03-10 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/43287
* config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
UNSPEC_MACHOPIC_OFFSET.
2010-03-09 Andreas Schwab <schwab@linux-m68k.org> 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
PR target/43294 PR target/43294
......
...@@ -5298,6 +5298,16 @@ rs6000_delegitimize_address (rtx orig_x) ...@@ -5298,6 +5298,16 @@ rs6000_delegitimize_address (rtx orig_x)
return orig_x; return orig_x;
} }
if (TARGET_MACHO
&& GET_CODE (orig_x) == LO_SUM
&& GET_CODE (XEXP (x, 1)) == CONST)
{
y = XEXP (XEXP (x, 1), 0);
if (GET_CODE (y) == UNSPEC
&& XINT (y, 1) == UNSPEC_MACHOPIC_OFFSET)
return XVECEXP (y, 0, 0);
}
return orig_x; return orig_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