diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-07 20:05:14 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-07 20:05:14 +0000 |
commit | 7948df32e1a6725b2a8b0c32b1de7167d4190400 (patch) | |
tree | 57a2412ddbafbe7c78a634ebf6e0b4c623253827 /gcc/c-common.c | |
parent | 4d29239659e70a19e6b6d699da1ec22238392ecc (diff) | |
download | gcc-7948df32e1a6725b2a8b0c32b1de7167d4190400.tar.gz |
* c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
TYPE_MODE.
* gcc.c-torture/execute/20050107-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93066 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index bb81a6f281b..a699cbcdc63 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4341,6 +4341,7 @@ handle_mode_attribute (tree *node, tree name, tree args, TYPE_MAX_VALUE (type) = TYPE_MAX_VALUE (typefm); TYPE_SIZE (type) = TYPE_SIZE (typefm); TYPE_SIZE_UNIT (type) = TYPE_SIZE_UNIT (typefm); + TYPE_MODE (type) = TYPE_MODE (typefm); if (!TYPE_USER_ALIGN (type)) TYPE_ALIGN (type) = TYPE_ALIGN (typefm); |