* cfgbuild.c (SET_STATE): Add cast to eliminate warning.a

From-SVN: r47530
This commit is contained in:
Richard Kenner 2001-12-02 14:09:59 +00:00 committed by Richard Kenner
parent f813aee742
commit fb67cb9fb3
2 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,7 @@
Sun Dec 2 09:03:06 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
2001-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cfgrtl.c (purge_all_dead_edges): Initialize variable.

View File

@ -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++)
{