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);
if (linkage & IR_LINKAGE_CONSTANT)
kind = N_ROSYM;
snprintf(buf, sizeof(buf), "\t.stabs\t\"%s:S%u\",%d,0,0,%s\n",
- get_entity_name(ent), tp_num, kind, get_entity_ld_name(ent));
+ get_entity_name(ent), tp_num, kind, get_entity_ld_name(ent));
} else {
/* a global variable */
snprintf(buf, sizeof(buf), "\t.stabs\t\"%s:G%u\",%d,0,0,0\n",
- get_entity_name(ent), tp_num, N_GSYM);
+ get_entity_name(ent), tp_num, (int)N_GSYM);
}
buf[sizeof(buf) - 1] = '\0';
return &h->base;
}
-BE_REGISTER_MODULE_CONSTRUCTOR(be_init_stabs);
+BE_REGISTER_MODULE_CONSTRUCTOR(be_init_stabs)
void be_init_stabs(void)
{
be_register_dbgout_module("stabs", be_stabs_open);