ref: 34f9e3e9ce1c23c5d0c4d8bf5a9728495604d629
parent: 2adcda7668e73c5fd1471f0766fd6fd3ba8d638b
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Sep 29 05:32:40 EDT 2015
Emit enum constants
--- a/cc1/code.c
+++ b/cc1/code.c
@@ -193,6 +193,7 @@
switch (tp->op) {
case PTR:
case INT:
+ case ENUM:
u = (tp->sign) ? (TUINT) sym->u.i : sym->u.u;
printf("#%c%lX", np->type->letter, sym->u.i & ones(tp->size));
break;