shithub: scc

Download patch

ref: f971c72c570d9836184ee6beca0757fd87498b37
parent: 2cede128ae54993e1c32c10ac45f91b71428cd4b
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Oct 9 13:30:03 EDT 2014

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.

--- a/cc1/code.c
+++ b/cc1/code.c
@@ -76,7 +76,7 @@
 	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);