Smaller C: improve prologue on MIPS

Functions defined as 'type f()' now don't store A0-A3
on the stack just as functions defined as 'type f(void)'.
This commit is contained in:
Alexey Frunze
2015-08-30 23:52:26 -07:00
parent 0aaf6c25f6
commit 5f2b01ddda

View File

@@ -541,7 +541,7 @@ void GenUpdateFrameSize(void)
STATIC
void GenFxnProlog(void)
{
if (CurFxnParamCntMax)
if (CurFxnParamCntMin && CurFxnParamCntMax)
{
int i, cnt = CurFxnParamCntMax;
if (cnt > 4)