commit 88ae3bed3e7c06774ab9a9a98db4a71534fea594 Author: Roberto E. Vargas Caballero <k...@shike2.com> AuthorDate: Fri Jun 3 12:53:51 2016 +0200 Commit: Roberto E. Vargas Caballero <k...@shike2.com> CommitDate: Fri Jun 3 12:53:51 2016 +0200
[cc2-qbe] Convert register variables into automatic variables Qbe ignores register variables, and this change makes easier for qbe backend to handle automatic and register variables. diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c index 4d3660d..c637ced 100644 --- a/cc2/arch/qbe/code.c +++ b/cc2/arch/qbe/code.c @@ -282,6 +282,8 @@ defpar(Symbol *sym) void defvar(Symbol *sym) { + if (sym->kind == SREG) + sym->kind = SAUTO; } void