From 5f2b01ddda00dde792be16144ef9da404594e9c8 Mon Sep 17 00:00:00 2001 From: Alexey Frunze Date: Sun, 30 Aug 2015 23:52:26 -0700 Subject: [PATCH] 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)'. --- src/cmd/smlrc/cgmips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/smlrc/cgmips.c b/src/cmd/smlrc/cgmips.c index 73ea5d9..2cfde75 100644 --- a/src/cmd/smlrc/cgmips.c +++ b/src/cmd/smlrc/cgmips.c @@ -541,7 +541,7 @@ void GenUpdateFrameSize(void) STATIC void GenFxnProlog(void) { - if (CurFxnParamCntMax) + if (CurFxnParamCntMin && CurFxnParamCntMax) { int i, cnt = CurFxnParamCntMax; if (cnt > 4)