cg tried to stack register parameters of moves, when

these registers were killed.
This commit is contained in:
keie 1985-02-26 16:31:38 +00:00
parent c1f3dbba33
commit e7f7f33f60

View file

@ -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);
}