[hackers] [scc] [cc1] Add aditional debug in fold.c || Roberto E. Vargas Caballero
commit 8adc67d19572d6edb933a5af8960fbc86123e1f4
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Jan 18 17:47:09 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Jan 18 17:47:09 2017 +0100
[cc1] Add aditional debug in fold.c
diff --git a/cc1/fold.c b/cc1/fold.c
index d352920..d3c0f35 100644
--- a/cc1/fold.c
+++ b/cc1/fold.c
_AT_@ -194,6 +194,8 @@ foldint(int op, Symbol *res, TINT l, TINT r)
default: return 0;
}
res->u.i = i;
+
+ DBG("FOLD %lld %d %lld = %lld", l, op, r, i);
return 1;
}
_AT_@ -227,12 +229,15 @@ folduint(int op, Symbol *res, TUINT l, TUINT r)
case ONE: i = l != r; goto sign;
default: return 0;
}
-
res->u.u = u & ones(res->type->size);
+
+ DBG("FOLD %llu %d %llu = %llu", l, op, r, i);
return 1;
sign:
res->u.i = i;
+
+ DBG("FOLD %llu %d %llu = %llu", l, op, r, i);
return 1;
}
_AT_@ -480,14 +485,17 @@ identity(int *op, Node *lp, Node *rp)
}
free_right:
+ DBG("FOLD identity %d", op);
freetree(rp);
return lp;
free_left:
+ DBG("FOLD identity %d", op);
freetree(lp);
return rp;
change_to_comma:
+ DBG("FOLD identity %d", op);
*op = OCOMMA;
return NULL;
}
_AT_@ -506,6 +514,7 @@ foldternary(int op, Type *tp, Node *cond, Node *body)
np = body->left;
freetree(body->right);
}
+ DBG("FOLD ternary");
freetree(cond);
free(body);
return np;
Received on Thu Jan 19 2017 - 10:00:32 CET
This archive was generated by hypermail 2.3.0
: Thu Jan 19 2017 - 10:12:31 CET