diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-11-02 10:00:09 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-11-02 10:00:09 +0000 |
commit | 7ef7b3459927ad613838df2353515d04539cd1d6 (patch) | |
tree | 200acd184e06dc1da5eab8d2d822871df1c7ea0b /gcc/bitmap.h | |
parent | 55994078b6bc51ae62bd4117c6c335b94336137b (diff) | |
download | gcc-7ef7b3459927ad613838df2353515d04539cd1d6.zip gcc-7ef7b3459927ad613838df2353515d04539cd1d6.tar.gz gcc-7ef7b3459927ad613838df2353515d04539cd1d6.tar.bz2 |
bitmap.h (bitmap_and, [...]): Produce void.
* bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
(bitmap_ior_and_compl_into): Produce bool.
(bitmap_union_of_diff): Rename to ...
(bitmap_ior_and_compl): ... here. Produce bool.
* bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
bitmap_operation directly.
(bitmap_union_of_diff): Rename to ...
(bitmap_ior_and_compl): ... here. Return bool, use
bitmap_operation directly.
* df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
(df_ru_transfer_function, df_lr_transfer_function): Likewise.
* global.c (modify_bb_reg_pav): Likewise.
From-SVN: r89982
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 767fafa..f20773b 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -100,19 +100,20 @@ extern bool bitmap_intersect_compl_p (bitmap, bitmap); /* Perform an operation on two bitmaps, yielding a third. */ extern int bitmap_operation (bitmap, bitmap, bitmap, enum bitmap_bits); -#define bitmap_and(DST,A,B) bitmap_operation (DST,A,B,BITMAP_AND) -#define bitmap_and_into(DST_SRC,B) bitmap_operation (DST_SRC,DST_SRC,B,BITMAP_AND) -#define bitmap_and_compl(DST,A,B) bitmap_operation (DST,A,B,BITMAP_AND_COMPL) -#define bitmap_and_compl_into(DST_SRC,B) bitmap_operation (DST_SRC,DST_SRC,B,BITMAP_AND_COMPL) -#define bitmap_ior(DST,A,B) bitmap_operation (DST,A,B,BITMAP_IOR) -#define bitmap_ior_into(DST_SRC,B) bitmap_operation (DST_SRC,DST_SRC,B,BITMAP_IOR) -#define bitmap_ior_compl(DST,A,B) bitmap_operation (DST,A,B,BITMAP_IOR_COMPL) -#define bitmap_xor(DST,A,B) bitmap_operation (DST,A,B,BITMAP_XOR) -#define bitmap_xor_into(DST_SRC,B) bitmap_operation (DST_SRC,DST_SRC,B,BITMAP_XOR) +#define bitmap_and(DST,A,B) (void)bitmap_operation (DST,A,B,BITMAP_AND) +#define bitmap_and_into(DST_SRC,B) (void)bitmap_operation (DST_SRC,DST_SRC,B,BITMAP_AND) +#define bitmap_and_compl(DST,A,B) (void)bitmap_operation (DST,A,B,BITMAP_AND_COMPL) +#define bitmap_and_compl_into(DST_SRC,B) (void)bitmap_operation (DST_SRC,DST_SRC,B,BITMAP_AND_COMPL) +#define bitmap_ior(DST,A,B) (void)bitmap_operation (DST,A,B,BITMAP_IOR) +#define bitmap_ior_into(DST_SRC,B) (void)bitmap_operation (DST_SRC,DST_SRC,B,BITMAP_IOR) +#define bitmap_ior_compl(DST,A,B) (void)bitmap_operation (DST,A,Br,BITMAP_IOR_COMPL) +#define bitmap_xor(DST,A,B) (void)bitmap_operation (DST,A,B,BITMAP_XOR) +#define bitmap_xor_into(DST_SRC,B) (void)bitmap_operation (DST_SRC,DST_SRC,B,BITMAP_XOR) /* `or' into one bitmap the `and' of a second bitmap witih the complement of a third. Return nonzero if the bitmap changes. */ -extern int bitmap_ior_and_compl_into (bitmap, bitmap, bitmap); +extern bool bitmap_ior_and_compl_into (bitmap, bitmap, bitmap); +extern bool bitmap_ior_and_compl (bitmap, bitmap, bitmap, bitmap); /* Clear a single register in a register set. */ extern void bitmap_clear_bit (bitmap, int); @@ -142,7 +143,6 @@ extern void bitmap_release_memory (void); #define bitmap_zero(a) bitmap_clear (a) #define bitmap_a_or_b(a,b,c) bitmap_operation (a, b, c, BITMAP_IOR) #define bitmap_a_and_b(a,b,c) bitmap_operation (a, b, c, BITMAP_AND) -extern int bitmap_union_of_diff (bitmap, bitmap, bitmap, bitmap); extern int bitmap_first_set_bit (bitmap); extern int bitmap_last_set_bit (bitmap); |