ref: 9caf484943fe92d819e178eabfbf58e142e893e1
parent: a8217de16179e42b083475bd3a4d02d5ba58bdfc
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Apr 15 06:01:24 EDT 2016
[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.
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -164,7 +164,7 @@
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));
--
⑨