* Fix PR bootstrap/48168
@ 2011-03-20 21:50 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2011-03-20 21:50 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 346 bytes --]
This is the Ada bootstrap failure on SPARC caused by the recent VTA changes.
As on other platforms, the delegitimize_address routine needs to be enhanced.
Applied on the mainline.
2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
PR bootstrap/48168
* config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
--
Eric Botcazou
[-- Attachment #2: pr48168.diff --]
[-- Type: text/x-diff, Size: 774 bytes --]
Index: config/sparc/sparc.c
===================================================================
--- config/sparc/sparc.c (revision 171159)
+++ config/sparc/sparc.c (working copy)
@@ -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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-20 21:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-20 21:50 Fix PR bootstrap/48168 Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).