[hackers] [scc] [cc2-qbe] Do not append ':' to block labels || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Tue, 14 Jun 2016 16:03:44 +0200 (CEST)

commit 76a21b68a5cb80702419fc17af9179e9be009569
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Jun 14 16:02:58 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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)();
         }
Received on Tue Jun 14 2016 - 16:03:44 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 14 2016 - 16:12:14 CEST