This is the mail archive of the gcc-patches@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]

Re: Patch to improve PIC rtx_unstable_p & rtx_addr_can_trap


  In message <200008211736.NAA01357@jwlab.FEITH.COM>you write:
  > > > 	* rtlanal.c (rtx_unstable_p): The pic register is stable
  > > > 	(within one function) and the actual rtx should be used
  > > > 	when checking the registers.
  > > This is not necessarily true.  Consider a target where the PIC register
  > > is call-clobbered.  Probably the thing to do is check for that explicitly
  > .
  > 
  > I wondered about that, however the existing test in rtx_varies_p
  > doesn't check PIC_OFFSET_TABLE_REG_CALL_CLOBBERED so I made a leap
  > of faith and assumed that reload made sure that the pic register
  > has a valid value in this case.  I take it that this isn't true?
  > Should I go ahead and install the patch changing the check in
  > rtx_unstable_p from:
Based on Richard's comments, let's not worry about the problems with
call-clobbered PIC registers.  In theory, they shouldn't cause any problems :-)

jeff


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