mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 23:25:36 +08:00
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:
parent
73d2e138b1
commit
6ca19a974b
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user