Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.139
 
1.140
 
MAIN:ragge:20050629145809
 
reader.c
_>715715 static void
 716716 rewrite(NODE *p, int rewrite)
 717717 {
<>718 -        struct optab *q = &table[TBLIDX(p->n_su)];
  718+//      struct optab *q = &table[TBLIDX(p->n_su)];
719719         NODE *l, *r;
 720720         int o;
 721721 
     
 !
728728         p->n_op = REG;
 729729         p->n_lval = 0;
 730730         p->n_name = "";
<> 731+#if 0
731732         if (xnewreg && (q->needs & NSPECIAL)) {
 732733                 int left, right, res, mask;
 733734                 nspecial(q, &left, &right, &res, &mask);
 734735                 p->n_rval = p->n_rall = ffs(res)-1;
<>735 -        } else if (rewrite & RLEFT) {
  736+        } else
  737+#endif
  738+        if (rewrite & RLEFT) {
736739 #ifdef PCC_DEBUG
 737740                 if (l->n_op != REG)
 738741                         comperr("rewrite left");
     
 !
812815                 }
 813816         }
 814817         expand(p, cookie, q->cstring);
<>815 -        if (xnewreg && callop(p->n_op) && p->n_rall != RETREG)
 816 -                rmove(RETREG, p->n_rall, p->n_type);
  818+        if (xnewreg) {
  819+                if (callop(p->n_op) && p->n_rall != RETREG)
  820+                        rmove(RETREG, p->n_rall, p->n_type);
  821+                else if (q->needs & NSPECIAL) {
  822+                        int left, right, res, mask;
  823+                        nspecial(q, &left, &right, &res, &mask);
  824+                        if (p->n_rall != ffs(res)-1)
  825+                                rmove(ffs(res)-1, p->n_rall, p->n_type);
  826+                }
  827+        }
<_817828 
 818829         rewrite(p, q->rewrite);
 819830 }
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-11-01 12:16 +0100