]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/14219 (ICE with vector comparison)
authorAldy Hernandez <aldyh@redhat.com>
Mon, 29 Mar 2004 11:48:30 +0000 (11:48 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Mon, 29 Mar 2004 11:48:30 +0000 (11:48 +0000)
2004-03-25  Aldy Hernandez  <aldyh@redhat.com>

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

From-SVN: r80053

gcc/ChangeLog
gcc/c-typeck.c

index 116b86751f7836f29d7f5fb51bbfc03e99ac290f..73188c2ce3e6fa9151839e53a085fded8610c314 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-29  Aldy Hernandez  <aldyh@redhat.com>
+        PR 14219
+        * c-typeck.c (build_binary_op): Do not allow comparisons of
+        vectors.
+
 2004-03-27  Matthias Klose  <doko@debian.org>
 
        PR target/11716
index b7807fb2d67c301026f8d017e91ae583136b5545..a3d45cc7f18c3d9d437ed7a37cd9d63b93eea26a 100644 (file)
@@ -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)
        {