Use gen_rtx_REG to set pic_offset_table_rtx

* config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
	set pic_offset_table_rtx.

From-SVN: r217448
This commit is contained in:
H.J. Lu 2014-11-12 21:50:20 +00:00 committed by H.J. Lu
parent 050af1445b
commit f03cee1186
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
set pic_offset_table_rtx.
2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
* common/config/mips/mips-common.c (mips_handle_option): Ensure

View File

@ -42697,7 +42697,7 @@ x86_output_mi_thunk (FILE *file, tree, HOST_WIDE_INT delta,
// uninitialized. Since FUNCTION is local and calling it
// doesn't go through PLT, we use scratch register %r11 as
// PIC register and initialize it here.
SET_REGNO (pic_offset_table_rtx, R11_REG);
pic_offset_table_rtx = gen_rtx_REG (Pmode, R11_REG);
ix86_init_large_pic_reg (tmp_regno);
fnaddr = legitimize_pic_address (fnaddr,
gen_rtx_REG (Pmode, tmp_regno));