[SPARC] Preparatory work for switch to LRA
Eric Botcazou
ebotcazou@adacore.com
Thu Dec 1 21:43:00 GMT 2016
The switch will very likely not happen for GCC 7, but an experimental support
can probably be introduced. The attached patch adds the famous -mlra option
and rescues straightforward changes by DaveM.
Tested on SPARC/Solaris, applied on the mainline.
2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
David S. Miller <davem@davemloft.net>
* config/sparc/sparc.opt (mlra): New target option.
* config/sparc/sparc.c (TARGET_LRA_P): Define to...
(sparc_lra_p): ...this. New function.
(D_MODES, DF_MODES): Add missing cast.
* config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
provide these insns when flag_pic.
(sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
embmedany_brsum, embmedany_textuhi, embmedany_texthi,
embmedany_textulo, embmedany_textlo): Likewise.
(sethi_di_medlow_embmedany_pic): Provide it only when flag_pic.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc_lra.diff
Type: text/x-patch
Size: 9404 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161201/1ac755ee/attachment.bin>
More information about the Gcc-patches
mailing list