scc

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

commit e380352af6d775f0f9aefe3623658ad72ce80c1a
parent a5b0d0b61cad47c7f905ec4eda037a339570b0b8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 15 Apr 2016 09:40:10 +0200

[cc2-qbe] Fix returned name in symname()

We were not returnning the generated name which includes
the sigil.

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 @@ -42,7 +42,7 @@ symname(Symbol *sym) case GLOB: case PRIVAT: sprintf(name, "%c%s", c, sym->name); - return sym->name; + return name; } }