This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in simplify_subreg?
- From: Lars Brinkhoff <lars dot spam at nocrew dot org>
- To: Richard dot Earnshaw at arm dot com
- Cc: Richard Henderson <rth at redhat dot com>, gcc at gcc dot gnu dot org
- Date: 05 Aug 2002 14:43:06 +0200
- Subject: Re: Bug in simplify_subreg?
- Organization: nocrew
- References: <200208051227.NAA21312@cam-mail2.cambridge.arm.com>
Richard Earnshaw <rearnsha@arm.com> writes:
> > Since outermode==SImode==Pmode and reload_in_progress==0,
> > gen_reg_RTX returns frame_pointer_rtx to simplify_subreg. And so
> > ORIGINAL_REGNO of frame_pointer_rtx is clobbered.
> It's probable that on many machines we can accurately guess whether a
> frame pointer is needed or not before reload starts to run, but there's no
> way to be sure.
Ok, then how about doing
ORIGINAL_REGNO (frame_pointer_rtx) = FRAME_POINTER_REGNUM;
after compilation of every function?
Any other suggestions?
--
Lars Brinkhoff http://lars.nocrew.org/ Linux, GCC, PDP-10,
Brinkhoff Consulting http://www.brinkhoff.se/ HTTP programming