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
This commit is contained in:
Richard Henderson 2004-10-18 15:01:51 -07:00 committed by Richard Henderson
parent 135a488f23
commit a2d366026e
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-10-18 Richard Henderson <rth@redhat.com>
* c-common.c (handle_mode_attribute): Allow scalar->vector
type changes yet.
2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
* expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a

View file

@ -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;