summaryrefslogtreecommitdiff
path: root/src/cmd/5g/gsubr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/5g/gsubr.c')
-rw-r--r--src/cmd/5g/gsubr.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/cmd/5g/gsubr.c b/src/cmd/5g/gsubr.c
index ceb97cc65..44c7e2670 100644
--- a/src/cmd/5g/gsubr.c
+++ b/src/cmd/5g/gsubr.c
@@ -294,42 +294,6 @@ regfree(Node *n)
reg[i]--;
}
-void
-tempalloc(Node *n, Type *t)
-{
- int w;
-
- dowidth(t);
-
- memset(n, 0, sizeof(*n));
- n->op = ONAME;
- n->sym = S;
- n->type = t;
- n->etype = t->etype;
- n->class = PAUTO;
- n->addable = 1;
- n->ullman = 1;
- n->noescape = 1;
- n->ostk = stksize;
-
- w = t->width;
- stksize += w;
- stksize = rnd(stksize, w);
- n->xoffset = -stksize;
-//print("tempalloc %d -> %d from %p\n", n->ostk, n->xoffset, __builtin_return_address(0));
- if(stksize > maxstksize)
- maxstksize = stksize;
-}
-
-void
-tempfree(Node *n)
-{
-//print("tempfree %d\n", n->xoffset);
- if(n->xoffset != -stksize)
- fatal("tempfree %lld %d", -n->xoffset, stksize);
- stksize = n->ostk;
-}
-
/*
* initialize n to be register r of type t.
*/