Commit eabe2b29 by Aldy Hernandez Committed by Aldy Hernandez

re PR c/14219 (ICE with vector comparison)

        PR 14219
        * c-typeck.c (build_binary_op): Do not allow comparisons of
        vectors.

From-SVN: r79982
parent f84d6264
2004-03-25 Aldy Hernandez <aldyh@redhat.com>
PR 14219
* c-typeck.c (build_binary_op): Do not allow comparisons of
vectors.
2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
* config.gcc: Remove sparc-tti-*.
......
......@@ -6662,11 +6662,9 @@ build_binary_op (enum tree_code code, tree orig_op0, tree orig_op1,
but don't convert the args to int! */
build_type = integer_type_node;
if ((code0 == INTEGER_TYPE || code0 == REAL_TYPE
|| code0 == COMPLEX_TYPE
|| code0 == VECTOR_TYPE)
|| code0 == COMPLEX_TYPE)
&& (code1 == INTEGER_TYPE || code1 == REAL_TYPE
|| code1 == COMPLEX_TYPE
|| code1 == VECTOR_TYPE))
|| code1 == COMPLEX_TYPE))
short_compare = 1;
else if (code0 == POINTER_TYPE && code1 == POINTER_TYPE)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment