summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beloopana.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
committerMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
commitce6161a7e42a48f7422b7babcc64d8ace18e2687 (patch)
tree2fa5272f9220c4e08a5309057f44646fb9f882a7 /ir/be/beloopana.c
parentfd269bc519af571ad9a96afd65bcd504f3034f8b (diff)
make firm compilable with a c++ compiler
[r28127]
Diffstat (limited to 'ir/be/beloopana.c')
-rw-r--r--ir/be/beloopana.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ir/be/beloopana.c b/ir/be/beloopana.c
index afa4307..8c05a5d 100644
--- a/ir/be/beloopana.c
+++ b/ir/be/beloopana.c
@@ -57,8 +57,8 @@ struct be_loopana_t {
static int cmp_loop_info(const void *a, const void *b, size_t size)
{
- const be_loop_info_t *i1 = a;
- const be_loop_info_t *i2 = b;
+ const be_loop_info_t *i1 = (const be_loop_info_t*)a;
+ const be_loop_info_t *i2 = (const be_loop_info_t*)b;
(void) size;
return ! (i1->loop == i2->loop && i1->cls == i2->cls);
@@ -142,7 +142,7 @@ static unsigned be_compute_loop_pressure(be_loopana_t *loop_ana, ir_loop *loop,
key.loop = loop;
key.cls = cls;
key.max_pressure = 0;
- entry = set_insert(loop_ana->data, &key, sizeof(key), HASH_LOOP_INFO(&key));
+ entry = (be_loop_info_t*)set_insert(loop_ana->data, &key, sizeof(key), HASH_LOOP_INFO(&key));
entry->max_pressure = MAX(entry->max_pressure, pressure);
return pressure;
@@ -225,7 +225,7 @@ unsigned be_get_loop_pressure(be_loopana_t *loop_ana, const arch_register_class_
key.loop = loop;
key.cls = cls;
- entry = set_find(loop_ana->data, &key, sizeof(key), HASH_LOOP_INFO(&key));
+ entry = (be_loop_info_t*)set_find(loop_ana->data, &key, sizeof(key), HASH_LOOP_INFO(&key));
if (entry)
pressure = entry->max_pressure;