tail calls #1

Open
msyds wants to merge 5 commits from tail into main
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 30e73fcba1 - Show all commits

1
main.c
View File

@@ -60,6 +60,7 @@ func(Fn *fn)
if (debug['P']) {
fprintf(stderr, "\n> After parsing:\n");
printfn(fn, stderr);
exit (1);
}
T.abi0(fn);
fillcfg(fn);

View File

@@ -1446,6 +1446,7 @@ printfn(Fn *fn, FILE *f)
case Jtail:
fprintf (f, "\ttail ");
printref (b->jmp.arg, fn, f);
fprintf (f, "%d (%d)", i->op, Oarg);
break;
default:
fprintf(f, "\t%s ", jtoa[b->jmp.type]);