Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.7
 
1.8
 
MAIN:ragge:20081214211658
 
local.c
_>216216 void
 217217 myp2tree(NODE *p)
 218218 {
<> 219+        struct symtab *sp;
219220         int o = p->n_op, i;
 220221 
 221222         if (o != FCON)
 222223                 return;
 223224 
<>224 -        /* Write float constants to memory */
 225 -        /* Should be volontary per architecture */
 226 - 
 227 -        setloc1(RDATA);
 228 -        defalign(p->n_type == FLOAT ? ALFLOAT : p->n_type == DOUBLE ?
 229 -            ALDOUBLE : ALLDOUBLE );
 230 -        deflab1(i = getlab());
 231 -        ninval(0, btdims[p->n_type].suesize, p);
  225+        sp = inlalloc(sizeof(struct symtab));
  226+        sp->sclass = STATIC;
  227+        sp->ssue = MKSUE(p->n_type);
  228+        sp->slevel = 1; /* fake numeric label */
  229+        sp->soffset = getlab();
  230+        sp->sflags = 0;
  231+        sp->stype = p->n_type;
  232+        sp->squal = (CON >> TSHIFT);
  233+
  234+        defloc(sp);
  235+        ninval(0, sp->ssue->suesize, p);
  236+
232237         p->n_op = NAME;
<>233 -        p->n_lval = 0;  
 234 -        p->n_sp = tmpalloc(sizeof(struct symtab_hdr));
 235 -        p->n_sp->sclass = ILABEL;
 236 -        p->n_sp->soffset = i;
 237 -        p->n_sp->sflags = 0;
  238+        p->n_lval = 0;
  239+        p->n_sp = sp;
238240 
 239241 }
 240242 
     
 !
449451         case UNSIGNED:
 450452                 printf("\t.long 0x%x", (int)p->n_lval);
 451453                 if ((q = p->n_sp) != NULL) {
<>452 -                        if ((q->sclass == STATIC && q->slevel > 0) ||
 453 -                            q->sclass == ILABEL) {
  454+                        if ((q->sclass == STATIC && q->slevel > 0)) {
<_454455                                 printf("+" LABFMT, q->soffset);
 455456                         } else
 456457                                 printf("+%s", exname(q->soname));
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-08-29 18:08 +0200