1
0
mirror of https://github.com/golang/go synced 2024-11-25 10:17:57 -07:00

5c: attempt to fix build by silencing warnings about unused variables.

The story is more complicated; this is just a bandaid.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4755047
This commit is contained in:
Rob Pike 2011-07-18 11:08:55 +10:00
parent cb051a3a1d
commit 9d55c282e3

View File

@ -66,6 +66,11 @@ rcmp(const void *a1, const void *a2)
void void
regopt(Prog *p) 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; Reg *r, *r1, *r2;
Prog *p1; Prog *p1;
int i, z; int i, z;
@ -79,11 +84,6 @@ regopt(Prog *p)
Reg* p; Reg* p;
} log5[6], *lp; } 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; firstr = R;
lastr = R; lastr = R;
nvar = 0; nvar = 0;