diff options
author | Ken Thompson <ken@golang.org> | 2010-05-20 17:31:28 -0700 |
---|---|---|
committer | Ken Thompson <ken@golang.org> | 2010-05-20 17:31:28 -0700 |
commit | f1148d9f2f84143a602e9c41ed78c361a3a2bc7c (patch) | |
tree | 161077a8865af84f52a276b24c5917fb84e0965e /src/cmd/6g/reg.c | |
parent | ee26a1fd015319168f77b69f58bfe666b4048339 (diff) | |
download | golang-f1148d9f2f84143a602e9c41ed78c361a3a2bc7c.tar.gz |
fix issue 798
cannot allocate an audomatic temp
while real registers are allocated.
there is a chance that the automatic
will be allocated to one of the
allocated registers. the fix is to
not registerize such variables.
R=rsc
CC=golang-dev
http://codereview.appspot.com/1202042
Diffstat (limited to 'src/cmd/6g/reg.c')
-rw-r--r-- | src/cmd/6g/reg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/6g/reg.c b/src/cmd/6g/reg.c index 10a00b38d..e92740e04 100644 --- a/src/cmd/6g/reg.c +++ b/src/cmd/6g/reg.c @@ -879,6 +879,8 @@ mkvar(Reg *r, Adr *a) } } } + if(a->pun) + flag = 1; switch(et) { case 0: |