diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2014-11-12 21:50:20 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2014-11-12 13:50:20 -0800 |
commit | f03cee1186e8cf919af19e5941492d20bdcfa860 (patch) | |
tree | 02fef18fe76329ee87494c3915f9796744a55ea8 /gcc | |
parent | 050af1445b878d2a8a070f4c2ad602cbe80f8d73 (diff) | |
download | gcc-f03cee1186e8cf919af19e5941492d20bdcfa860.zip gcc-f03cee1186e8cf919af19e5941492d20bdcfa860.tar.gz gcc-f03cee1186e8cf919af19e5941492d20bdcfa860.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a15bfd2..15a55c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 3d7e057..b70c56c 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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)); |