aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-11-03 09:57:21 +0100
committerRichard Biener <rguenther@suse.de>2021-11-03 11:14:22 +0100
commit73658e70d9edfab77d7a50039b3ab7d2be3a41a0 (patch)
tree26611a8c718cb2a5f85dad791ec899723e4a294f /gcc/bitmap.h
parentc081d0a3b0291297f04a05c833d2ffa8de3a7a1a (diff)
downloadgcc-73658e70d9edfab77d7a50039b3ab7d2be3a41a0.zip
gcc-73658e70d9edfab77d7a50039b3ab7d2be3a41a0.tar.gz
gcc-73658e70d9edfab77d7a50039b3ab7d2be3a41a0.tar.bz2
Make sbitmap bitmap_set_bit and bitmap_clear_bit return changed state
The following adjusts the sbitmap bitmap_set_bit and bitmap_clear_bit APIs to match that of bitmap by returning a bool indicating whether the bitmap was changed. I've also changed bitmap_bit_p to return a bool rather than an int and made use of the sbitmap bitmap_set_bit API change in one place. 2021-11-03 Richard Biener <rguenther@suse.de> * bitmap.h (bitmap_bit_p): Change the return type to bool. * bitmap.c (bitmap_bit_p): Likewise. * sbitmap.h (bitmap_bit_p): Likewise. (bitmap_set_bit): Return whether the bit changed. (bitmap_clear_bit): Likewise. * tree-ssa.c (verify_vssa): Make use of the changed state from bitmap_set_bit.
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r--gcc/bitmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h
index 1bddcdb..fc33877 100644
--- a/gcc/bitmap.h
+++ b/gcc/bitmap.h
@@ -436,7 +436,7 @@ extern bool bitmap_clear_bit (bitmap, int);
extern bool bitmap_set_bit (bitmap, int);
/* Return true if a bit is set in a bitmap. */
-extern int bitmap_bit_p (const_bitmap, int);
+extern bool bitmap_bit_p (const_bitmap, int);
/* Set and get multiple bit values in a sparse bitmap. This allows a bitmap to
function as a sparse array of bit patterns where the patterns are