scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 9536419154ea4a8f648c59298e99ad29dbae2a6b
parent 245da61b120ff5449fdb2856473982adcdd7bea3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 29 Nov 2016 11:43:19 +0100

[cc1] Remove RANK_INT from arch.h

We do not need it because we can take the rank directly
from the inttype, and it must be the same value.

Diffstat:
Mcc1/arch/amd64-sysv/arch.h | 2--
Mcc1/arch/i386-sysv/arch.h | 2--
Mcc1/arch/qbe/arch.h | 1-
Mcc1/arch/z80/arch.h | 2--
Mcc1/types.c | 2+-
5 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/cc1/arch/amd64-sysv/arch.h b/cc1/arch/amd64-sysv/arch.h @@ -1,5 +1,3 @@ /* See LICENSE file for copyright and license details. */ -#define RANK_INT 3 - #define L_ENUM L_INT32 diff --git a/cc1/arch/i386-sysv/arch.h b/cc1/arch/i386-sysv/arch.h @@ -1,5 +1,3 @@ /* See LICENSE file for copyright and license details. */ -#define RANK_INT 3 - #define L_ENUM L_INT32 diff --git a/cc1/arch/qbe/arch.h b/cc1/arch/qbe/arch.h @@ -1,4 +1,3 @@ /* See LICENSE file for copyright and license details. */ -#define RANK_INT 3 #define L_ENUM L_INT32 diff --git a/cc1/arch/z80/arch.h b/cc1/arch/z80/arch.h @@ -1,5 +1,3 @@ /* See LICENSE file for copyright and license details. */ -#define RANK_INT 3 - #define L_ENUM L_INT16 diff --git a/cc1/types.c b/cc1/types.c @@ -284,7 +284,7 @@ mktype(Type *tp, int op, TINT nelem, Type *pars[]) break; case ENUM: type.prop |= TPRINTED | TINTEGER | TARITH; - type.n.rank = RANK_INT; + type.n.rank = inttype->n.rank; break; case STRUCT: case UNION: