]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cc: emit size of locals. Will be used for stack copying.
authorKeith Randall <khr@golang.org>
Tue, 11 Jun 2013 16:01:27 +0000 (09:01 -0700)
committerKeith Randall <khr@golang.org>
Tue, 11 Jun 2013 16:01:27 +0000 (09:01 -0700)
R=cshapiro, dvyukov, khr, rsc
CC=golang-dev
https://golang.org/cl/10005044

src/cmd/cc/pgen.c

index d5849dc3157bec817d0dd1e8bb1f28a24b92bcc0..628f858b632a372aeeac240935502b5cdea00c2d 100644 (file)
@@ -85,6 +85,7 @@ codgen(Node *n, Node *nn)
 
        p = gtext(n1->sym, stkoff);
        sp = p;
+       gins(ALOCALS, Z, nodconst(stkoff));
 
        /*
         * isolate first argument