From: H.J. Lu Date: Wed, 12 Nov 2014 21:50:20 +0000 (+0000) Subject: Use gen_rtx_REG to set pic_offset_table_rtx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f03cee1186e8cf919af19e5941492d20bdcfa860;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a15bfd2c5cc..15a55c069f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-12 H.J. Lu + + * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to + set pic_offset_table_rtx. + 2014-11-12 Matthew Fortune * 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 3d7e057e64a..b70c56c600b 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));