This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Don't lose asm sets of frame pointer
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 5 Dec 2003 02:23:58 -0800
- Subject: Re: Don't lose asm sets of frame pointer
- References: <20031124151951.GA2521@bubble.sa.bigpond.net.au>
On Tue, Nov 25, 2003 at 01:49:51AM +1030, Alan Modra wrote:
> #if FRAME_POINTER_REGNUM != HARD_FRAME_POINTER_REGNUM
> - SET_HARD_REG_BIT (eliminable_regset, HARD_FRAME_POINTER_REGNUM);
> - if (need_fp)
> - SET_HARD_REG_BIT (no_global_alloc_regs, HARD_FRAME_POINTER_REGNUM);
> + if (!regs_asm_clobbered[HARD_FRAME_POINTER_REGNUM])
> + {
> + SET_HARD_REG_BIT (eliminable_regset, HARD_FRAME_POINTER_REGNUM);
> + if (need_fp)
> + SET_HARD_REG_BIT (no_global_alloc_regs, HARD_FRAME_POINTER_REGNUM);
> + }
Patch ok if you add an error for regs_asm_clobbered && need_fp.
r~