~niemeyer/golang/unused-5-variables

« back to all changes in this revision

Viewing changes to src/cmd/5g/reg.c

  • Committer: Gustavo Niemeyer
  • Date: 2011-07-14 20:51:47 UTC
  • Revision ID: gustavo@niemeyer.net-20110714205147-gphirh4hiyf3vq7j
Fixed unused bit variable in 5g.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1539
1539
void
1540
1540
dumpone(Reg *r)
1541
1541
{
1542
 
        int z;
1543
 
        Bits bit;
1544
 
 
 
1542
//      int z;
 
1543
//      Bits bit;
 
1544
//
1545
1545
        print("%d:%P", r->loop, r->prog);
1546
 
        for(z=0; z<BITS; z++)
1547
 
                bit.b[z] =
1548
 
                        r->set.b[z] |
1549
 
                        r->use1.b[z] |
1550
 
                        r->use2.b[z] |
1551
 
                        r->refbehind.b[z] |
1552
 
                        r->refahead.b[z] |
1553
 
                        r->calbehind.b[z] |
1554
 
                        r->calahead.b[z] |
1555
 
                        r->regdiff.b[z] |
1556
 
                        r->act.b[z] |
1557
 
                                0;
 
1546
//      for(z=0; z<BITS; z++)
 
1547
//              bit.b[z] =
 
1548
//                      r->set.b[z] |
 
1549
//                      r->use1.b[z] |
 
1550
//                      r->use2.b[z] |
 
1551
//                      r->refbehind.b[z] |
 
1552
//                      r->refahead.b[z] |
 
1553
//                      r->calbehind.b[z] |
 
1554
//                      r->calahead.b[z] |
 
1555
//                      r->regdiff.b[z] |
 
1556
//                      r->act.b[z] |
 
1557
//                              0;
1558
1558
//      if(bany(&bit)) {
1559
1559
//              print("\t");
1560
1560
//              if(bany(&r->set))