From: Aldy Hernandez Date: Mon, 29 Mar 2004 11:48:30 +0000 (+0000) Subject: re PR c/14219 (ICE with vector comparison) X-Git-Tag: releases/gcc-3.3.4~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50816029b356b7793e06e9f0df66b6f0cb382baa;p=thirdparty%2Fgcc.git re PR c/14219 (ICE with vector comparison) 2004-03-25 Aldy Hernandez PR 14219 * c-typeck.c (build_binary_op): Do not allow comparisons of vectors. From-SVN: r80053 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 116b86751f78..73188c2ce3e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-03-29 Aldy Hernandez + + PR 14219 + * c-typeck.c (build_binary_op): Do not allow comparisons of + vectors. + 2004-03-27 Matthias Klose PR target/11716 diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index b7807fb2d67c..a3d45cc7f18c 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -2154,11 +2154,9 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) 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) {