From fb67cb9fb33e55625dd7418a415e880e5e271636 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 2 Dec 2001 14:09:59 +0000 Subject: * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a From-SVN: r47530 --- gcc/cfgbuild.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gcc/cfgbuild.c') diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c index ef86939d4ad..ff2daaeeffc 100644 --- a/gcc/cfgbuild.c +++ b/gcc/cfgbuild.c @@ -674,7 +674,7 @@ enum state BLOCK_TO_SPLIT }; #define STATE(bb) (enum state)(size_t)(bb)->aux -#define SET_STATE(bb, state) (bb)->aux = (void *)(state) +#define SET_STATE(bb, state) (bb)->aux = (void *) (size_t) (state) /* Scan basic block BB for possible BB boundaries inside the block and create new basic blocks in the progress. */ @@ -822,11 +822,8 @@ find_many_sub_basic_blocks (blocks) int min, max; for (i = 0; i < n_basic_blocks; i++) - { - SET_STATE (BASIC_BLOCK (i), - TEST_BIT (blocks, i) - ? BLOCK_TO_SPLIT : BLOCK_ORIGINAL); - } + SET_STATE (BASIC_BLOCK (i), + TEST_BIT (blocks, i) ? BLOCK_TO_SPLIT : BLOCK_ORIGINAL); for (i = 0; i < n_basic_blocks; i++) { -- cgit v1.2.1