]> gcc.gnu.org Git - gcc.git/commitdiff
c-common.c (handle_mode_attribute): Allow scalar->vector type changes yet.
authorRichard Henderson <rth@redhat.com>
Mon, 18 Oct 2004 22:01:51 +0000 (15:01 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 18 Oct 2004 22:01:51 +0000 (15:01 -0700)
        * c-common.c (handle_mode_attribute): Allow scalar->vector
        type changes yet.

From-SVN: r89248

gcc/ChangeLog
gcc/c-common.c

index ac8efa95bb346e58e31e7df19b9862be8905e307..28a3177fd1fdb164d6692f13a619a70fb402cb5a 100644 (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
index c05779c33ad5a747d1bb281edd99a10dd0431b3e..271b4365961527c04d8700d46482af2567d76551 100644 (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;
This page took 0.092633 seconds and 5 git commands to generate.