Skip to content

Commit d8d638d

Browse files
mglisseMarc Glisse
authored andcommitted
tree-cfg.c (verify_gimple_comparison): Verify that vector comparison returns a vector.
2012-11-27 Marc Glisse <[email protected]> * tree-cfg.c (verify_gimple_comparison): Verify that vector comparison returns a vector. From-SVN: r193862
1 parent c2a73de commit d8d638d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

gcc/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2012-11-27 Marc Glisse <[email protected]>
2+
3+
* tree-cfg.c (verify_gimple_comparison): Verify that vector
4+
comparison returns a vector.
5+
16
2012-11-27 Meador Inge <[email protected]>
27

38
* collect2.c (main): Call find_file_set_debug.

gcc/tree-cfg.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3266,7 +3266,16 @@ verify_gimple_comparison (tree type, tree op0, tree op1)
32663266
if (INTEGRAL_TYPE_P (type)
32673267
&& (TREE_CODE (type) == BOOLEAN_TYPE
32683268
|| TYPE_PRECISION (type) == 1))
3269-
;
3269+
{
3270+
if (TREE_CODE (op0_type) == VECTOR_TYPE
3271+
|| TREE_CODE (op1_type) == VECTOR_TYPE)
3272+
{
3273+
error ("vector comparison returning a boolean");
3274+
debug_generic_expr (op0_type);
3275+
debug_generic_expr (op1_type);
3276+
return true;
3277+
}
3278+
}
32703279
/* Or an integer vector type with the same size and element count
32713280
as the comparison operand types. */
32723281
else if (TREE_CODE (type) == VECTOR_TYPE

0 commit comments

Comments
 (0)