Re: [PATCH, rs6000] Don't mark the TOC reg as set up in prologue

2017-09-14 Thread Alan Modra
On Thu, Sep 14, 2017 at 11:39:54AM -0500, Segher Boessenkool wrote: > [ pressed send too early ] > > On Thu, Sep 14, 2017 at 10:18:55AM -0500, Pat Haugen wrote: > > --- gcc/config/rs6000/rs6000.c (revision 252029) > > +++ gcc/config/rs6000/rs6000.c (working copy) > > @@ -37807,6 +37807,1

Re: [PATCH, rs6000] Don't mark the TOC reg as set up in prologue

2017-09-14 Thread Segher Boessenkool
On Thu, Sep 14, 2017 at 11:53:02AM -0500, Pat Haugen wrote: > On 09/14/2017 11:35 AM, Segher Boessenkool wrote: > > On Thu, Sep 14, 2017 at 10:18:55AM -0500, Pat Haugen wrote: > >> --- gcc/config/rs6000/rs6000.c (revision 252029) > >> +++ gcc/config/rs6000/rs6000.c (working copy) > >> @@ -3

Re: [PATCH, rs6000] Don't mark the TOC reg as set up in prologue

2017-09-14 Thread Segher Boessenkool
[ pressed send too early ] On Thu, Sep 14, 2017 at 10:18:55AM -0500, Pat Haugen wrote: > --- gcc/config/rs6000/rs6000.c(revision 252029) > +++ gcc/config/rs6000/rs6000.c(working copy) > @@ -37807,6 +37807,11 @@ rs6000_set_up_by_prologue (struct hard_r > add_to_hard_reg_set (&s

Re: [PATCH, rs6000] Don't mark the TOC reg as set up in prologue

2017-09-14 Thread Pat Haugen
On 09/14/2017 11:35 AM, Segher Boessenkool wrote: > On Thu, Sep 14, 2017 at 10:18:55AM -0500, Pat Haugen wrote: >> --- gcc/config/rs6000/rs6000.c (revision 252029) >> +++ gcc/config/rs6000/rs6000.c (working copy) >> @@ -37807,6 +37807,11 @@ rs6000_set_up_by_prologue (struct hard_r >>

Re: [PATCH, rs6000] Don't mark the TOC reg as set up in prologue

2017-09-14 Thread Segher Boessenkool
On Thu, Sep 14, 2017 at 10:18:55AM -0500, Pat Haugen wrote: > --- gcc/config/rs6000/rs6000.c(revision 252029) > +++ gcc/config/rs6000/rs6000.c(working copy) > @@ -37807,6 +37807,11 @@ rs6000_set_up_by_prologue (struct hard_r > add_to_hard_reg_set (&set->set, Pmode, RS6000_PIC_O

[PATCH, rs6000] Don't mark the TOC reg as set up in prologue

2017-09-14 Thread Pat Haugen
Revision 235876 inadvertently caused the TOC reg to be marked as set up in prologue, which prevents shrink-wrapping from moving the prologue past a TOC reference. The following patch corrects the situation. Bootstrap/regtest on powerpc64le-linux and powerpc64-linux(-m32/-m64) with no new regressio