shithub: scc

Download patch

ref: 53ec588a4d2b526910a7926508bbdd9f70517c13
parent: 8a633ce7e10c62a1ad9a6641d138ff261b440f2d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Jan 26 14:06:26 EST 2016

[cc2] Initialize the align of strings

--- a/cc2/parser.c
+++ b/cc2/parser.c
@@ -202,6 +202,7 @@
 		np->op = OSTRING;
 		np->type.flags = STRF;
 		np->type.size = strlen(token);
+		np->type.align = int8type.align;
 		np->u.s = xstrdup(token);
 	} else {
 		np->op = OCONST;