X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbenode.c;h=617f601b4b9bcfe6901a8739bdb95fd2caf3f96e;hb=1660476d1960bb87d086167ce7c859e39a25e100;hp=f4731f7977485b7f20caa41862b3ccc48e5d6f2d;hpb=7a689378511110240ac68f78e20316dc51814c1b;p=libfirm diff --git a/ir/be/benode.c b/ir/be/benode.c index f4731f797..617f601b4 100644 --- a/ir/be/benode.c +++ b/ir/be/benode.c @@ -611,9 +611,9 @@ int be_has_frame_entity(const ir_node *irn) case beo_FrameLoad: case beo_FrameAddr: return 1; + default: + return 0; } - - return 0; } entity *be_get_frame_entity(const ir_node *irn) @@ -787,8 +787,6 @@ static INLINE ir_node *find_a_spill(const ir_node *irn) entity *be_get_spill_entity(const ir_node *irn) { - int opc = get_irn_opcode(irn); - switch(be_get_irn_opcode(irn)) { case beo_Reload: { @@ -924,7 +922,6 @@ static void *put_out_reg_req(arch_register_req_t *req, const ir_node *irn, int o static void *put_in_reg_req(arch_register_req_t *req, const ir_node *irn, int pos) { const be_node_attr_t *a = get_irn_attr(irn); - int n = get_irn_arity(irn); if(pos < get_irn_arity(irn) && pos < a->max_reg_data) memcpy(req, &a->reg_data[pos].in_req, sizeof(req[0])); @@ -1083,7 +1080,6 @@ static const arch_register_req_t *get_Phi_reg_req_recursive(const phi_handler_t { int n = get_irn_arity(phi); ir_node *op; - int done = 0; int i; if(*visited && pset_find_ptr(*visited, phi)) @@ -1319,6 +1315,8 @@ static int dump_node(ir_node *irn, FILE *f, dump_reason_t reason) fprintf(f, "direction: %s\n", a->dir == be_stack_dir_expand ? "expand" : "shrink"); } break; + default: + break; } }