Re: [RFC] [PR 68191] s390: Add -fsplit-stack support.

2016-01-03 Thread Marcin Kościelnicki
On 03/01/16 04:20, Ian Lance Taylor wrote: On Sat, Jan 2, 2016 at 11:16 AM, Marcin Kościelnicki wrote: The differences start in the __morestack calling convention. Basically, since pushing things on stuck is unwieldy and there's only one free register (%r0 could be used for static chain, %r2-

Re: [RFC] [PR 68191] s390: Add -fsplit-stack support.

2016-01-03 Thread Marcin Kościelnicki
On 03/01/16 04:20, Ian Lance Taylor wrote: On Sat, Jan 2, 2016 at 11:16 AM, Marcin Kościelnicki wrote: The differences start in the __morestack calling convention. Basically, since pushing things on stuck is unwieldy and there's only one free register (%r0 could be used for static chain, %r2-

Re: [RFC] [PR 68191] s390: Add -fsplit-stack support.

2016-01-02 Thread Ian Lance Taylor
On Sat, Jan 2, 2016 at 11:16 AM, Marcin Kościelnicki wrote: > > The differences start in the __morestack calling convention. Basically, > since pushing things on stuck is unwieldy and there's only one free > register (%r0 could be used for static chain, %r2-%r6 contain arguments, > %r6-%r15 are c

[RFC] [PR 68191] s390: Add -fsplit-stack support.

2016-01-02 Thread Marcin Kościelnicki
Here's my attempt at adding -fsplit-stack support for s390 targets (bug 68191). Patches 1 and 2 fix s390-specific issues affecting split stack code, and can be pushed independently of the main course. Patches 3 and 4 attempt to fix target-independent issues involving unconditional jumps with side