This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH gcc/ebitmap] fix compilation with EBITMAP_DEBUGGING enabled
- From: Nicolas BENOIT <nbenoit at tuxfamily dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: nicolas dot benoit at cea dot fr
- Date: Mon, 14 Sep 2009 19:05:28 +0200
- Subject: [PATCH gcc/ebitmap] fix compilation with EBITMAP_DEBUGGING enabled
This patch fixes the compilation of ebitmap.c when the debugging flag
EBITMAP_DEBUGGING is defined. BTW, this flag requires SBITMAP_DEBUGGING.
The current implementation references verify_popcount() which is
actually defined as sbitmap_verify_popcount().
2009-09-14 Nicolas Benoit <nbenoit@tuxfamily.org>
* ebitmap.c: Renamed verify_popcount() calls to sbitmap_verify_popcount().
Index: ebitmap.c
===================================================================
--- ebitmap.c (revision 151690)
+++ ebitmap.c (working copy)
@@ -457,7 +457,7 @@
for (i = 0; i < dst->numwords; i++)
gcc_assert (dst->elts[i] != 0);
- verify_popcount (dst->wordmask);
+ sbitmap_verify_popcount (dst->wordmask);
gcc_assert (sbitmap_popcount (dst->wordmask,
dst->wordmask->n_bits) == dst->numwords);
}
@@ -529,7 +529,7 @@
for (i = 0; i < dst->numwords; i++)
gcc_assert (dst->elts[i] != 0);
- verify_popcount (dst->wordmask);
+ sbitmap_verify_popcount (dst->wordmask);
gcc_assert (sbitmap_popcount (dst->wordmask,
dst->wordmask->n_bits) == dst->numwords);
}
@@ -652,7 +652,7 @@
EXECUTE_IF_SET_IN_EBITMAP (dstcopy, 0, i, ebi)
gcc_assert (ebitmap_bit_p (dst, i));
- verify_popcount (dst->wordmask);
+ sbitmap_verify_popcount (dst->wordmask);
gcc_assert (changed == !ebitmap_equal_p (dst, dstcopy));
gcc_assert (sbitmap_popcount (dst->wordmask,
dst->wordmask->n_bits) == dst->numwords);
@@ -772,7 +772,7 @@
EXECUTE_IF_SET_IN_EBITMAP (src2, 0, i, ebi)
gcc_assert (ebitmap_bit_p (dst, i));
}
- verify_popcount (dst->wordmask);
+ sbitmap_verify_popcount (dst->wordmask);
gcc_assert (changed == !ebitmap_equal_p (dst, dstcopy));
gcc_assert (sbitmap_popcount (dst->wordmask,
dst->wordmask->n_bits) == dst->numwords);
@@ -848,7 +848,7 @@
gcc_assert (sbitmap_popcount (dst->wordmask,
dst->wordmask->n_bits) == neweltindex);
- verify_popcount (dst->wordmask);
+ sbitmap_verify_popcount (dst->wordmask);
gcc_assert (changed == !ebitmap_equal_p (dst, dstcopy));
gcc_assert (sbitmap_popcount (dst->wordmask,
dst->wordmask->n_bits) == dst->numwords);
@@ -950,7 +950,7 @@
for (i = 0; i < dst->numwords; i++)
gcc_assert (dst->elts[i] != 0);
- verify_popcount (dst->wordmask);
+ sbitmap_verify_popcount (dst->wordmask);
gcc_assert (sbitmap_popcount (dst->wordmask,
dst->wordmask->n_bits) == dst->numwords);
}