Re: [PATCH 2/2] [RS6000] REG_PARM_STACK_SPACE check V2

2020-11-02 Thread Segher Boessenkool
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

[PATCH 2/2] [RS6000] REG_PARM_STACK_SPACE check V2

2020-11-02 Thread Alan Modra via Gcc-patches
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_SPAC