From b37f453b2a825e6d8d1dbb4b9fef5edbba9a5f8d Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 24 Sep 1993 19:42:16 +0000 Subject: function.c: (instantiate_virtual_regs_1... * function.c: (instantiate_virtual_regs_1, case MEM): references to MEM via the hard frame pointer shouldn't be copied. From-SVN: r5456 --- gcc/function.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc') diff --git a/gcc/function.c b/gcc/function.c index 1a3a375..f023d4fb 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -2604,12 +2604,18 @@ instantiate_virtual_regs_1 (loc, object, extra_insns) #if FRAME_POINTER_REGNUM != ARG_POINTER_REGNUM || temp == arg_pointer_rtx #endif +#if HARD_FRAME_POINTER_REGNUM != FRAME_POINTER_REGNUM + || temp == hard_frame_pointer_rtx +#endif || temp == frame_pointer_rtx) return 1; if (GET_CODE (temp) == PLUS && CONSTANT_ADDRESS_P (XEXP (temp, 1)) && (XEXP (temp, 0) == frame_pointer_rtx +#if HARD_FRAME_POINTER_REGNUM != FRAME_POINTER_REGNUM + || XEXP (temp, 0) == hard_frame_pointer_rtx +#endif #if FRAME_POINTER_REGNUM != ARG_POINTER_REGNUM || XEXP (temp, 0) == arg_pointer_rtx #endif -- cgit v1.1