scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit f971c72c570d9836184ee6beca0757fd87498b37
parent 2cede128ae54993e1c32c10ac45f91b71428cd4b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  9 Oct 2014 17:30:03 +0200

Fix definition of register variables

Register variables were using 'Q', but it was used for int64
integers. It is more logical to use 'R' for registers, that
is free now.

Diffstat:
cc1/code.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/code.c b/cc1/code.c @@ -76,7 +76,7 @@ emitsym2(Symbol *sym) else if (sym->s.isglobal) c = 'G'; else if (sym->s.isregister) - c = 'Q'; + c = 'R'; else c = 'A'; printf("%c%d", c, sym->id);