mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 17:59:52 +08:00
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:
parent
e564e61805
commit
751551d5c6
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user