1
0
mirror of https://github.com/golang/go synced 2024-11-22 22:30:02 -07:00

cmd/6g: fix warnings on Plan 9

src/cmd/6g/peep.c:471 set and not used: r
src/cmd/6g/peep.c:560 overspecified class: regconsttyp GLOBL STATIC
src/cmd/6g/peep.c:761 more arguments than format IND STRUCT Prog
src/cmd/6g/reg.c:185 set and not used: r1
src/cmd/6g/reg.c:786 format mismatch d VLONG, arg 3
src/cmd/6g/reg.c:1064 format mismatch d VLONG, arg 5

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8197044
This commit is contained in:
David du Colombier 2013-03-30 09:31:49 -07:00 committed by Brad Fitzpatrick
parent 0399e76b66
commit 3a14b42edf
2 changed files with 5 additions and 5 deletions

View File

@ -472,6 +472,7 @@ elimshortmov(Reg *r)
{
Prog *p;
USED(r);
for(r=firstr; r!=R; r=r->link) {
p = r->prog;
if(regtyp(&p->to)) {
@ -555,7 +556,7 @@ elimshortmov(Reg *r)
}
}
int
static int
regconsttyp(Adr *a)
{
if(regtyp(a))
@ -758,7 +759,7 @@ subprop(Reg *r0)
}
}
if(debug['P'] && debug['v'])
print("\tran off end; return 0\n", p);
print("\tran off end; return 0\n");
return 0;
gotit:

View File

@ -182,7 +182,6 @@ regopt(Prog *firstp)
return;
}
r1 = R;
firstr = R;
lastr = R;
@ -783,7 +782,7 @@ brk:
Var *v;
v = var + rgp->varno;
print("registerize %N+%d (bit=%2d et=%2E) in %R\n",
print("registerize %N+%lld (bit=%2d et=%2E) in %R\n",
v->node, v->offset, rgp->varno, v->etype, rgp->regno);
}
paint3(rgp->enter, rgp->varno, vreg, rgp->regno);
@ -1061,7 +1060,7 @@ mkvar(Reg *r, Adr *a)
v->node = node;
if(debug['R'])
print("bit=%2d et=%2E w=%d+%d %#N %D flag=%d\n", i, et, o, w, node, a, v->addr);
print("bit=%2d et=%2E w=%d+%lld %#N %D flag=%d\n", i, et, o, w, node, a, v->addr);
ostats.nvar++;