aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-11-28 12:10:38 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-11-28 07:10:38 -0500
commit36221fc4ec0e13eece16f20d5e0262458d013026 (patch)
tree95f542577a2be02ee74c3ee5c1f80676c02ed9e6 /gcc
parent04203c18ad15777253ad1050c52f8cc405231a18 (diff)
downloadgcc-36221fc4ec0e13eece16f20d5e0262458d013026.zip
gcc-36221fc4ec0e13eece16f20d5e0262458d013026.tar.gz
gcc-36221fc4ec0e13eece16f20d5e0262458d013026.tar.bz2
df.c (iterate_dataflow_sbitmap, [...]): Add casts to remove warnings.
* df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap): Add casts to remove warnings. From-SVN: r47412
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/df.c18
2 files changed, 11 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 38fc516..cec142e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -7,6 +7,9 @@ Wed Nov 28 06:52:27 2001 Arnaud Charlet <charlet@ACT-Europe.FR>
Wed Nov 28 08:21:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+ * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
+ Add casts to remove warnings.
+
* Makefile.in (OBJS): Sort alphabetically.
* print-rtl.c (print_rtx): If RTX code is bad, just say so.
diff --git a/gcc/df.c b/gcc/df.c
index 9cb0230..a6a474c 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);
}