scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit a564aad2414de7c381465fa9ced3dcf0f4f2a532
parent c901f8723b03863440d63986bf14f442dd1244c7
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 24 Jan 2016 18:37:58 +0100

[cc1] Emit type of constant in array sizes

It makes the IR more regular.

Diffstat:
Mcc1/code.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/code.c b/cc1/code.c @@ -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);