scc

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

commit 0c6854e0f1c57940cf2749e44e318f0bd2148283
parent 9f48a2b2f9a3e56759e52f609bbc9f1dcd5f7b9d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun,  1 Mar 2015 21:18:10 +0000

Remove sign field from ctype of cc1

This field was not ever used, because the sign is a semantic
value of the type, and it is only used in code generation
stage.

Diffstat:
Mcc1/cc1.h | 1-
Mcc1/types.c | 6------
2 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -38,7 +38,6 @@ struct ctype { uint8_t ns; char letter; /* letter of the type */ bool defined : 1; /* type defined (is not a forward reference) */ - bool sign : 1; /* sign type */ struct ctype *type; /* base type */ struct ctype *next; /* next element in the hash */ Type **pars; /* type parameters */ diff --git a/cc1/types.c b/cc1/types.c @@ -42,14 +42,12 @@ static Type types[] = { { /* 4 = uchartype */ .op = INT, .letter = L_UCHAR, - .sign = 1, .defined = 1, .n.rank = RANK_UCHAR }, { /* 5 = chartype */ .op = INT, .letter = L_CHAR, - .sign = 1, .defined = 1, .n.rank = RANK_CHAR }, @@ -68,7 +66,6 @@ static Type types[] = { { /* 8 = uinttype */ .op = INT, .letter = L_UINT, - .sign = 1, .defined = 1, .n.rank = RANK_UINT }, @@ -87,14 +84,12 @@ static Type types[] = { { /* 11 = ulongtype .op = INT, .letter = L_ULONG, - .sign = 1, .defined = 1, .n.rank = RANK_ULONG }, { /* 12 = ullongtype */ .op = INT, .letter = L_ULLONG, - .sign = 1, .defined = 1, .n.rank = RANK_ULLONG }, @@ -221,7 +216,6 @@ mktype(Type *tp, uint8_t op, short nelem, void *data) type.type = tp; type.op = op; - type.sign = 0; type.letter = letters[op]; type.pars = data; type.n.elem = nelem;