commit a564aad2414de7c381465fa9ced3dcf0f4f2a532
Author:     Roberto E. Vargas Caballero <k...@shike2.com>
AuthorDate: Sun Jan 24 18:37:58 2016 +0100
Commit:     Roberto E. Vargas Caballero <k...@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
@@ -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);

Reply via email to