Re: [rs6000] Do not generate sibling call to nested function

2018-09-25 Thread Eric Botcazou
> I'm seeing a testism on the GCC 7 branch due to the noipa attribute in the > testcase. I think it doesn't exist in GCC 7 so we're getting a test for > excess errors FAIL: > > warning: 'noipa' attribute directive ignored [-Wattributes] > > Any chance we can adjust the testcase? Yes, I did it ye

Re: [rs6000] Do not generate sibling call to nested function

2018-09-24 Thread Kyrill Tkachov
Hi Eric, On 18/09/18 15:56, Segher Boessenkool wrote: Hi! On Mon, Sep 17, 2018 at 11:11:53AM +0200, Eric Botcazou wrote: > more precisely, to a nested function that requires a static chain. The reason > is that the sibling call epilogue may clobber the static chain register r11. > > Tested on

Re: [rs6000] Do not generate sibling call to nested function

2018-09-18 Thread Segher Boessenkool
Hi! On Mon, Sep 17, 2018 at 11:11:53AM +0200, Eric Botcazou wrote: > more precisely, to a nested function that requires a static chain. The > reason > is that the sibling call epilogue may clobber the static chain register r11. > > Tested on PowerPC/Linux, OK for the mainline? > > > 2018-09-

[rs6000] Do not generate sibling call to nested function

2018-09-17 Thread Eric Botcazou
Hi, more precisely, to a nested function that requires a static chain. The reason is that the sibling call epilogue may clobber the static chain register r11. Tested on PowerPC/Linux, OK for the mainline? 2018-09-17 Eric Botcazou * config/rs6000/rs6000.c (rs6000_function_ok_for_si