Skip to content

Commit e25edc8

Browse files
committed
proto-fix for issue golang#27
1 parent b086733 commit e25edc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/liblink/obj7.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@ addstacksplit(Link *ctxt, LSym *cursym)
456456
ctxt->diag("using BECOME (%P) is not supported!", p);
457457
break;
458458
}
459+
if(p->to.sym) { // retjmp
460+
p->as = AB;
461+
p->to.type = D_BRANCH;
462+
break;
463+
}
459464
if(cursym->text->mark & LEAF) {
460465
if(ctxt->autosize != 0) {
461466
p->as = AADD;

0 commit comments

Comments
 (0)