Fix spurious red zone overflows in machine code generation.

This commit is contained in:
Mike Pall
2013-04-04 17:19:31 +02:00
parent 6ba65cefb0
commit 389822d606
4 changed files with 31 additions and 2 deletions

View File

@@ -286,6 +286,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
else
ofs += 4;
}
checkmclim(as);
}
if ((ci->flags & CCI_VARARG)) /* Vararg calls need to know about FPR use. */
emit_tab(as, fpr == REGARG_FIRSTFPR ? PPCI_CRXOR : PPCI_CREQV, 6, 6, 6);