1
0
mirror of https://github.com/golang/go synced 2024-11-25 07:07:57 -07:00

arm: fix build

R=rsc
CC=golang-dev
https://golang.org/cl/800041
This commit is contained in:
Dean Prichard 2010-03-26 23:27:24 -07:00 committed by Russ Cox
parent 97d0e8fe6c
commit 55b145e32a
2 changed files with 4 additions and 6 deletions

View File

@ -87,10 +87,8 @@ compile(Node *fn)
if(pret) if(pret)
patch(pret, pc); patch(pret, pc);
ginit();
if(curfn->exit) if(curfn->exit)
genlist(curfn->exit); genlist(curfn->exit);
gclean();
if(nerrors != 0) if(nerrors != 0)
goto ret; goto ret;
if(hasdefer) if(hasdefer)
@ -427,9 +425,10 @@ void
cgen_ret(Node *n) cgen_ret(Node *n)
{ {
genlist(n->list); // copy out args genlist(n->list); // copy out args
if(hasdefer) if(hasdefer || curfn->exit)
ginscall(deferreturn, 0); gjmp(pret);
gins(ARET, N, N); else
gins(ARET, N, N);
} }
/* /*

View File

@ -27,7 +27,6 @@ convlit1.go
declbad.go declbad.go
empty.go empty.go
escape.go escape.go
escape1.go
fixedbugs/bug000.go fixedbugs/bug000.go
fixedbugs/bug001.go fixedbugs/bug001.go
fixedbugs/bug002.go fixedbugs/bug002.go