diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-11-24 22:23:23 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2006-11-24 22:23:23 +0100 |
commit | 238564598bce2cc56d65382076806f3ca73af4de (patch) | |
tree | 2060c2cda335a6dde039e2b72a68b1194fc42150 /gcc/c-common.c | |
parent | 13335ae6647410bdffb175ec9558cafcc65e0e3d (diff) | |
download | gcc-238564598bce2cc56d65382076806f3ca73af4de.zip gcc-238564598bce2cc56d65382076806f3ca73af4de.tar.gz gcc-238564598bce2cc56d65382076806f3ca73af4de.tar.bz2 |
re PR c/29736 (ICE on duplicate vector attribute)
PR c/29736
* c-common.c (handle_vector_size_attribute): Disallow VECTOR_TYPE
or UNION_TYPE inner types.
* gcc.dg/pr29736.c: New test.
From-SVN: r119165
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 8e4cbff..d576955 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -5450,6 +5450,8 @@ handle_vector_size_attribute (tree *node, tree name, tree args, orig_mode = TYPE_MODE (type); if (TREE_CODE (type) == RECORD_TYPE + || TREE_CODE (type) == UNION_TYPE + || TREE_CODE (type) == VECTOR_TYPE || (!SCALAR_FLOAT_MODE_P (orig_mode) && GET_MODE_CLASS (orig_mode) != MODE_INT) || !host_integerp (TYPE_SIZE_UNIT (type), 1)) |