ref: 78fb2955d0a19020b98dcaf65306217a47d720ea
parent: 5b895e06a58fa8318c891e6f04401180506b209f
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jan 8 07:26:22 EST 2016
Add ENUM in the cases that were lost in fold.c ENUM was a late addition, and it had to be included in a lot of different places, but it was lost in some of them.
--- a/cc1/fold.c
+++ b/cc1/fold.c
@@ -6,8 +6,6 @@
#include "cc1.h"
-/* TODO: Add ENUM in the cases */
-
TUINT
ones(int nbytes)
{
@@ -325,6 +323,7 @@
rs = (rp) ? rp->sym : NULL;
switch (type = optype->op) {
+ case ENUM:
case INT:
if (!optype->sign)
type = UNSIGNED;