X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestabs.c;h=02c243d78f4682cdf9ec9b75689eb65bf6828044;hb=ae9fd2c229cc7f4c724ce9ccc9263c16d77670fe;hp=73bc8a8c93fbab80da4dcfa9ced1fead2eef2ffb;hpb=dbff21416969526aed95b103d3652cca3dcec08c;p=libfirm diff --git a/ir/be/bestabs.c b/ir/be/bestabs.c index 73bc8a8c9..02c243d78 100644 --- a/ir/be/bestabs.c +++ b/ir/be/bestabs.c @@ -336,18 +336,18 @@ static void gen_pointer_type(wenv_t *env, ir_type *tp) static void print_array_type(stabs_handle *h, ir_type *tp, int local) { ir_type *etp = get_array_element_type(tp); - int i, n = get_array_n_dimensions(tp); + size_t i, n = get_array_n_dimensions(tp); unsigned type_num = local ? h->next_type_nr++ : get_type_number(h, tp); - int *perm; + size_t *perm; be_emit_irprintf("%u=a", type_num); - NEW_ARR_A(int, perm, n); + perm = ALLOCAN(size_t, n); for (i = 0; i < n; ++i) { perm[i] = get_array_order(tp, i); } for (i = 0; i < n; ++i) { - int dim = perm[i]; + size_t dim = perm[i]; if (is_Const(get_array_lower_bound(tp, dim)) && is_Const(get_array_upper_bound(tp, dim))) { long min = get_array_lower_bound_int(tp, dim); @@ -699,7 +699,8 @@ static void stabs_method_begin(dbg_handle *handle, const ir_entity *ent) /* create the method entry */ mtp = get_entity_type(ent); - mtp = get_type_unlowered(mtp); + if (is_lowered_type(mtp)) + mtp = get_associated_type(mtp); if (get_method_n_ress(mtp) > 0) rtp = get_method_res_type(mtp, 0); else