keeps behind a series of phis are fine
[libfirm] / ir / be / bestabs.c
index 1ab5ce6..a96c8ac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2011 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -143,7 +143,7 @@ static unsigned get_type_number(stabs_handle *h, ir_type *tp)
                num = h->next_type_nr++;
                pmap_insert(h->type_map, tp, INT_TO_PTR(num));
        } else {
-               num = PTR_TO_INT(entry->value);
+               num = (unsigned)PTR_TO_INT(entry->value);
        }
        return num;
 }  /* get_type_number */
@@ -508,7 +508,7 @@ static void gen_method_type(wenv_t *env, ir_type *tp)
  */
 static void walk_type(type_or_ent tore, void *ctx)
 {
-       wenv_t *env = ctx;
+       wenv_t *env = (wenv_t*)ctx;
        ir_type  *tp;
 
        if (is_type(tore.typ)) {
@@ -568,10 +568,9 @@ static void walk_type(type_or_ent tore, void *ctx)
 static void finish_types(wenv_t *env)
 {
        waitq *wq = env->wq;
-       ir_type *tp;
 
        while (! waitq_empty(wq)) {
-               tp = waitq_get(wq);
+               ir_type *tp = (ir_type*)waitq_get(wq);
                if (IS_TYPE_READY(tp))
                        continue;