commit 76a21b68a5cb80702419fc17af9179e9be009569
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Tue Jun 14 16:02:58 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Tue Jun 14 16:02:58 2016 +0200

    [cc2-qbe] Do not append ':' to block labels
    
    Qbe does not require ':' at the end of labels, and in
    fact, it is an error.

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index abf096d..f675618 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -345,7 +345,7 @@ writeout(void)
        /* emit assembler instructions */
        for (pc = prog; pc; pc = pc->next) {
                if (pc->label)
-                       printf("%s:\n", symname(pc->label));
+                       printf("%s\n", symname(pc->label));
                if (pc->op)
                        (*optbl[pc->op].fun)();
        }

Reply via email to