aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2004-03-26 11:45:19 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2004-03-26 11:45:19 +0000
commiteabe2b296920893b0940839e12f880e4f0d38684 (patch)
tree4cb77dae2d3ff44214c9d656c55916e5874391a6 /gcc
parentf84d6264f46961acdd6091f6275e6bbaaa1e9d7d (diff)
downloadgcc-eabe2b296920893b0940839e12f880e4f0d38684.zip
gcc-eabe2b296920893b0940839e12f880e4f0d38684.tar.gz
gcc-eabe2b296920893b0940839e12f880e4f0d38684.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-typeck.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b41b630..a818543 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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-*.
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 2a40258..c3a1e87 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -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)
{