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: SH PIC prologue/epilogue fixes



  In message <orvgvwfrkp.fsf@guarana.lsd.ic.unicamp.br>you write:
  > --=-=-=
  > 
  > The first part of this patch fixes gcc.dg/noncompile/930714-1.c with
  > `-fPIC -m4 -O[1-3]'.  I don't have a testcase that would trigger the
  > latent bug fixed by the second part of the patch, but it was blatantly
  > wrong.  Ok to install?
  > 
  > 
  > --=-=-=
  > Content-Type: text/x-patch
  > Content-Disposition: inline; filename=shpic-prepilogue.patch
  > 
  > Index: gcc/ChangeLog
  > from  Alexandre Oliva  <aoliva@redhat.com>
  > 
  > 	* config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
  > 	MAYBE_DEAD.
  > 	(sh_expand_epilogue): Take d the PIC register into account when
  > 	computing the frame size.
Approved.  THough I would tweak the sh_expand_epilouge ChangeLog entry a
little.  "Take d"???  




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