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:ragge:20110628093331
 
order.c
_>291291         }
 292292 #endif
 293293 
<> 294+/*
  295+ * Turn a UMUL-referenced node into OREG.
  296+ * Be careful about register classes, this is a place where classes change.
  297+ */
294298 void
<>295 -offstar( p, s ) register NODE *p; {
 296 -comperr("offstar");
  299+offstar(NODE *p, int shape)
  300+{
  301+        NODE *r;
  302+
  303+        if (x2debug)
  304+                printf("offstar(%p)\n", p);
  305+
  306+        if (isreg(p))
  307+                return; /* Is already OREG */
  308+
  309+#if 0 /* notyet */
  310+        r = p->n_right;
  311+        if( p->n_op == PLUS || p->n_op == MINUS ){
  312+                if( r->n_op == ICON ){
  313+                        if (isreg(p->n_left) == 0)
  314+                                (void)geninsn(p->n_left, INAREG);
  315+                        /* Converted in ormake() */
  316+                        return;
  317+                }
  318+                if (r->n_op == LS && r->n_right->n_op == ICON &&
  319+                    r->n_right->n_lval == 2 && p->n_op == PLUS) {
  320+                        if (isreg(p->n_left) == 0)
  321+                                (void)geninsn(p->n_left, INAREG);
  322+                        if (isreg(r->n_left) == 0)
  323+                                (void)geninsn(r->n_left, INAREG);
  324+                        return;
  325+                }
  326+        }
  327+#endif
  328+        (void)geninsn(p, INAREG);
  329+}
  330+
  331+
297332 #if 0
<> 333+void
  334+offstar( p, s ) register NODE *p; {
298335         if( p->n_op == PLUS ) {
 299336                 if( p->n_left->n_su == fregs ) {
 300337                         order( p->n_left, INAREG );
     
 !
338375         }
 339376 
 340377         order( p, INAREG );
<>341 -#endif
342378         }
<> 379+#endif
343380 
 344381 int
 345382 setbin( p ) register NODE *p; {
     
 !
570607         switch (q->op) {
 571608         case STARG:
 572609                 {
<>573 -                static struct rspecial s[] = { NEVER, R0, NEVER, R1,
 574 -                    NEVER, R2, NEVER, R3, NEVER, R4, NEVER, R5 };
  610+                static struct rspecial s[] = {
  611+                    { NEVER, R0, }, { NEVER, R1, }, { NEVER, R2, },
  612+                    { NEVER, R3, }, { NEVER, R4, }, { NEVER, R5 } };
<_575613                 return s;
 576614                 }
 577615         default:
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-02 12:32 +0200