Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.5
 
1.6
 
MAIN:gmcgarry:20071128022353
 
local.c
_>4646         NODE *r, *l;
 4747         int o;
 4848         int m, ml;
<>49 -        TWORD t;
  49+        TWORD ty;
5050 
 5151 //printf("in:\n");
 5252 //fwalk(p, eprint, 0);
 5353 
<>54 -        switch( o = p->n_op ){
  54+        switch (o = p->n_op) {
5555 
 5656         case NAME:
 5757                 if ((q = p->n_sp) == NULL)
     
 !
109109                                 if (r->n_type >= FLOAT && r->n_type <= LDOUBLE)
 110110                                         break;
 111111                                 /* Type must be correct */
<>112 -                                t = r->n_type;
  112+                                ty = r->n_type;
113113                                 nfree(l->n_left);
 114114                                 l->n_left = r;
<>115 -                                l->n_type = t;
 116 -                                l->n_right->n_type = t;
  115+                                l->n_type = ty;
  116+                                l->n_right->n_type = ty;
117117                         }
 118118 #if 0
 119119                           else if (l->n_right->n_op == SCONV &&
     
 !
339339         /* save the address of sp */
 340340         sp = block(REG, NIL, NIL, PTR+INT, t->n_df, t->n_sue);
 341341         sp->n_lval = 0;
<>342 -        sp->n_rval = STKREG;
  342+        sp->n_rval = SP;
343343         t->n_type = sp->n_type;
 344344         ecomp(buildtree(ASSIGN, t, sp)); /* Emit! */
 345345 
 346346         /* add the size to sp */
 347347         sp = block(REG, NIL, NIL, p->n_type, 0, 0);
 348348         sp->n_lval = 0;
<>349 -        sp->n_rval = STKREG;
  349+        sp->n_rval = SP;
350350         ecomp(buildtree(PLUSEQ, sp, p));
 351351 }
 352352 
     
 !
529529         printf(LABFMT ":\n", label);
 530530 }
 531531 
<>532 -static char *loctbl[] = { "text", "data", "bss", "data" };
  532+/* ro-text, ro-data, rw-data, ro-strings */
  533+static char *loctbl[] = { "text", "rdata", "data", "rdata" };
533534 
 534535 void
 535536 setloc1(int locc)
 536537 {
<>537 -        //printf("setloc1(%d)\n", locc);
 538 -        if ((locc == lastloc) || (lastloc == DATA && locc == STRNG) || (locc == STRNG || lastloc == DATA))
  538+        if ((locc == lastloc) || (lastloc == DATA && locc == STRNG) ||
  539+            (locc == STRNG && lastloc == DATA))
539540                 return;
 540541         lastloc = locc;
 541542         printf("\t.%s\n", loctbl[locc]);
     
 !
594595                 inbits = fsz;
 595596         }
 596597 }
<_ 598+
  599+/*
  600+ * va_start(ap, last) implementation.
  601+ *
  602+ * f is the NAME node for this builtin function.
  603+ * a is the argument list containing:
  604+ *         CM
  605+ *      ap   last
  606+ */
  607+NODE *
  608+mips_builtin_stdarg_start(NODE *f, NODE *a)
  609+{
  610+        NODE *p;
  611+        int sz = 1;
  612+
  613+        /* check num args and type */
  614+        if (a == NULL || a->n_op != CM || a->n_left->n_op == CM ||
  615+            !ISPTR(a->n_left->n_type))
  616+                goto bad;
  617+
  618+        /* must first deal with argument size; use int size */
  619+        p = a->n_right;
  620+        if (p->n_type < INT)
  621+                sz = SZINT / tsize(p->n_type, p->n_df, p->n_sue);
  622+
  623+bad:
  624+        return f;
  625+}
  626+
  627+NODE *
  628+mips_builtin_va_arg(NODE *f, NODE *a)
  629+{
  630+        return f;
  631+}
  632+
  633+NODE *
  634+mips_builtin_va_end(NODE *f, NODE *a)
  635+{
  636+        return f;
  637+}
  638+
  639+NODE *
  640+mips_builtin_va_copy(NODE *f, NODE *a)
  641+{
  642+        return f;
  643+}
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-01 09:48 +0200