diff options
| author | Russ Cox <rsc@golang.org> | 2011-09-29 12:09:46 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-09-29 12:09:46 -0400 |
| commit | 092a211fb99ba8fa922f6529473b279b24cb18a5 (patch) | |
| tree | d45d88d03741f0eee1e24930ab77f1df99831500 /src | |
| parent | f30719dc89c2a41502fa584b790943170ad2d1ce (diff) | |
| download | go-092a211fb99ba8fa922f6529473b279b24cb18a5.tar.xz | |
5g: fix -f()
R=ken2
CC=golang-dev
https://golang.org/cl/5161041
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/5g/cgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/5g/cgen.c b/src/cmd/5g/cgen.c index 0ea8695a02..15defaf111 100644 --- a/src/cmd/5g/cgen.c +++ b/src/cmd/5g/cgen.c @@ -213,11 +213,11 @@ cgen(Node *n, Node *res) goto ret; case OMINUS: + regalloc(&n1, nl->type, N); + cgen(nl, &n1); nodconst(&n3, nl->type, 0); regalloc(&n2, nl->type, res); - regalloc(&n1, nl->type, N); gmove(&n3, &n2); - cgen(nl, &n1); gins(optoas(OSUB, nl->type), &n1, &n2); gmove(&n2, res); regfree(&n1); |
