* fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.

From-SVN: r77883
This commit is contained in:
Richard Henderson 2004-02-16 03:59:49 -08:00 committed by Richard Henderson
parent b7b9662fe6
commit 875427f0e6
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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);