scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 78fb2955d0a19020b98dcaf65306217a47d720ea
parent 5b895e06a58fa8318c891e6f04401180506b209f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  8 Jan 2016 12:26:22 +0100

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.

Diffstat:
Mcc1/fold.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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 @@ fold(int op, Type *tp, Node *lp, Node *rp) rs = (rp) ? rp->sym : NULL; switch (type = optype->op) { + case ENUM: case INT: if (!optype->sign) type = UNSIGNED;