Handle calls with max. args in backends even after SPLIT.

This commit is contained in:
Mike Pall
2013-05-16 19:59:38 +02:00
parent 1c7650f782
commit 0f79d4741f
5 changed files with 9 additions and 9 deletions

View File

@@ -340,7 +340,7 @@ static void asm_call(ASMState *as, IRIns *ir)
static void asm_callx(ASMState *as, IRIns *ir)
{
IRRef args[CCI_NARGS_MAX];
IRRef args[CCI_NARGS_MAX*2];
CCallInfo ci;
IRRef func;
IRIns *irf;
@@ -2092,7 +2092,7 @@ static void asm_ir(ASMState *as, IRIns *ir)
/* Ensure there are enough stack slots for call arguments. */
static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci)
{
IRRef args[CCI_NARGS_MAX];
IRRef args[CCI_NARGS_MAX*2];
uint32_t i, nargs = (int)CCI_NARGS(ci);
int nslots = 2, ngpr = REGARG_NUMGPR, nfpr = REGARG_NUMFPR;
asm_collectargs(as, ir, ci, args);