scc

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

commit f48bd7ea099100ae505a090271379e47953f0c54
parent 2922dbe23dbf8ac30c6bed8ade83865abe0450a5
Author: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
Date:   Fri, 15 Apr 2016 14:48:03 +0200

[cc2-qbe] Do not emit local temporary variables

They do not need to be allocated.

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 @@ -201,7 +201,7 @@ writeout(void) puts(")\n{"); - for ( ; p; p = p->next) { + for ( ; p && p->id != TMPSYM; p = p->next) { tp = &p->type; printf("\t%s %s= alloc%lld %lld\n", symname(p), size2asm(tp),