Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.35
 
1.36
 
MAIN:ragge:20060128072712
 
local.c
_>167167                         }
 168168                 }
 169169 
<>170 -#if 0
 171 -                if ((p->n_type == INT || p->n_type == UNSIGNED) &&
 172 -                    ISPTR(l->n_type)) {
 173 -                        nfree(p);
 174 -                        return l;
 175 -                }
 176 -#endif
 177 -
178170                 o = l->n_op;
 179171                 m = p->n_type;
 180172 
     
 !
231223                         nfree(p);
 232224                         p = l;
 233225                 }
<> 226+                if ((p->n_type == CHAR || p->n_type == UCHAR ||
  227+                    p->n_type == SHORT || p->n_type == USHORT) &&
  228+                    (l->n_type == FLOAT || l->n_type == DOUBLE ||
  229+                    l->n_type == LDOUBLE)) {
  230+                        p = block(SCONV, p, NIL, p->n_type, p->n_df, p->n_sue);
  231+                        p->n_left->n_type = INT;
  232+                        return p;
  233+                }
234234                 break;
 235235 
 236236         case MOD:
     
 !
288288 }
 289289 
 290290 /*
<> 291+ * Return 1 if a variable of type type is OK to put in register.
  292+ */
  293+int
  294+cisreg(TWORD t)
  295+{
  296+        if (t == FLOAT || t == DOUBLE || t == LDOUBLE)
  297+                return 0; /* not yet */
  298+        return 1;
  299+}
  300+
  301+/*
<_291302  * return a node, for structure references, which is suitable for
 292303  * being added to a pointer of type t, in order to be off bits offset
 293304  * into a structure
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-19 01:36 +0100