diff options
author | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-24 19:26:42 +0000 |
---|---|---|
committer | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-24 19:26:42 +0000 |
commit | 8a95ab857c0aa88461aa4f10944825c98f32d0df (patch) | |
tree | db94b2c1a07d5c04365806edf03c813ecba575c1 /gcc/stor-layout.c | |
parent | 2323093ea57b891515a0792298d5e3998ee8218d (diff) | |
download | gcc-8a95ab857c0aa88461aa4f10944825c98f32d0df.tar.gz |
Vector conversions support
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34680 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 65ac15b12bc..12162e7f14b 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1286,6 +1286,17 @@ layout_type (type) TYPE_SIZE_UNIT (type) = size_int (GET_MODE_SIZE (TYPE_MODE (type))); break; + case VECTOR_TYPE: + { + tree subtype; + + subtype = TREE_TYPE (type); + TREE_UNSIGNED (type) = TREE_UNSIGNED (subtype); + TYPE_SIZE (type) = bitsize_int (GET_MODE_BITSIZE (TYPE_MODE (type))); + TYPE_SIZE_UNIT (type) = size_int (GET_MODE_SIZE (TYPE_MODE (type))); + } + break; + case VOID_TYPE: /* This is an incomplete type and so doesn't have a size. */ TYPE_ALIGN (type) = 1; |