diff options
Diffstat (limited to 'src/cmd/5c')
| -rw-r--r-- | src/cmd/5c/peep.c | 1 | ||||
| -rw-r--r-- | src/cmd/5c/reg.c | 10 | ||||
| -rw-r--r-- | src/cmd/5c/swt.c | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/src/cmd/5c/peep.c b/src/cmd/5c/peep.c index c15bf0fc4..3a905f099 100644 --- a/src/cmd/5c/peep.c +++ b/src/cmd/5c/peep.c @@ -1122,7 +1122,6 @@ copyu(Prog *p, Adr *v, Adr *s) return 3; return 0; } - return 0; } int diff --git a/src/cmd/5c/reg.c b/src/cmd/5c/reg.c index 8c9794418..50b814598 100644 --- a/src/cmd/5c/reg.c +++ b/src/cmd/5c/reg.c @@ -66,6 +66,11 @@ rcmp(const void *a1, const void *a2) void regopt(Prog *p) { + // TODO(kaib): optimizer disabled because it smashes R8 when running out of registers + // the disable is unconventionally here because the call is in common code shared by 5c/6c/8c + return; + +#ifdef NOTDEF Reg *r, *r1, *r2; Prog *p1; int i, z; @@ -79,10 +84,6 @@ regopt(Prog *p) Reg* p; } log5[6], *lp; - // TODO(kaib): optimizer disabled because it smashes R8 when running out of registers - // the disable is unconventionally here because the call is in common code shared by 5c/6c/8c - return; - firstr = R; lastr = R; nvar = 0; @@ -490,6 +491,7 @@ brk: r1->link = freer; freer = firstr; } +#endif } void diff --git a/src/cmd/5c/swt.c b/src/cmd/5c/swt.c index 431f04817..7cbaadba9 100644 --- a/src/cmd/5c/swt.c +++ b/src/cmd/5c/swt.c @@ -380,10 +380,10 @@ outcode(void) Bprint(&outbuf, "\n"); Bprint(&outbuf, "$$ // exports\n\n"); Bprint(&outbuf, "$$ // local types\n\n"); - Bprint(&outbuf, "$$ // dynimport\n", thestring); + Bprint(&outbuf, "$$ // dynimport\n"); for(i=0; i<ndynimp; i++) Bprint(&outbuf, "dynimport %s %s %s\n", dynimp[i].local, dynimp[i].remote, dynimp[i].path); - Bprint(&outbuf, "\n$$ // dynexport\n", thestring); + Bprint(&outbuf, "\n$$ // dynexport\n"); for(i=0; i<ndynexp; i++) Bprint(&outbuf, "dynexport %s %s\n", dynexp[i].local, dynexp[i].remote); Bprint(&outbuf, "\n$$\n\n"); |
