Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.127
 
1.128
 
MAIN:ragge:20110216172121
 
local.c
_>371371 #endif
 372372         register int o;
 373373         register int m;
<>374 -        TWORD t;
375374 
 376375 #ifdef PCC_DEBUG
 377376         if (xdebug) {
     
 !
493492                 /*
 494493                  * Remove unnecessary conversion ops.
 495494                  */
<>496 -                if (clogop(l->n_op) && l->n_left->n_op == SCONV) {
 497 -                        if (coptype(l->n_op) != BITYPE)
 498 -                                break;
 499 -                        if (l->n_right->n_op == ICON) {
 500 -                                r = l->n_left->n_left;
 501 -                                if (r->n_type >= FLOAT && r->n_type <= LDOUBLE)
 502 -                                        break;
 503 -                                if (ISPTR(r->n_type))
 504 -                                        break; /* no opt for pointers */
 505 -                                if (toolarge(r->n_type, l->n_right->n_lval))
 506 -                                        break;
 507 -                                /* Type must be correct */
 508 -                                t = r->n_type;
 509 -                                nfree(l->n_left);
 510 -                                l->n_left = r;
 511 -                                l->n_type = t;
 512 -                                l->n_right->n_type = t;
 513 -                        }
 514 -                }
  495+                if (!clogop(l->n_op) || l->n_left->n_op != SCONV)
  496+                        break;
  497+                if (coptype(l->n_op) != BITYPE)
  498+                        break;
  499+                if (l->n_right->n_op != ICON)
  500+                        break;
  501+                r = l->n_left->n_left;
  502+                if (r->n_type >= FLOAT)
  503+                        break;
  504+                if (toolarge(r->n_type, l->n_right->n_lval))
  505+                        break;
  506+                l->n_right->n_type = r->n_type;
  507+                if (l->n_op >= ULE && l->n_op <= UGT)
  508+                        l->n_op -= (UGT-ULE);
  509+                p->n_left = buildtree(l->n_op, r, l->n_right);
  510+                nfree(l->n_left);
  511+                nfree(l);
<_515512                 break;
 516513 
 517514         case PCONV:
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-20 21:54 +0100