[PATCHv2] PowerPC: Add msingle-pic-base option.

Joakim Tjernlund joakim.tjernlund@transmode.se
Tue Nov 30 10:22:00 GMT 2010


Nathan Froyd <froydnj@codesourcery.com> wrote on 2010/11/30 02:49:41:
>
> On Mon, Nov 29, 2010 at 05:11:00PM -0500, David Edelsohn wrote:
> > On Mon, Nov 29, 2010 at 3:07 AM, Joakim Tjernlund
> > <joakim.tjernlund@transmode.se> wrote:
> > > David Edelsohn <dje.gcc@gmail.com> wrote on 2010/11/29 01:24:22:
> > >> This patch is okay, but would you please make the order consistent in
> > >> the first hunk so both are
> > >>
> > >> (reg == RS6000_PIC_OFFSET_TABLE_REGNUM
> > >>              && !TARGET_SINGLE_PIC_BASE
> > >
> > > Sure, like this?
> >
> > Yes.
>
> Given David's OK, I have committed the patch on Joakim's behalf with the
> following ChangeLog as r167283:
>
> 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
>
>    * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
>    TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
>    (rs6000_emit_prologue): Don't set PIC register if
>    TARGET_SINGLE_PIC_BASE.
>    * config/rs6000/rs6000.opt (msingle-pic-base): New option.
>    * doc/invoke.texi (msingle-pic-base): Document.

Thank you!

In what release will this be in?

         Jocke



More information about the Gcc-patches mailing list