diff options
author | Richard Guenther <rguenther@suse.de> | 2008-07-02 08:07:41 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-07-02 08:07:41 +0000 |
commit | 5f0d975b0d6f1d2f866ce4deab49da8f9ab13366 (patch) | |
tree | 59c464d2d8075f1ef24924d7e3cc40d4c5282472 /gcc/bitmap.h | |
parent | 78209f30ad17a26e21acecbb5ed518c747f28c74 (diff) | |
download | gcc-5f0d975b0d6f1d2f866ce4deab49da8f9ab13366.zip gcc-5f0d975b0d6f1d2f866ce4deab49da8f9ab13366.tar.gz gcc-5f0d975b0d6f1d2f866ce4deab49da8f9ab13366.tar.bz2 |
bitmap.h (bitmap_set_bit): Return bool.
2008-07-02 Richard Guenther <rguenther@suse.de>
* bitmap.h (bitmap_set_bit): Return bool.
(bitmap_clear_bit): Likewise.
* bitmap.c (bitmap_set_bit): Return if the bit changed. Only
write to the bitmap if it would.
(bitmap_clear_bit): Likewise.
* tree-ssa-structalias.c (add_implicit_graph_edge): Use
bitmap_set_bit return value.
(add_pred_graph_edge): Likewise.
(add_graph_edge): Likewise.
(do_sd_constraint): Likewise.
(do_ds_constraint): Likewise.
From-SVN: r137345
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 2a3b0b4..7f17dc1 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -136,11 +136,11 @@ extern bool bitmap_ior_and_compl (bitmap DST, const_bitmap A, const_bitmap B, co /* A |= (B & ~C). Return true if A changes. */ extern bool bitmap_ior_and_compl_into (bitmap DST, const_bitmap B, const_bitmap C); -/* Clear a single register in a register set. */ -extern void bitmap_clear_bit (bitmap, int); +/* Clear a single bit in a bitmap. Return true if the bit changed. */ +extern bool bitmap_clear_bit (bitmap, int); -/* Set a single register in a register set. */ -extern void bitmap_set_bit (bitmap, int); +/* Set a single bit in a bitmap. Return true if the bit changed. */ +extern bool bitmap_set_bit (bitmap, int); /* Return true if a register is set in a register set. */ extern int bitmap_bit_p (bitmap, int); |