shithub: scc

Download patch

ref: 183d8b789474ec950364a4fcb34302cbf567718e
parent: 9caf484943fe92d819e178eabfbf58e142e893e1
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Apr 15 06:23:42 EDT 2016

[cc2-qbe] Add AUTO symbols to symname()

Auto variables were not getting a correct name in symname().

--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -41,8 +41,11 @@
 		case EXTRN:
 		case GLOB:
 		case PRIVAT:
+		case AUTO:
 			sprintf(name, "%c%s", c, sym->name);
 			return name;
+		default:
+			abort();
 		}
 	}