diff options
author | Richard Henderson <rth@redhat.com> | 2004-10-18 15:01:51 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-10-18 15:01:51 -0700 |
commit | a2d366026e8042675482657128836760d547e593 (patch) | |
tree | 0790cb00fd0dad4f3178590f4e96261baeef03a7 /gcc/c-common.c | |
parent | 135a488f2327bcf593c089a4dcee7baf48682fa0 (diff) | |
download | gcc-a2d366026e8042675482657128836760d547e593.zip gcc-a2d366026e8042675482657128836760d547e593.tar.gz gcc-a2d366026e8042675482657128836760d547e593.tar.bz2 |
c-common.c (handle_mode_attribute): Allow scalar->vector type changes yet.
* c-common.c (handle_mode_attribute): Allow scalar->vector
type changes yet.
From-SVN: r89248
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index c05779c..271b436 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4386,7 +4386,9 @@ handle_mode_attribute (tree *node, tree name, tree args, TYPE_PRECISION (type) = TYPE_PRECISION (typefm); typefm = type; } - else if (TREE_CODE (type) != TREE_CODE (typefm)) + else if (VECTOR_MODE_P (mode) + ? TREE_CODE (type) != TREE_CODE (TREE_TYPE (typefm)) + : TREE_CODE (type) != TREE_CODE (typefm)) { error ("mode %qs applied to inappropriate type", p); return NULL_TREE; |