diff options
author | Devang Patel <dpatel@apple.com> | 2005-10-21 11:29:10 -0700 |
---|---|---|
committer | Devang Patel <dpatel@gcc.gnu.org> | 2005-10-21 11:29:10 -0700 |
commit | 2c47f8751a5bea5692b8b68e4c89f7ef6c132e41 (patch) | |
tree | 0f6c32fb8cf577d1de8e633e3d5d5af34c3a5f38 /gcc/c-common.c | |
parent | 1e752652d857a5903e5ff8520943b2fc63140359 (diff) | |
download | gcc-2c47f8751a5bea5692b8b68e4c89f7ef6c132e41.tar.gz |
c-common.c (vector_types_convertible_p): Check vector element type.
PR/24220
* c-common.c (vector_types_convertible_p): Check vector element type.
From-SVN: r105764
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 86bb1c856cc..9ec173b7020 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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))); |