Commit 12b22698 authored by Anthony Martin's avatar Anthony Martin Committed by Russ Cox

5g, 5l: fix more set but not used warnings

These are present when building with gcc 4.6.

R=golang-dev, dave
CC=golang-dev, lvd
https://golang.org/cl/4636047
parent e0a61749
...@@ -1556,27 +1556,27 @@ dumpone(Reg *r) ...@@ -1556,27 +1556,27 @@ dumpone(Reg *r)
r->regdiff.b[z] | r->regdiff.b[z] |
r->act.b[z] | r->act.b[z] |
0; 0;
// if(bany(&bit)) { if(bany(&bit)) {
// print("\t"); print("\t");
// if(bany(&r->set)) if(bany(&r->set))
// print(" s:%Q", r->set); print(" s:%Q", r->set);
// if(bany(&r->use1)) if(bany(&r->use1))
// print(" u1:%Q", r->use1); print(" u1:%Q", r->use1);
// if(bany(&r->use2)) if(bany(&r->use2))
// print(" u2:%Q", r->use2); print(" u2:%Q", r->use2);
// if(bany(&r->refbehind)) if(bany(&r->refbehind))
// print(" rb:%Q ", r->refbehind); print(" rb:%Q ", r->refbehind);
// if(bany(&r->refahead)) if(bany(&r->refahead))
// print(" ra:%Q ", r->refahead); print(" ra:%Q ", r->refahead);
// if(bany(&r->calbehind)) if(bany(&r->calbehind))
// print("cb:%Q ", r->calbehind); print("cb:%Q ", r->calbehind);
// if(bany(&r->calahead)) if(bany(&r->calahead))
// print(" ca:%Q ", r->calahead); print(" ca:%Q ", r->calahead);
// if(bany(&r->regdiff)) if(bany(&r->regdiff))
// print(" d:%Q ", r->regdiff); print(" d:%Q ", r->regdiff);
// if(bany(&r->act)) if(bany(&r->act))
// print(" a:%Q ", r->act); print(" a:%Q ", r->act);
// } }
print("\n"); print("\n");
} }
......
...@@ -45,8 +45,6 @@ static Sym* sym_divu; ...@@ -45,8 +45,6 @@ static Sym* sym_divu;
static Sym* sym_mod; static Sym* sym_mod;
static Sym* sym_modu; static Sym* sym_modu;
static void setdiv(int);
void void
noops(void) noops(void)
{ {
...@@ -93,7 +91,6 @@ noops(void) ...@@ -93,7 +91,6 @@ noops(void)
if(prog_div == P) if(prog_div == P)
initdiv(); initdiv();
cursym->text->mark &= ~LEAF; cursym->text->mark &= ~LEAF;
setdiv(p->as);
continue; continue;
case ANOP: case ANOP:
...@@ -533,27 +530,6 @@ initdiv(void) ...@@ -533,27 +530,6 @@ initdiv(void)
} }
} }
static void
setdiv(int as)
{
Prog *p = nil;
switch(as){
case ADIV:
p = prog_div;
break;
case ADIVU:
p = prog_divu;
break;
case AMOD:
p = prog_mod;
break;
case AMODU:
p = prog_modu;
break;
}
}
void void
nocache(Prog *p) nocache(Prog *p)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment