From 2d67bd7be1d6a84cacc7e3e81edbbd2a28a1ecd7 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Tue, 29 Jan 2002 00:45:55 +0000 Subject: emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM is a fixed register before returning... * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM is a fixed register before returning pic_offset_table_rtx. * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined. From-SVN: r49304 --- gcc/emit-rtl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/emit-rtl.c') diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 2f3e100..0506a49 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -411,7 +411,8 @@ gen_rtx_REG (mode, regno) if (regno == RETURN_ADDRESS_POINTER_REGNUM) return return_address_pointer_rtx; #endif - if (regno == PIC_OFFSET_TABLE_REGNUM) + if (regno == PIC_OFFSET_TABLE_REGNUM + && fixed_regs[PIC_OFFSET_TABLE_REGNUM]) return pic_offset_table_rtx; if (regno == STACK_POINTER_REGNUM) return stack_pointer_rtx; -- cgit v1.1