diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1996-02-06 12:30:34 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1996-02-06 12:30:34 -0800 |
commit | fc69eca06e0def1eeb551f124fd82ebd16f54b0b (patch) | |
tree | f4da263b780a0b80372b902f6d909ea55a99a829 | |
parent | cda0f51eb5754177e9890d15c46be51d5ab0c645 (diff) | |
download | gcc-fc69eca06e0def1eeb551f124fd82ebd16f54b0b.zip gcc-fc69eca06e0def1eeb551f124fd82ebd16f54b0b.tar.gz gcc-fc69eca06e0def1eeb551f124fd82ebd16f54b0b.tar.bz2 |
stor-layout.c (layout_type): Use same code to layout CHAR_TYPE as for INTEGER_TYPE (instead of hard-wiring...
* stor-layout.c (layout_type): Use same code to layout CHAR_TYPE
as for INTEGER_TYPE (instead of hard-wiring in QImode).
From-SVN: r11177
-rw-r--r-- | gcc/stor-layout.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index e743c37..7669106 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -687,6 +687,7 @@ layout_type (type) case INTEGER_TYPE: case ENUMERAL_TYPE: + case CHAR_TYPE: if (TREE_CODE (TYPE_MIN_VALUE (type)) == INTEGER_CST && tree_int_cst_sgn (TYPE_MIN_VALUE (type)) >= 0) TREE_UNSIGNED (type) = 1; @@ -933,13 +934,6 @@ layout_type (type) TREE_UNSIGNED (type) = 1; break; - case CHAR_TYPE: - TYPE_MODE (type) = QImode; - TYPE_SIZE (type) = size_int (GET_MODE_BITSIZE (TYPE_MODE (type))); - TYPE_PRECISION (type) = GET_MODE_BITSIZE (TYPE_MODE (type)); - TYPE_ALIGN (type) = GET_MODE_ALIGNMENT (TYPE_MODE (type)); - break; - case SET_TYPE: if (TREE_CODE (TYPE_MAX_VALUE (TYPE_DOMAIN (type))) != INTEGER_CST || TREE_CODE (TYPE_MIN_VALUE (TYPE_DOMAIN (type))) != INTEGER_CST) |