aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-09-30 13:33:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-09-30 13:33:14 +0000
commitccb3dd5a143aa1975281425685a70f7bd6a130fa (patch)
tree58c002400e73c78cf0e1561a784e4be7964b1565 /gcc/tree-cfg.c
parentd8edf83d91fb0bb5f849e2bca7511c0fbdfc4254 (diff)
downloadgcc-ccb3dd5a143aa1975281425685a70f7bd6a130fa.zip
gcc-ccb3dd5a143aa1975281425685a70f7bd6a130fa.tar.gz
gcc-ccb3dd5a143aa1975281425685a70f7bd6a130fa.tar.bz2
re PR tree-optimization/50574 (gcc.c-torture/execute/vector-compare-1.c FAILs on SPARC)
2011-09-30 Richard Guenther <rguenther@suse.de> PR middle-end/50574 * tree-cfg.c (verify_gimple_comparison): Compare component mode sizes for vector comparisons. From-SVN: r179382
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 20feff9..5e5de8f 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -3229,8 +3229,8 @@ verify_gimple_comparison (tree type, tree op0, tree op1)
}
if (TYPE_VECTOR_SUBPARTS (type) != TYPE_VECTOR_SUBPARTS (op0_type)
- || (GET_MODE_SIZE (TYPE_MODE (type))
- != GET_MODE_SIZE (TYPE_MODE (op0_type))))
+ || (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (type)))
+ != GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (op0_type)))))
{
error ("invalid vector comparison resulting type");
debug_generic_expr (type);