From e7f7f33f60a6970330b5dcccc13142868b3dc446 Mon Sep 17 00:00:00 2001 From: keie Date: Tue, 26 Feb 1985 16:31:38 +0000 Subject: [PATCH] cg tried to stack register parameters of moves, when these registers were killed. --- mach/proto/ncg/move.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mach/proto/ncg/move.c b/mach/proto/ncg/move.c index 4c2e7fa81..34c90a144 100644 --- a/mach/proto/ncg/move.c +++ b/mach/proto/ncg/move.c @@ -96,7 +96,9 @@ move(tp1,tp2,ply,toplevel,maxcost) token_p tp1,tp2; unsigned maxcost; { fakestack[stackheight] = *tp2; fakestack[stackheight+1] = *tp1; stackheight += 2; + tokpatlen += 2; t = codegen(&coderules[mp->m_cindex],ply,toplevel,maxcost,0); + tokpatlen -= 2; stackheight -= 2; return(t); } @@ -143,7 +145,9 @@ test(tp,ply,toplevel,maxcost) token_p tp; unsigned maxcost; { fakestack[stackheight] = *tp; stackheight++; + tokpatlen++; t = codegen(&coderules[mp->t_cindex],ply,toplevel,maxcost,0); + tokpatlen--; stackheight--; return(t); } -- 2.34.1