c-common.c (vector_types_convertible_p): Check vector element type.
authorDevang Patel <dpatel@apple.com>
Fri, 21 Oct 2005 18:29:10 +0000 (11:29 -0700)
committerDevang Patel <dpatel@gcc.gnu.org>
Fri, 21 Oct 2005 18:29:10 +0000 (11:29 -0700)
       PR/24220
       * c-common.c (vector_types_convertible_p): Check vector element type.

From-SVN: r105764

gcc/ChangeLog
gcc/c-common.c

index d7a6e5933168ff6c381628eef8a91b652a3cb6d9..4b3b0680fe11e2832066973ae6b484e4435d9544 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-21  Devang Patel  <dpatel@apple.com>
+
+       PR/24220
+       * c-common.c (vector_types_convertible_p): Check vector element type.
+       
 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * config/sh/sh.c (prepare_move_operands): Handle the address
index 86bb1c856cc076d959bae7aa8acb9c4954c5a61e..9ec173b70201674d6b3f20337a859218ae3c14bf 100644 (file)
@@ -972,7 +972,7 @@ vector_types_convertible_p (tree t1, tree t2)
   return targetm.vector_opaque_p (t1)
         || targetm.vector_opaque_p (t2)
          || (tree_int_cst_equal (TYPE_SIZE (t1), TYPE_SIZE (t2))
-            && (TREE_CODE (t1) != REAL_TYPE || 
+            && (TREE_CODE (TREE_TYPE (t1)) != REAL_TYPE || 
                 TYPE_PRECISION (t1) == TYPE_PRECISION (t2))
             && INTEGRAL_TYPE_P (TREE_TYPE (t1))
                == INTEGRAL_TYPE_P (TREE_TYPE (t2)));