PATCH 1: Re: BOOTSTRAP FAILURE: segementation fault in genattrtab under hpux

law@redhat.com law@redhat.com
Mon Nov 20 20:40:00 GMT 2000


  In message < 200011181939.OAA10162@hiauly1.hia.nrc.ca >you write:
  > >   > I think the reversal occurs because r3 is being used as an index regi
  > ster.
  > >   > There is stuff in the machine definition like this:
  > > I seriously doubt it since hard_frame_pointer_rtx shouldn't have %r3 as
  > > its value unless %r3 really is the frame pointer.  ie, if the frame point
  > er
  > > is eliminated %r3 should not be the value of hard_frame_pointer_rtx.
  > > jeff
  > 
  > The following patch resolves the above issue (ie, after reload starts,
  > gen_rtx_REG should should not return the frame_pointer_rtx for the frame
  > pointer register number).  Tested with a full bootstrap and check under
  > hpux 10.20.
  > 
  > Please review for installation.
It seems to me that we should return the hard frame pointer if it is
being used that way.  Else we should not.

ie, if we did not eliminate the frame pointer, then returning frame_pointer_rtx
would be the right thing to do.

If we did eliminate the frame pointer, then we do not want to return
frame_pointer_rtx.

jeff



More information about the Gcc-patches mailing list