summaryrefslogtreecommitdiff
path: root/gcc/df.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-28 12:10:38 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-28 12:10:38 +0000
commit33eb77ac2ee346ea26fb2a86589a8fe15b711bf9 (patch)
tree95f542577a2be02ee74c3ee5c1f80676c02ed9e6 /gcc/df.c
parent747479eb023ccabd45c90d7ea48bded6e29bda0f (diff)
downloadgcc-33eb77ac2ee346ea26fb2a86589a8fe15b711bf9.tar.gz
* df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
Add casts to remove warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47412 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df.c')
-rw-r--r--gcc/df.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/gcc/df.c b/gcc/df.c
index 9cb0230b27c..a6a474c4216 100644
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -3863,7 +3863,7 @@ iterative_dataflow_sbitmap (in, out, gen, kill, blocks,
worklist = fibheap_new ();
EXECUTE_IF_SET_IN_BITMAP (blocks, 0, i,
{
- fibheap_insert (worklist, order[i], (void *) i);
+ fibheap_insert (worklist, order[i], (void *) (size_t) i);
SET_BIT (pending, i);
if (dir == FORWARD)
sbitmap_copy (out[i], gen[i]);
@@ -3874,18 +3874,17 @@ iterative_dataflow_sbitmap (in, out, gen, kill, blocks,
{
while (!fibheap_empty (worklist))
{
- i = (int) fibheap_extract_min (worklist);
+ i = (size_t) fibheap_extract_min (worklist);
bb = BASIC_BLOCK (i);
if (!TEST_BIT (visited, bb->index))
hybrid_search_sbitmap (bb, in, out, gen, kill, dir,
- conf_op, transfun, visited, pending,
- data);
+ conf_op, transfun, visited, pending, data);
}
if (sbitmap_first_set_bit (pending) != -1)
{
EXECUTE_IF_SET_IN_BITMAP (blocks, 0, i,
{
- fibheap_insert (worklist, order[i], (void *) i);
+ fibheap_insert (worklist, order[i], (void *) (size_t) i);
});
sbitmap_zero (visited);
}
@@ -3923,7 +3922,7 @@ iterative_dataflow_bitmap (in, out, gen, kill, blocks,
worklist = fibheap_new ();
EXECUTE_IF_SET_IN_BITMAP (blocks, 0, i,
{
- fibheap_insert (worklist, order[i], (void *) i);
+ fibheap_insert (worklist, order[i], (void *) (size_t) i);
SET_BIT (pending, i);
if (dir == FORWARD)
bitmap_copy (out[i], gen[i]);
@@ -3934,18 +3933,17 @@ iterative_dataflow_bitmap (in, out, gen, kill, blocks,
{
while (!fibheap_empty (worklist))
{
- i = (int) fibheap_extract_min (worklist);
+ i = (size_t) fibheap_extract_min (worklist);
bb = BASIC_BLOCK (i);
if (!TEST_BIT (visited, bb->index))
hybrid_search_bitmap (bb, in, out, gen, kill, dir,
- conf_op, transfun, visited, pending,
- data);
+ conf_op, transfun, visited, pending, data);
}
if (sbitmap_first_set_bit (pending) != -1)
{
EXECUTE_IF_SET_IN_BITMAP (blocks, 0, i,
{
- fibheap_insert (worklist, order[i], (void *) i);
+ fibheap_insert (worklist, order[i], (void *) (size_t) i);
});
sbitmap_zero (visited);
}