aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2002-01-29 00:45:55 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2002-01-29 00:45:55 +0000
commit2d67bd7be1d6a84cacc7e3e81edbbd2a28a1ecd7 (patch)
tree14250d69bb7ca4ce0b44c6068676f6ad5414081b /gcc/loop.c
parent5a852b3eb004a08ff70cad765ec6a740e3a9db31 (diff)
downloadgcc-2d67bd7be1d6a84cacc7e3e81edbbd2a28a1ecd7.zip
gcc-2d67bd7be1d6a84cacc7e3e81edbbd2a28a1ecd7.tar.gz
gcc-2d67bd7be1d6a84cacc7e3e81edbbd2a28a1ecd7.tar.bz2
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
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index ebd59af..5df0866 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -762,6 +762,9 @@ scan_loop (loop, flags)
if (GET_CODE (p) == INSN
&& (set = single_set (p))
&& GET_CODE (SET_DEST (set)) == REG
+#ifdef PIC_OFFSET_TABLE_REG_CALL_CLOBBERED
+ && SET_DEST (set) != pic_offset_table_rtx
+#endif
&& ! regs->array[REGNO (SET_DEST (set))].may_not_optimize)
{
int tem1 = 0;