Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.132
 
1.133
 
MAIN:ragge:20050223162540
 
trees.c
_>15191519 /*
 15201520  * Returns a TEMP node with temp number nr.
 15211521  * If nr == 0, return a node with a new number.
<>1522 - * XXX - nr should not be a pointer.
15231522  */
 15241523 NODE *
 15251524 tempnode(int nr, TWORD type, union dimfun *df, struct suedef *sue)
 15261525 {
<>1527 -        NODE *p, *r;
  1526+        NODE *r;
15281527 
 15291528         r = block(TEMP, NIL, NIL, type, df, sue);
 15301529         r->n_lval = nr == 0 ? ++tvaloff : nr;
 15311530         return r;
<>1532 -
 1533 -#if 0
 1534 -        if (*nr == 0) {
 1535 -                struct symtab s;
 1536 -
 1537 -                /* fake a symtab entry for oalloc */
 1538 -                s.stype = type;
 1539 -                s.ssue = sue;
 1540 -                s.sdf = df;
 1541 -                s.sclass = AUTO;
 1542 -                s.soffset = NOOFFSET;
 1543 -                oalloc(&s, &autooff);
 1544 -                if (autooff > maxautooff)
 1545 -                        maxautooff = autooff;
 1546 -                *nr = s.soffset;
 1547 -        }
 1548 -#endif
 1549 -#if 0
 1550 -        if (*nr == 0) {
 1551 -                al = talign(type, sue);
 1552 -                tsz = tsize(type, df, sue);
 1553 -                *nr = upoff(tsz, al, &autooff);
 1554 -                if (autooff > maxautooff)
 1555 -                        maxautooff = autooff;
 1556 -        }
 1557 -#endif
 1558 -#if 1
 1559 -#if 0
 1560 -        p = block(REG, NIL, NIL, type, df, sue);
 1561 -        p->n_rval = FPREG;
 1562 -        p->n_qual = 0;
 1563 -        r = offcon(*nr, type, df, sue);
 1564 -        p = block(PLUS, p, r, type, df, sue);
 1565 -        p = block(UMUL, p, NIL, type, df, sue);
 1566 -        return p;
 1567 -#else
 1568 -        p = block(OREG, NIL, NIL, type, df, sue);
 1569 -        p->n_rval = FPREG;
 1570 -        p->n_qual = 0;
 1571 -        r = offcon(nr, type, df, sue);
 1572 -        p->n_lval = r->n_lval;
 1573 -        nfree(r);
 1574 -        return p;
 1575 -#endif
 1576 -#else
 1577 -        type = INCREF(type);
 1578 -        p = block(REG, NIL, NIL, type, df, sue);
 1579 -        p->n_rval = FPREG;
 1580 -        p->n_qual = 0;
 1581 -        p = block(PLUS, p, offcon(*nr, type, df, sue), type, df, sue);
 1582 -        p->n_qual = 0;
 1583 -        return clocal(buildtree(UMUL, p, NIL));
 1584 -#endif
15851531 }
 15861532 
 15871533 /*
     
 !
22592205                 ipp->ipp_type = va_arg(ap, TWORD);
 22602206                 ipp->ipp_vis = va_arg(ap, int);
 22612207                 ip->ip_lbl = va_arg(ap, int);
<> 2208+                ipp->ip_tmpnum = tvaloff+1;
<_22622209                 break;
 22632210         case IP_DEFLAB:
 22642211                 ip->ip_lbl = va_arg(ap, int);
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 18:14 +0100