spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC registers in leaf functions if possible.

* config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
	registers in leaf functions if possible.

From-SVN: r154245
This commit is contained in:
Ulrich Weigand 2009-11-17 13:25:54 +00:00 committed by Ulrich Weigand
parent 73d2e138b1
commit 6ca19a974b
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
registers in leaf functions if possible.
2009-11-17 Maxim Kuvyrkov <maxim@codesourcery.com>
* config/m68k/m68k-devices.def: Add MCF5441x family.

View File

@ -1710,6 +1710,8 @@ get_pic_reg (void)
rtx pic_reg = pic_offset_table_rtx;
if (!reload_completed && !reload_in_progress)
abort ();
if (current_function_is_leaf && !df_regs_ever_live_p (LAST_ARG_REGNUM))
pic_reg = gen_rtx_REG (SImode, LAST_ARG_REGNUM);
return pic_reg;
}