On Mon, Nov 02, 2020 at 08:19:08PM +1030, Alan Modra wrote: > On PowerPC we can tail call if the callee has less or equal > REG_PARM_STACK_SPACE than the caller, as demonstrated by the > testcase. So we should use > > /* If reg parm stack space increases, we cannot sibcall. */ > if (REG_PARM_STACK_SPACE (decl ? decl : fntype) > > INCOMING_REG_PARM_STACK_SPACE (current_function_decl)) > > and note the change to use INCOMING_REG_PARM_STACK_SPACE.
> Bootstrapped and regression tested powerpc64le-linux and biarch > powerpc64-linux. OK? Yes please. Thanks! Segher > PR middle-end/97267 > gcc/ > * config/rs6000/rs6000-logue.c (rs6000_function_ok_for_sibcall): > Remove code checking REG_PARM_STACK_SPACE. > testsuite/ > * gcc.target/powerpc/pr97267.c: New test.