shithub: scc

Download patch

ref: 401efa0d74d58e83b9f8754f738679c132742123
parent: 292c2611dbb22bc78f2fea52eda82252f071491b
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Apr 25 11:02:21 EDT 2014

Use C for unsigned char

Almost of the computer use an unsigned char for char,
so it is more logical use the 'C' for for unsigned char, and
then we will get a more logical intermediate language.

--- a/cc1/types.c
+++ b/cc1/types.c
@@ -26,13 +26,13 @@
 	},
 	*schartype = &(Type) {
 		.op = INT,
-		.letter = 'C',
+		.letter = 'M',
 		.defined = 1,
 		.u.rank = RANK_SCHAR
 	},
 	*uchartype = &(Type) {
 		.op = INT,
-		.letter = 'M',
+		.letter = 'C',
 		.sign = 1,
 		.defined = 1,
 		.u.rank = RANK_UCHAR
@@ -39,7 +39,7 @@
 	},
 	*chartype = &(Type) {
 		.op = INT,
-		.letter = 'M',
+		.letter = 'C',
 		.sign = 1,
 		.defined = 1,
 		.u.rank = RANK_UCHAR