/**
* Compare two Phi->Spill associations.
*/
-static int cmp_phi_spill_assoc(const void *a, const void *b) {
+static int cmp_phi_spill_assoc(const void *a, const void *b, size_t n) {
const phi_spill_assoc_t *p1 = a;
const phi_spill_assoc_t *p2 = b;
return p1->phi != p2->phi;
ir_graph *irg = get_irn_irg(to_spill);
int save_optimize = get_optimize();
int save_normalize = get_opt_normalize();
- pset *already_visited_phis = new_set(cmp_phi_spill_assoc, 10);
+ set *already_visited_phis = new_set(cmp_phi_spill_assoc, 10);
ir_node *res;
/*
* qsort compare function, sort spill slots by size.
*/
static int ss_sorter(const void *v1, const void *v2) {
- const spill_slot_t **ss1 = v1;
- const spill_slot_t **ss2 = v2;
+ const spill_slot_t **ss1 = (const spill_slot_t **)v1;
+ const spill_slot_t **ss2 = (const spill_slot_t **)v2;
return ((int) (*ss2)->size) - ((int) (*ss1)->size);
}