mirror of
https://github.com/golang/go
synced 2024-11-19 14:54:43 -07:00
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
This commit is contained in:
parent
e0a617496e
commit
12b2269860
@ -1556,27 +1556,27 @@ dumpone(Reg *r)
|
||||
r->regdiff.b[z] |
|
||||
r->act.b[z] |
|
||||
0;
|
||||
// if(bany(&bit)) {
|
||||
// print("\t");
|
||||
// if(bany(&r->set))
|
||||
// print(" s:%Q", r->set);
|
||||
// if(bany(&r->use1))
|
||||
// print(" u1:%Q", r->use1);
|
||||
// if(bany(&r->use2))
|
||||
// print(" u2:%Q", r->use2);
|
||||
// if(bany(&r->refbehind))
|
||||
// print(" rb:%Q ", r->refbehind);
|
||||
// if(bany(&r->refahead))
|
||||
// print(" ra:%Q ", r->refahead);
|
||||
// if(bany(&r->calbehind))
|
||||
// print("cb:%Q ", r->calbehind);
|
||||
// if(bany(&r->calahead))
|
||||
// print(" ca:%Q ", r->calahead);
|
||||
// if(bany(&r->regdiff))
|
||||
// print(" d:%Q ", r->regdiff);
|
||||
// if(bany(&r->act))
|
||||
// print(" a:%Q ", r->act);
|
||||
// }
|
||||
if(bany(&bit)) {
|
||||
print("\t");
|
||||
if(bany(&r->set))
|
||||
print(" s:%Q", r->set);
|
||||
if(bany(&r->use1))
|
||||
print(" u1:%Q", r->use1);
|
||||
if(bany(&r->use2))
|
||||
print(" u2:%Q", r->use2);
|
||||
if(bany(&r->refbehind))
|
||||
print(" rb:%Q ", r->refbehind);
|
||||
if(bany(&r->refahead))
|
||||
print(" ra:%Q ", r->refahead);
|
||||
if(bany(&r->calbehind))
|
||||
print("cb:%Q ", r->calbehind);
|
||||
if(bany(&r->calahead))
|
||||
print(" ca:%Q ", r->calahead);
|
||||
if(bany(&r->regdiff))
|
||||
print(" d:%Q ", r->regdiff);
|
||||
if(bany(&r->act))
|
||||
print(" a:%Q ", r->act);
|
||||
}
|
||||
print("\n");
|
||||
}
|
||||
|
||||
|
@ -45,8 +45,6 @@ static Sym* sym_divu;
|
||||
static Sym* sym_mod;
|
||||
static Sym* sym_modu;
|
||||
|
||||
static void setdiv(int);
|
||||
|
||||
void
|
||||
noops(void)
|
||||
{
|
||||
@ -93,7 +91,6 @@ noops(void)
|
||||
if(prog_div == P)
|
||||
initdiv();
|
||||
cursym->text->mark &= ~LEAF;
|
||||
setdiv(p->as);
|
||||
continue;
|
||||
|
||||
case ANOP:
|
||||
@ -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
|
||||
nocache(Prog *p)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user