OSDN Git Service

* fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Feb 2004 11:59:49 +0000 (11:59 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Feb 2004 11:59:49 +0000 (11:59 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77883 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fold-const.c

index 49ae020..094fee8 100644 (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
index 71f1e9b..f9b7808 100644 (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);