scc

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

commit ee04902bc672586ad9963bd85155c3d28cdab47d
parent 9aef91ec428991fb223fac5d60863048e5deb019
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 26 Jan 2016 19:38:21 +0100

[cc2-intel] Use .L for local symbols

Elf targets use .L like prefix for locals, while commonly z80 assemblers
use . and a.out systems use L.

Diffstat:
Mcc2/arch/amd64-sysv/code.c | 2+-
Mcc2/arch/i386-sysv/code.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc2/arch/amd64-sysv/code.c b/cc2/arch/amd64-sysv/code.c @@ -47,7 +47,7 @@ symname(Symbol *sym) if (sym->numid == 0 && (sym->numid = ++id) == 0) error(EIDOVER); - sprintf(name, ".%d", sym->numid); + sprintf(name, ".L%d", sym->numid); return name; } diff --git a/cc2/arch/i386-sysv/code.c b/cc2/arch/i386-sysv/code.c @@ -47,7 +47,7 @@ symname(Symbol *sym) if (sym->numid == 0 && (sym->numid = ++id) == 0) error(EIDOVER); - sprintf(name, ".%d", sym->numid); + sprintf(name, ".L%d", sym->numid); return name; }