Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.266
 
1.267
 
MAIN:ragge:20110116203525
 
trees.c
_>25782578         if (BTYPE(p->n_type) == BOOL) {
 25792579                 if (p->n_op == SCONV && p->n_type == BOOL) {
 25802580                         /* create a jump and a set */
<>2581 -                        NODE *q, *r, *s;
 2582 -                        int l, val;
  2581+                        NODE *r;
  2582+                        int l, l2;
25832583 
<>2584 -                        q = talloc();
 2585 -                        *q = *p;
 2586 -                        q->n_type = BOOL_TYPE;
25872584                         r = tempnode(0, BOOL_TYPE, NULL, MKAP(BOOL_TYPE));
<>2588 -                        val = regno(r);
 2589 -                        s = tempnode(val, BOOL_TYPE, NULL, MKAP(BOOL_TYPE));
 2590 -                        *p = *s;
 2591 -                        q = buildtree(ASSIGN, r, q);
 2592 -                        cbranch(buildtree(EQ, q, bcon(0)), bcon(l = getlab()));
 2593 -                        ecode(buildtree(ASSIGN, s, bcon(1)));
  2585+                        cbranch(buildtree(EQ, p->n_left, bcon(0)),
  2586+                            bcon(l = getlab()));
  2587+                        *p = *r;
  2588+                        ecode(buildtree(ASSIGN, tcopy(r), bcon(1)));
  2589+                        branch(l2 = getlab());
25942590                         plabel(l);
<> 2591+                        ecode(buildtree(ASSIGN, r, bcon(0)));
  2592+                        plabel(l2);
<_25952593                 } else
 25962594                         p->n_type = (p->n_type & ~BTMASK) | BOOL_TYPE;
 25972595         }
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-17 22:42 +0100