]> gcc.gnu.org Git - gcc.git/commitdiff
function.c: (instantiate_virtual_regs_1...
authorDoug Evans <dje@gnu.org>
Fri, 24 Sep 1993 19:42:16 +0000 (19:42 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 24 Sep 1993 19:42:16 +0000 (19:42 +0000)
* 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

index 1a3a375dab96fe6822c31484e2c6e8261d658879..f023d4fb7fe4b337b95cbc8c68aaaa8a10d27fef 100644 (file)
@@ -2603,6 +2603,9 @@ instantiate_virtual_regs_1 (loc, object, extra_insns)
       if (CONSTANT_ADDRESS_P (temp)
 #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;
@@ -2610,6 +2613,9 @@ instantiate_virtual_regs_1 (loc, object, extra_insns)
       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
This page took 0.06314 seconds and 5 git commands to generate.