Another minor tweak to the SPARC back-end

Eric Botcazou ebotcazou@libertysurf.fr
Tue Jul 6 13:32:00 GMT 2004


I've always found UNSPEC_GET_PC and get_pc to be poorly evocative.  Also the 
pattern could be reused for something else than loading the PIC register.

Bootstrapped/regtested on sparc64-sun-solaris2.9 and sparc-sun-solaris2.8.

Applied to mainline.


2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* config/sparc/sparc.c (get_pc_symbol): Rename into
	add_pc_to_pic_symbol.
	(get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
	(load_pic_register): Account for previous changes.
	Use reg_names.  Don't create the label twice.
	* config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
	UNSPEC_LOAD_PCREL_SYM.
	(get_pc): Rename into load_pcrel_sym.  Add predicate to
	operands.  Remove condition.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc_tweak-2.diff
Type: text/x-diff
Size: 3986 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040706/09d3075b/attachment.bin>


More information about the Gcc-patches mailing list