Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.136
 
1.137
 
MAIN:ragge:20050205143907
 
pftn.c
_>11501150 oalloc(struct symtab *p, int *poff )
 11511151 {
 11521152         int al, off, tsz;
<>1153 -        int noff;
  1153+        int noff = 0;
11541154 
<>1155 -#if 0
 1156 -        if ((p->sclass == AUTO) || (Oflag && (p->sclass == REGISTER))) {
 1157 -                if (!ISARY(p->stype)) {
 1158 -                        NODE *tn = tempnode(0, p->stype, p->sdf, p->ssue);
 1159 -                        p->soffset = tn->n_lval;
 1160 -                        p->sflags |= STNODE;
 1161 -                        nfree(tn);
 1162 -                        return 0;
 1163 -                }
  1155+        /*
  1156+         * Only generate tempnodes if we are optimizing,
  1157+         * and only for integers, floats or pointers.
  1158+         */
  1159+        if (Oflag && ((p->sclass == AUTO) || (p->sclass == REGISTER)) &&
  1160+            (p->stype < STRTY || ISPTR(p->stype))) {
  1161+                NODE *tn = tempnode(&noff, p->stype, p->sdf, p->ssue);
  1162+                p->soffset = tn->n_lval;
  1163+                p->sflags |= STNODE;
  1164+                nfree(tn);
  1165+                return 0;
11641166         }
<>1165 -#endif
<_11661167 
 11671168         al = talign(p->stype, p->ssue);
 11681169         noff = off = *poff;
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-09-19 17:51 +0200