[hackers] [scc] [cc1] Emit type of constant in array sizes || Roberto E. Vargas Caballero
commit a564aad2414de7c381465fa9ced3dcf0f4f2a532
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sun Jan 24 18:37:58 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sun Jan 24 18:37:58 2016 +0100
[cc1] Emit type of constant in array sizes
It makes the IR more regular.
diff --git a/cc1/code.c b/cc1/code.c
index e19f248..661ffb5 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -253,7 +253,7 @@ emittype(Type *tp)
emitletter(tp);
putchar('\t');
emitletter(tp->type);
- printf("\t#%d\n", tp->n.elem);
+ printf("\t#%c%d\n", sizettype->letter, tp->n.elem);
return;
case PTR:
emittype(tp->type);
Received on Sun Jan 24 2016 - 18:42:00 CET
This archive was generated by hypermail 2.3.0
: Sun Jan 24 2016 - 18:48:26 CET