Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.74
 
1.75
 
MAIN:ragge:20040425212417
 
reader.c
_>148148         codgen(p, FOREFF);
 149149         for (i = 0; i < deli; ++i)
 150150                 codgen(deltrees[i], FOREFF);  /* do the rest */
<>151 -        reclaim( p, RNULL, 0 );
  151+        tfree(p);
152152         allchk();
 153153 }
 154154 
     
 !
630630         return nreg;
 631631 }
 632632 
<> 633+/*
  634+ * Rewrite node after instruction emit.
  635+ * This is not strictly necessary anymore, but prettier if done :-)
  636+ */
  637+static void
  638+rewrite(NODE *p, int rewrite)
  639+{
  640+        if (p->n_su == -1)
  641+                comperr("rewrite");
  642+
  643+        if (optype(p->n_op) != LTYPE)
  644+                tfree(p->n_left);
  645+        if (optype(p->n_op) == BITYPE)
  646+                tfree(p->n_right);
  647+        p->n_op = REG;
  648+        p->n_rval = p->n_rall;
  649+        if (rewrite & RESC2)
  650+                p->n_rval += szty(p->n_type);
  651+        else if (rewrite & RESC3)
  652+                p->n_rval += 2*szty(p->n_type);
  653+}
  654+
633655 void
 634656 gencode(NODE *p, int cookie)
 635657 {
     
 !
653675                 if ((p->n_su & RMASK) == ROREG)
 654676                         canon(p);
 655677         }
<>656 -#if 0
 657 -        if (!allo(p, q))
 658 -                comperr("failed register allocation, node %p", p);
 659 -#endif
660678         expand(p, cookie, q->cstring);
<>661 -        reclaim(p, q->rewrite, cookie);
  679+        rewrite(p, q->rewrite);
<_662680 }
 663681 
 664682 int negrel[] = { NE, EQ, GT, GE, LT, LE, UGT, UGE, ULT, ULE } ;  /* negatives of relationals */
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-10-30 14:02 +0100