Waldek Hebisch <hebisch@math.uni.wroc.pl> PR/12072
authorJosef Zlomek <zlomekj@suse.cz>
Thu, 2 Oct 2003 14:47:51 +0000 (16:47 +0200)
committerJosef Zlomek <zlomek@gcc.gnu.org>
Thu, 2 Oct 2003 14:47:51 +0000 (14:47 +0000)
Waldek Hebisch <hebisch@math.uni.wroc.pl>
PR/12072
* varasm.c (compare_constant): Fix thinko.

From-SVN: r72028

gcc/ChangeLog
gcc/varasm.c

index 396a3b9ff07c21debe4a935c6eafa0c4e899e73f..c7970165a73b6dc2e23ca680bb7c2e8113a364fd 100644 (file)
@@ -1,3 +1,9 @@
+2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
+
+       Waldek Hebisch <hebisch@math.uni.wroc.pl>
+       PR/12072
+       * varasm.c (compare_constant): Fix thinko.
+
 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/frv/frv.c (frv_issue_rate): New function.
index ea43a7d3e1bd4179a14b57e4351d7353ff38e4b1..3538072b1444df2ab4885095f54ab2afef52cb2d 100644 (file)
@@ -2224,7 +2224,7 @@ compare_constant (const tree t1, const tree t2)
          if (get_set_constructor_bytes (t2, tmp2, len) != NULL_TREE)
            return 0;
 
-         return memcmp (tmp1, tmp2, len) != 0;
+         return memcmp (tmp1, tmp2, len) == 0;
        }
       else
        {