diff options
author | Richard Henderson <rth@redhat.com> | 2004-02-16 03:59:49 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-02-16 03:59:49 -0800 |
commit | 875427f0e6654e436c6a153d5435764a39dc5bbf (patch) | |
tree | 69ff7946c6cd27b294b6dd05fa1a2f7830ce310a /gcc | |
parent | b7b9662fe6a3bde9504004763a5ef2fe27c1dc33 (diff) | |
download | gcc-875427f0e6654e436c6a153d5435764a39dc5bbf.zip gcc-875427f0e6654e436c6a153d5435764a39dc5bbf.tar.gz gcc-875427f0e6654e436c6a153d5435764a39dc5bbf.tar.bz2 |
* fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
From-SVN: r77883
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/fold-const.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49ae020..094fee8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -2,6 +2,8 @@ * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note. + * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison. + 2004-02-15 Kazu Hirata <kazu@cs.umass.edu> * config/h8300/h8300.md: Remove unnecessary parallels from diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 71f1e9b..f9b7808 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2198,7 +2198,8 @@ operand_equal_p (tree arg0, tree arg1, int only_const) v2 = TREE_VECTOR_CST_ELTS (arg1); while (v1 && v2) { - if (!operand_equal_p (v1, v2, only_const)) + if (!operand_equal_p (TREE_VALUE (v1), TREE_VALUE (v2), + only_const)) return 0; v1 = TREE_CHAIN (v1); v2 = TREE_CHAIN (v2); |