OSDN Git Service

Waldek Hebisch <hebisch@math.uni.wroc.pl>
authorzlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Oct 2003 14:47:51 +0000 (14:47 +0000)
committerzlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Oct 2003 14:47:51 +0000 (14:47 +0000)
PR/12072
* varasm.c (compare_constant): Fix thinko.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72028 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/varasm.c

index 396a3b9..c797016 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 ea43a7d..3538072 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
        {