ref: 5fb1525449fa2103cadc946ff467dec95a3da638
parent: a2edadd2f36ac7cd89027252bdc63f459112ec1a
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Aug 14 13:23:56 EDT 2015
Avoid print type letters in emitbin() If there is no letter for the operator it means that is a non sense to print the type of the node.
--- a/cc1/code.c
+++ b/cc1/code.c
@@ -307,9 +307,10 @@
emitnode(np->left);
emitnode(np->right);
- if ((s = optxt[op]) != NULL) /* do not print in OCOLON case */
+ if ((s = optxt[op]) != NULL) { /* do not print in OCOLON case */
printf("\t%s", optxt[op]);
- emitletter(np->type);
+ emitletter(np->type);
+ }
}
static void