Re: [PATCH] rs6000: Fix allocate_stack in a corner case (PR91289)

2019-11-05 Thread Segher Boessenkool
On Sat, Oct 26, 2019 at 04:35:04PM +, Segher Boessenkool wrote: > When we have -fstack-limit-symbol with sysv we can end up with a non- > existing instruction (you cannot add an immediate to register 0). Fix > this by using register 11 instead. It might be used for something else > already th

[PATCH] rs6000: Fix allocate_stack in a corner case (PR91289)

2019-10-26 Thread Segher Boessenkool
When we have -fstack-limit-symbol with sysv we can end up with a non- existing instruction (you cannot add an immediate to register 0). Fix this by using register 11 instead. It might be used for something else already though, so save and restore its value around this. In optimizing compiles the