Skip to content

Commit

Permalink
proto-fix for issue golang#27
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhudson committed Jan 7, 2015
1 parent b086733 commit e25edc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/liblink/obj7.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@ addstacksplit(Link *ctxt, LSym *cursym)
ctxt->diag("using BECOME (%P) is not supported!", p);
break;
}
if(p->to.sym) { // retjmp
p->as = AB;
p->to.type = D_BRANCH;
break;
}
if(cursym->text->mark & LEAF) {
if(ctxt->autosize != 0) {
p->as = AADD;
Expand Down

0 comments on commit e25edc8

Please sign in to comment.