used new assure_doms() function
[libfirm] / ir / be / bespill.c
index f589fc1..a061ec4 100644 (file)
@@ -72,7 +72,7 @@ typedef struct _phi_spill_assoc_t {
 /**
  * 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;
@@ -249,7 +249,7 @@ static ir_node *be_spill_node(spill_env_t *senv, ir_node *to_spill, unsigned vis
        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;
 
        /*
@@ -605,8 +605,8 @@ static void compute_spill_slots_walker(ir_node *spill, void *env) {
  * 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);
 }