scc

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

commit 76a21b68a5cb80702419fc17af9179e9be009569
parent 1a58b74e71aff78c8d6bee79604a8330c745d927
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 14 Jun 2016 16:02:58 +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.

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

diff --git 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)(); }