History

Revert "Add predictability in CType initialization."

This reverts commit 93785149ed61b7165510ff30149f297cf0821c88.

Thomas Preud'homme committed 13 years ago

Commit 6f4983a1 parent ae33c301 file · +0 −6Browse files

Unified · Split

tccgen.c+0−6
@@ -361,7 +361,6 @@ void vpush64(int ty, unsigned long long v) · 360 unmodified lines
361361 CValue cval;
362362 CType ctype;
363363 ctype.t = ty;
364− ctype.ref = 0;
365364 cval.ull = v;
366365 vsetc(&ctype, VT_CONST, &cval);
367366 }
@@ -1735,7 +1734,6 @@ ST_FUNC void gen_op(int op) · 1367 unmodified lines
17351734 }
17361735 vswap();
17371736 type1.t = t;
1738− type1.ref = 0;
17391737 gen_cast(&type1);
17401738 vswap();
17411739 /* special case for shifts and long long: we keep the shift as
@@ -2719,7 +2717,6 @@ static void struct_decl(CType *type, int u) · 977 unmodified lines
27192717 v = anon_sym++;
27202718 }
27212719 type1.t = a;
2722− type1.ref = 0;
27232720 /* we put an undefined size for struct/union */
27242721 s = sym_push(v | SYM_STRUCT, &type1, 0, -1);
27252722 s->r = 0; /* default alignment is zero as gcc */
@@ -3399,7 +3396,6 @@ static void gfunc_param_typed(Sym *func, Sym *arg) · 673 unmodified lines
33993396 /* default casting : only need to convert float to double */
34003397 if ((vtop->type.t & VT_BTYPE) == VT_FLOAT) {
34013398 type.t = VT_DOUBLE;
3402− type.ref = 0;
34033399 gen_cast(&type);
34043400 }
34053401 } else if (arg == NULL) {
@@ -3596,7 +3592,6 @@ ST_FUNC void unary(void) · 190 unmodified lines
35963592 if ((vtop->r & (VT_VALMASK | VT_LVAL | VT_SYM)) == VT_CONST) {
35973593 CType boolean;
35983594 boolean.t = VT_BOOL;
3599− boolean.ref = 0;
36003595 gen_cast(&boolean);
36013596 vtop->c.i = !vtop->c.i;
36023597 } else if ((vtop->r & VT_VALMASK) == VT_CMP)
@@ -4106,7 +4101,6 @@ static void expr_cond(void) · 503 unmodified lines
41064101 CType boolean;
41074102 int c;
41084103 boolean.t = VT_BOOL;
4109− boolean.ref = 0;
41104104 vdup();
41114105 gen_cast(&boolean);
41124106 c = vtop->c.i;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t