From 11c50c5efd0f85b2ae515d7b4fd6c3d6ae5d3ecf Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 24 Sep 1993 19:39:56 +0000 Subject: [PATCH] * explow.c: (copy_all_regs): Don't copy HARD_FRAME_POINTER_REGNUM. From-SVN: r5454 --- gcc/explow.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/explow.c b/gcc/explow.c index f13129fa034..f8d47517015 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -304,7 +304,11 @@ copy_all_regs (x) { if (GET_CODE (x) == REG) { - if (REGNO (x) != FRAME_POINTER_REGNUM) + if (REGNO (x) != FRAME_POINTER_REGNUM +#if HARD_FRAME_POINTER_REGNUM != FRAME_POINTER_REGNUM + && REGNO (x) != HARD_FRAME_POINTER_REGNUM +#endif + ) x = copy_to_reg (x); } else if (GET_CODE (x) == MEM) -- 2.30.2