X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestabs.c;h=265882f798b9904790d6eb73dcc116b8c22f6f09;hb=cd07ee0e8a9a4294f3de5f02b899c88661af8e34;hp=cc1a7031dbf3a1c2dc4dd840a1da1e810a6db603;hpb=63e1d96cef672a5792fefb59ca846d76b5711d6f;p=libfirm diff --git a/ir/be/bestabs.c b/ir/be/bestabs.c index cc1a7031d..265882f79 100644 --- a/ir/be/bestabs.c +++ b/ir/be/bestabs.c @@ -718,7 +718,7 @@ static void stabs_method_begin(dbg_handle *handle, const ir_entity *ent) between_size = get_type_size_bytes(layout->between_type); for (i = 0, n = get_method_n_params(mtp); i < n; ++i) { ir_type *ptp = get_method_param_type(mtp, i); - const char *name = get_method_param_name(mtp, i); + const char *name = NULL; unsigned type_num = get_type_number(h, ptp); char buf[16]; int ofs = 0; @@ -831,11 +831,11 @@ static void stabs_variable(dbg_handle *handle, const ir_entity *ent) 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'; @@ -875,7 +875,7 @@ static dbg_handle *be_stabs_open(void) 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);