Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.137
 
1.138
 
MAIN:ragge:20110407185015
 
local.c
_>118118 
 119119         sp = picsymtab("__imp_", name, "");
 120120         q = xbcon(0, sp, PTR+VOID);
<>121 -        q = block(UMUL, q, 0, PTR|VOID, 0, MKAP(VOID));
  121+        q = block(UMUL, q, 0, PTR|VOID, 0, 0);
122122         q = block(UMUL, q, 0, p->n_type, p->n_df, p->n_ap);
 123123         q->n_sp = p->n_sp; /* for init */
 124124         nfree(p);
     
 !
143143         struct symtab *sp;
 144144         char *name;
 145145 
<>146 -        q = tempnode(gotnr, PTR|VOID, 0, MKAP(VOID));
  146+        q = tempnode(gotnr, PTR|VOID, 0, 0);
147147         if ((name = p->n_sp->soname) == NULL)
 148148                 name = p->n_sp->sname;
 149149         sp = picsymtab("", name, "@GOT");
     
 !
154154         sp->sflags = p->n_sp->sflags & SSTDCALL;
 155155         r = xbcon(0, sp, INT);
 156156         q = buildtree(PLUS, q, r);
<>157 -        q = block(UMUL, q, 0, PTR|VOID, 0, MKAP(VOID));
  157+        q = block(UMUL, q, 0, PTR|VOID, 0, 0);
158158         q = block(UMUL, q, 0, p->n_type, p->n_df, p->n_ap);
 159159         q->n_sp = p->n_sp; /* for init */
 160160         nfree(p);
     
 !
178178                 sp = picsymtab("L", pspn, buf2);
 179179                 addstub(&nlplist, pspn);
 180180         }
<>181 -        q = tempnode(gotnr, PTR+VOID, 0, MKAP(VOID));
  181+        q = tempnode(gotnr, PTR+VOID, 0, 0);
182182         r = xbcon(0, sp, INT);
 183183         q = buildtree(PLUS, q, r);
 184184 
 185185         if (p->n_sp->sclass != EXTDEF)
<>186 -                q = block(UMUL, q, 0, PTR+VOID, 0, MKAP(VOID));
  186+                q = block(UMUL, q, 0, PTR+VOID, 0, 0);
187187         q = block(UMUL, q, 0, p->n_type, p->n_df, p->n_ap);
 188188         q->n_sp = p->n_sp; /* for init */
 189189         nfree(p);
     
 !
209209         NODE *q, *r;
 210210         struct symtab *sp;
 211211 
<>212 -        q = tempnode(gotnr, PTR|VOID, 0, MKAP(VOID));
  212+        q = tempnode(gotnr, PTR|VOID, 0, 0);
213213         if (p->n_sp->slevel > 0) {
 214214                 char buf[32];
 215215                 snprintf(buf, 32, LABFMT, (int)p->n_sp->soffset);
     
 !
251251         }
 252252         sp->sclass = STATIC;
 253253         sp->stype = p->n_sp->stype;
<>254 -        q = tempnode(gotnr, PTR+VOID, 0, MKAP(VOID));
  254+        q = tempnode(gotnr, PTR+VOID, 0, 0);
255255         r = xbcon(0, sp, INT);
 256256         q = buildtree(PLUS, q, r);
 257257         q = block(UMUL, q, 0, p->n_type, p->n_df, p->n_ap);
     
 !
285285          */
 286286 
 287287         /* calc address of var@TLSGD */
<>288 -        q = tempnode(gotnr, PTR|VOID, 0, MKAP(VOID));
  288+        q = tempnode(gotnr, PTR|VOID, 0, 0);
289289         if ((name = p->n_sp->soname) == NULL)
 290290                 name = p->n_sp->sname;
 291291         sp = picsymtab("", name, "@TLSGD");
 292292         r = xbcon(0, sp, INT);
 293293         q = buildtree(PLUS, q, r);
 294294 
 295295         /* assign to %eax */
<>296 -        r = block(REG, NIL, NIL, PTR|VOID, 0, MKAP(VOID));
  296+        r = block(REG, NIL, NIL, PTR|VOID, 0, 0);
297297         r->n_rval = EAX;
 298298         q = buildtree(ASSIGN, r, q);
 299299 
     
 !
302302         sp2->stype = EXTERN|INT|FTN;
 303303         r = nametree(sp2);
 304304         r = buildtree(ADDROF, r, NIL);
<>305 -        r = block(UCALL, r, NIL, INT, 0, MKAP(INT));
  305+        r = block(UCALL, r, NIL, INT, 0, 0);
306306 
 307307         /* fusion both parts together */
 308308         q = buildtree(COMOP, q, r);
     
 !
327327             ext == EXTERN ? "@INDNTPOFF" : "@NTPOFF");
 328328         q = xbcon(0, sp, INT);
 329329         if (ext == EXTERN)
<>330 -                q = block(UMUL, q, NIL, PTR|VOID, 0, MKAP(VOID));
  330+                q = block(UMUL, q, NIL, PTR|VOID, 0, 0);
331331 
 332332         sp2 = lookup("%gs:0", 0);
 333333         sp2->stype = EXTERN|INT;
     
 !
467467                         break;
 468468 #if defined(ELFABI)
 469469                 /* Change to CALL node with ebx as argument */
<>470 -                l = block(REG, NIL, NIL, INT, 0, MKAP(INT));
  470+                l = block(REG, NIL, NIL, INT, 0, 0);
471471                 l->n_rval = EBX;
 472472                 p->n_right = buildtree(ASSIGN, l,
<>473 -                    tempnode(gotnr, INT, 0, MKAP(INT)));
  473+                    tempnode(gotnr, INT, 0, 0));
474474                 p->n_op -= (UCALL-CALL);
 475475 #endif
 476476         
     
 !
527527                     l->n_type == ULONGLONG || l->n_type == BOOL) {
 528528                         /* float etc? */
 529529                         p->n_left = block(SCONV, l, NIL,
<>530 -                            UNSIGNED, 0, MKAP(UNSIGNED));
  530+                            UNSIGNED, 0, 0);
531531                         break;
 532532                 }
 533533                 /* if left is SCONV, cannot remove */
     
 !
633633                                 cerror("unknown type %d", m);
 634634                         }
 635635                         l->n_type = m;
<>636 -                        l->n_ap = MKAP(m);
  636+                        l->n_ap = 0;
637637                         nfree(p);
 638638                         return l;
 639639                 } else if (l->n_op == FCON) {
 640640                         l->n_lval = (CONSZ)l->n_dcon;
 641641                         l->n_sp = NULL;
 642642                         l->n_op = ICON;
 643643                         l->n_type = m;
<>644 -                        l->n_ap = MKAP(m);
  644+                        l->n_ap = 0;
645645                         nfree(p);
 646646                         return clocal(l);
 647647                 }
     
 !
667667                 if (o == MOD && p->n_type != CHAR && p->n_type != SHORT)
 668668                         break;
 669669                 /* make it an int division by inserting conversions */
<>670 -                p->n_left = block(SCONV, p->n_left, NIL, INT, 0, MKAP(INT));
 671 -                p->n_right = block(SCONV, p->n_right, NIL, INT, 0, MKAP(INT));
 672 -                p = block(SCONV, p, NIL, p->n_type, 0, MKAP(p->n_type));
  670+                p->n_left = block(SCONV, p->n_left, NIL, INT, 0, 0);
  671+                p->n_right = block(SCONV, p->n_right, NIL, INT, 0, 0);
  672+                p = block(SCONV, p, NIL, p->n_type, 0, 0);
673673                 p->n_left->n_type = INT;
 674674                 break;
 675675 
     
 !
684684                 /* put return value in return reg */
 685685                 p->n_op = ASSIGN;
 686686                 p->n_right = p->n_left;
<>687 -                p->n_left = block(REG, NIL, NIL, p->n_type, 0, MKAP(INT));
  687+                p->n_left = block(REG, NIL, NIL, p->n_type, 0, 0);
688688                 p->n_left->n_rval = p->n_left->n_type == BOOL ?
 689689                     RETREG(CHAR) : RETREG(p->n_type);
 690690                 break;
     
 !
694694                 /* shift count must be in a char */
 695695                 if (p->n_right->n_type == CHAR || p->n_right->n_type == UCHAR)
 696696                         break;
<>697 -                p->n_right = block(SCONV, p->n_right, NIL, CHAR, 0, MKAP(CHAR));
  697+                p->n_right = block(SCONV, p->n_right, NIL, CHAR, 0, 0);
698698                 break;
 699699 #if defined(os_openbsd)
 700700                 /* If not using pcc struct return */
     
 !
731731                 p = buildtree(COMOP, r, l);
 732732 
 733733                 l = buildtree(CAST,
<>734 -                    block(NAME, NIL, NIL, m|PTR, 0, MKAP(m)), ccopy(s));
  734+                    block(NAME, NIL, NIL, m|PTR, 0, 0), ccopy(s));
735735                 r = l->n_right;
 736736                 nfree(l->n_left);
 737737                 nfree(l);
     
 !
839839 
 840840         sp = IALLOC(sizeof(struct symtab));
 841841         sp->sclass = STATIC;
<>842 -        sp->sap = MKAP(p->n_type);
  842+        sp->sap = 0;
843843         sp->slevel = 1; /* fake numeric label */
 844844         sp->soffset = getlab();
 845845         sp->sflags = 0;
     
 !
918918         p = buildtree(MUL, p, bcon(off/SZCHAR)); /* XXX word alignment? */
 919919 
 920920         /* sub the size from sp */
<>921 -        sp = block(REG, NIL, NIL, p->n_type, 0, MKAP(INT));
  921+        sp = block(REG, NIL, NIL, p->n_type, 0, 0);
922922         sp->n_lval = 0;
 923923         sp->n_rval = STKREG;
 924924         ecomp(buildtree(MINUSEQ, sp, p));
 925925 
 926926 #ifdef MACHOABI 
 927927         /* align to 16 bytes */
<>928 -        sp = block(REG, NIL, NIL, p->n_type, 0, MKAP(INT));
  928+        sp = block(REG, NIL, NIL, p->n_type, 0, 0);
929929         sp->n_lval = 0;
 930930         sp->n_rval = STKREG;
 931931         ecomp(buildtree(PLUSEQ, sp, bcon(15)));
 932932         
<>933 -        sp = block(REG, NIL, NIL, p->n_type, 0, MKAP(INT));
  933+        sp = block(REG, NIL, NIL, p->n_type, 0, 0);
934934         sp->n_lval = 0;
 935935         sp->n_rval = STKREG;
 936936         ecomp(buildtree(RSEQ, sp, bcon(4)));
 937937         
<>938 -        sp = block(REG, NIL, NIL, p->n_type, 0, MKAP(INT));
  938+        sp = block(REG, NIL, NIL, p->n_type, 0, 0);
939939         sp->n_lval = 0;
 940940         sp->n_rval = STKREG;
 941941         ecomp(buildtree(LSEQ, sp, bcon(4)));
     
 !
14691469         tfree(f);
 14701470         tfree(a);
 14711471 
<>1472 -        f = block(REG, NIL, NIL, PTR+VOID, 0, MKAP(VOID));
  1472+        f = block(REG, NIL, NIL, PTR+VOID, 0, 0);
14731473         regno(f) = FPREG;
 14741474 
 14751475         while (nframes--)
<>1476 -                f = block(UMUL, f, NIL, PTR+VOID, 0, MKAP(VOID));
  1476+                f = block(UMUL, f, NIL, PTR+VOID, 0, 0);
14771477 
<>1478 -        f = block(PLUS, f, bcon(4), INCREF(PTR+VOID), 0, MKAP(VOID));
  1478+        f = block(PLUS, f, bcon(4), INCREF(PTR+VOID), 0, 0);
14791479         f = buildtree(UMUL, f, NIL);
 14801480 
 14811481         return f;
     
 !
14971497         tfree(f);
 14981498         tfree(a);
 14991499 
<>1500 -        f = block(REG, NIL, NIL, PTR+VOID, 0, MKAP(VOID));
  1500+        f = block(REG, NIL, NIL, PTR+VOID, 0, 0);
15011501         regno(f) = FPREG;
 15021502 
 15031503         while (nframes--)
<>1504 -                f = block(UMUL, f, NIL, PTR+VOID, 0, MKAP(VOID));
  1504+                f = block(UMUL, f, NIL, PTR+VOID, 0, 0);
<_15051505 
 15061506         return f;
 15071507 bad:
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 13:18 +0100