diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-01-07 21:05:14 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2005-01-07 21:05:14 +0100 |
commit | b827788f5768220700c66beaee6a66586014f07f (patch) | |
tree | 57a2412ddbafbe7c78a634ebf6e0b4c623253827 /gcc/c-common.c | |
parent | 825bd0e1e8f9f76c2cbe52e9ebe4fd15bcd701f7 (diff) | |
download | gcc-b827788f5768220700c66beaee6a66586014f07f.zip gcc-b827788f5768220700c66beaee6a66586014f07f.tar.gz gcc-b827788f5768220700c66beaee6a66586014f07f.tar.bz2 |
c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy TYPE_MODE.
* c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
TYPE_MODE.
* gcc.c-torture/execute/20050107-1.c: New test.
From-SVN: r93066
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 bb81a6f..a699cbc 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); |