emit-rtl.c (gen_rtx_REG): Always return the same rtx for PIC_OFFSET_TABLE_REGNUM.

* emit-rtl.c (gen_rtx_REG): Always return the same rtx
        for PIC_OFFSET_TABLE_REGNUM.
        (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.

From-SVN: r49234
This commit is contained in:
Steve Ellcey 2002-01-26 01:29:55 +00:00 committed by Richard Henderson
parent e564e61805
commit 751551d5c6
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-01-25 Steve Ellcey <sje@cup.hp.com>
* emit-rtl.c (gen_rtx_REG): Always return the same rtx
for PIC_OFFSET_TABLE_REGNUM.
(init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
2002-01-25 David O'Brien <obrien@FreeBSD.org>
* config.gcc (x86_64-*-freebsd*): New target.

View File

@ -410,6 +410,8 @@ gen_rtx_REG (mode, regno)
if (regno == RETURN_ADDRESS_POINTER_REGNUM)
return return_address_pointer_rtx;
#endif
if (regno == PIC_OFFSET_TABLE_REGNUM)
return pic_offset_table_rtx;
if (regno == STACK_POINTER_REGNUM)
return stack_pointer_rtx;
}
@ -4974,7 +4976,7 @@ init_emit_once (line_numbers)
#endif
if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM)
pic_offset_table_rtx = gen_rtx_REG (Pmode, PIC_OFFSET_TABLE_REGNUM);
pic_offset_table_rtx = gen_raw_REG (Pmode, PIC_OFFSET_TABLE_REGNUM);
ggc_add_rtx_root (&pic_offset_table_rtx, 1);
ggc_add_rtx_root (&struct_value_rtx, 1);