Commit 875427f0 by Richard Henderson Committed by Richard Henderson

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

From-SVN: r77883
parent b7b9662f
......@@ -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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment