Commit 6ca19a97 by Ulrich Weigand Committed by Ulrich Weigand

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
parent 73d2e138
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment