This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: RL78: Save the frame pointer if it is used.
- From: DJ Delorie <dj at redhat dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 May 2015 15:12:23 -0400
- Subject: Re: RFA: RL78: Save the frame pointer if it is used.
- Authentication-results: sourceware.org; auth=none
- References: <876187dr2n dot fsf at redhat dot com>
> OK to apply ?
Ok, but...
> - if (regno == FRAME_POINTER_REGNUM && frame_pointer_needed)
> + if (regno == FRAME_POINTER_REGNUM
> + && (frame_pointer_needed || df_regs_ever_live_p (regno)))
Do we want regs_ever_live or regs_ever_written_to ? I seem to recall
changing a port... mep perhaps... to only save registers that are
changed, not registers that are used but read-only.