ref: 58748e88436a2aaf8915ed30184cb5f9378367a7
parent: 1325f1ab9f46bda8ff1e110029d5c3fff1d4f9d7
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Nov 29 06:43:19 EST 2016
[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.
--- 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
--- 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
--- 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
--- 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
--- a/cc1/types.c
+++ b/cc1/types.c
@@ -284,7 +284,7 @@
break;
case ENUM:
type.prop |= TPRINTED | TINTEGER | TARITH;
- type.n.rank = RANK_INT;
+ type.n.rank = inttype->n.rank;
break;
case STRUCT:
case UNION: