Fix bitmap bug.
authorAnthony Green <green@redhat.com>
Tue, 8 Oct 2002 07:19:34 +0000 (07:19 +0000)
committerAnthony Green <green@gcc.gnu.org>
Tue, 8 Oct 2002 07:19:34 +0000 (07:19 +0000)
From-SVN: r57919

gcc/ChangeLog
gcc/bitmap.c

index a1d5e5530155342f07b7ec2a64a850db2bcd5d16..92ffc991bf5eb5b5a72c8a35a724b2cf520585cf 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-08  Anthony Green  <green@redhat.com> 
+
+       * bitmap.c (bitmap_equal_p): Clear all bitmap_head fields. 
+
 2002-10-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
index e22a524ce17fee65597d782f613e00b89f6d3e73..21378b5c677fe9e8ed8431b248e3827d42e08f1b 100644 (file)
@@ -706,7 +706,7 @@ bitmap_equal_p (a, b)
   bitmap_head c;
   int ret;
 
-  c.first = c.current = 0;
+  memset (&c, 0, sizeof (c)); 
   ret = ! bitmap_operation (&c, a, b, BITMAP_XOR);
   bitmap_clear (&c);