Re: [PATCH 1/2] rs6000: Another PIC LRA fix

2015-10-31 Thread David Edelsohn
On Sat, Oct 31, 2015 at 1:39 PM, Segher Boessenkool wrote: > This one for TARGET_TOC && TARGET_MINIMAL_TOC. Without it, r30 is not > saved in the prologue for functions that do not use r30, but the register > is set later in the prologue anyhow. This made all java

[PATCH 1/2] rs6000: Another PIC LRA fix

2015-10-31 Thread Segher Boessenkool
This one for TARGET_TOC && TARGET_MINIMAL_TOC. Without it, r30 is not saved in the prologue for functions that do not use r30, but the register is set later in the prologue anyhow. This made all java tests fail. Tested on powerpc64-linux, --enable-languages=all,ada,go,obj-c++ and test variants