ref: eda67a00f4481efdf3c361b2f9cc7925aedfc41f
parent: 1af75a9c4d18e2913ef10fdf4ce98b6193d1e032
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Jun 3 08:53:51 EDT 2016
[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.
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -282,6 +282,8 @@
void
defvar(Symbol *sym)
{
+ if (sym->kind == SREG)
+ sym->kind = SAUTO;
}
void