summaryrefslogtreecommitdiff
path: root/src/cmd/5g/gsubr.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2010-05-20 17:31:28 -0700
committerKen Thompson <ken@golang.org>2010-05-20 17:31:28 -0700
commitf1148d9f2f84143a602e9c41ed78c361a3a2bc7c (patch)
tree161077a8865af84f52a276b24c5917fb84e0965e /src/cmd/5g/gsubr.c
parentee26a1fd015319168f77b69f58bfe666b4048339 (diff)
downloadgolang-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/5g/gsubr.c')
-rw-r--r--src/cmd/5g/gsubr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/5g/gsubr.c b/src/cmd/5g/gsubr.c
index ef7815747..ea6ab1d70 100644
--- a/src/cmd/5g/gsubr.c
+++ b/src/cmd/5g/gsubr.c
@@ -197,6 +197,12 @@ afunclit(Addr *a)
}
}
+int32
+anyregalloc(void)
+{
+ return 0;
+}
+
/*
* allocate register of type t, leave in n.
* if o != N, o is desired fixed register.