The story is more complicated; this is just a bandaid.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
4755047
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;
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;
-
-#ifdef NOTDEF
firstr = R;
lastr = R;
nvar = 0;