Commit 751551d5 by Steve Ellcey Committed by Richard Henderson

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
parent e564e618
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment