This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in simplify_subreg?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]