Re: [PATCH] rs6000: Save the PIC reg when needed

2015-10-29 Thread David Edelsohn
On Thu, Oct 29, 2015 at 12:52 PM, Segher Boessenkool wrote: > The PIC reg (r30) needs to be saved whenever the prologue sets it up, > not just if it is used elsewhere in the function. Without this patch > the prologue for such a function will modify r30 without saving it > first, leading to disas

[PATCH] rs6000: Save the PIC reg when needed

2015-10-29 Thread Segher Boessenkool
The PIC reg (r30) needs to be saved whenever the prologue sets it up, not just if it is used elsewhere in the function. Without this patch the prologue for such a function will modify r30 without saving it first, leading to disaster back in its callers. This happened in the testsuite for -m32 lib