Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.333
 
1.334
 
MAIN:ragge:20140806164752
 
trees.c
_>350350                 if (has_se(l)) {
 351351                         ll = l->n_left;
 352352 
<>353 -                        q = cstknode(ll->n_type, ll->n_df, ll->n_ap);
  353+                        q = tempnode(0, ll->n_type, ll->n_df, ll->n_ap);
354354                         l->n_left = ccopy(q);
 355355                         q = buildtree(ASSIGN, q, ll);
 356356                 } else
     
 !
377377                 if (has_se(l)) {
 378378                         ll = l->n_left;
 379379 
<>380 -                        q = cstknode(ll->n_type, ll->n_df, ll->n_ap);
  380+                        q = tempnode(0, ll->n_type, ll->n_df, ll->n_ap);
381381                         l->n_left = ccopy(q);
 382382                         q = buildtree(ASSIGN, q, ll);
 383383                 } else
     
 !
660660 {
 661661         NODE *t, *r;
 662662                 
<>663 -        t = cstknode(p1->n_type, p1->n_df, p1->n_ap);
  663+        t = tempnode(0, p1->n_type, p1->n_df, p1->n_ap);
664664         r = buildtree(ASSIGN, ccopy(t), ccopy(p1));
 665665         r = buildtree(COMOP, r, buildtree(op, p1, eve(p2)));
 666666         return buildtree(COMOP, r, t);
     
 !
21932193 }
 21942194 
 21952195 /*
<>2196 - * Create a node for either TEMP or on-stack storage.
 2197 - */
 2198 -NODE *
 2199 -cstknode(TWORD t, union dimfun *df, struct attr *ap)
 2200 -{
 2201 -        struct symtab *sp;
 2202 -
 2203 -        /* create a symtab entry suitable for this type */
 2204 -        sp = getsymtab("0hej", STEMP);
 2205 -        sp->stype = t;
 2206 -        sp->sdf = df;
 2207 -        sp->sap = ap;
 2208 -        sp->sclass = AUTO;
 2209 -        sp->soffset = NOOFFSET;
 2210 -        oalloc(sp, &autooff);
 2211 -        return nametree(sp);
 2212 -
 2213 -}
 2214 -
 2215 -/*
22162196  * Massage the output trees to remove C-specific nodes:
 22172197  *      COMOPs are split into separate statements.
 22182198  *      QUEST/COLON are rewritten to branches.
     
 !
22552235                 q = p->n_right->n_left;
 22562236                 comops(q);
 22572237                 if (type != VOID) {
<>2258 -                        tval = cstknode(q->n_type, q->n_df, q->n_ap);
  2238+                        tval = tempnode(0, q->n_type, q->n_df, q->n_ap);
22592239                         q = buildtree(ASSIGN, ccopy(tval), q);
 22602240                 }
 22612241                 rmcops(q);
     
 !
23042284                 *r = *p;
 23052285                 andorbr(r, -1, lbl = getlab());
 23062286 
<>2307 -                tval = cstknode(p->n_type, p->n_df, p->n_ap);
  2287+                tval = tempnode(0, p->n_type, p->n_df, p->n_ap);
23082288 
 23092289                 ecode(buildtree(ASSIGN, ccopy(tval), bcon(1)));
 23102290                 branch(lbl2 = getlab());
     
 !
28672847 
 28682848         if (cdope(o) & CALLFLG) {
 28692849                 if (split) {
<>2870 -                        q = cstknode(p->n_type, p->n_df, p->n_ap);
  2850+                        q = tempnode(0, p->n_type, p->n_df, p->n_ap);
<_28712851                         r = ccopy(q);
 28722852                         q = block(ASSIGN, q, p, p->n_type, p->n_df, p->n_ap);
 28732853                         ecode(q);
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-21 09:34 +0100