scc

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

commit 505d9bd056b9f1a67c58cb0939364339d0812d67
parent 11111b2afe6b8510fdd8cf21a6058f7a60820117
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 15 Apr 2016 10:01:24 +0200

[cc2-qbe] Fast and dirty workaround to function type

At this moment we cannot set the correct type in functions
because we don't have this information, but we can mock it
a bit and set all the functions as integer functions.

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 @@ -164,7 +164,7 @@ writeout(void) if (curfun->kind == GLOB) fputs("export ", stdout); - printf("function %s(", symname(curfun)); + printf("function w %s(", symname(curfun)); for (p = locals; p && p->type.flags & PARF; p = p->next) printf("%s %s,", size2asm(&p->type), symname(p));