Commit c3ea5262 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix a few warnings

parent b1270e2d
...@@ -332,18 +332,6 @@ static char *get_unique_label(char *buf, size_t buflen, const char *prefix) ...@@ -332,18 +332,6 @@ static char *get_unique_label(char *buf, size_t buflen, const char *prefix)
return buf; return buf;
} }
/**
* Returns the target label for a control flow node.
*/
static char *get_cfop_target(const ir_node *irn, char *buf)
{
ir_node *bl = get_irn_link(irn);
snprintf(buf, SNPRINTF_BUF_LEN, "BLOCK_%ld", get_irn_node_nr(bl));
return buf;
}
/************************************************************************/ /************************************************************************/
/* ABI Handling */ /* ABI Handling */
/************************************************************************/ /************************************************************************/
...@@ -388,7 +376,7 @@ static void mips_emit_Perm(const ir_node *node, mips_emit_env_t *env) ...@@ -388,7 +376,7 @@ static void mips_emit_Perm(const ir_node *node, mips_emit_env_t *env)
{ {
FILE *F = env->out; FILE *F = env->out;
assert(/*get_irn_n_outs(node) == 2 &&*/ get_irn_arity(node) == 2); assert(get_irn_arity(node) == 2);
lc_efprintf(mips_get_arg_env(), F, "\txor %1S, %1S, %2S\t\t\t# perm\n", node, node, node); lc_efprintf(mips_get_arg_env(), F, "\txor %1S, %1S, %2S\t\t\t# perm\n", node, node, node);
mips_emit_nops(F, 3); mips_emit_nops(F, 3);
...@@ -401,7 +389,7 @@ static void mips_emit_Perm(const ir_node *node, mips_emit_env_t *env) ...@@ -401,7 +389,7 @@ static void mips_emit_Perm(const ir_node *node, mips_emit_env_t *env)
static void mips_emit_Spill(const ir_node* node, mips_emit_env_t *env) static void mips_emit_Spill(const ir_node* node, mips_emit_env_t *env)
{ {
FILE *F = env->out; FILE *F = env->out;
entity *ent = be_get_spill_entity(node); entity *ent = be_get_frame_entity(node);
lc_efprintf(mips_get_arg_env(), F, "\tsw %1S, %d($fp)\n", node, get_entity_offset_bytes(ent)); lc_efprintf(mips_get_arg_env(), F, "\tsw %1S, %d($fp)\n", node, get_entity_offset_bytes(ent));
} }
...@@ -409,7 +397,7 @@ static void mips_emit_Spill(const ir_node* node, mips_emit_env_t *env) ...@@ -409,7 +397,7 @@ static void mips_emit_Spill(const ir_node* node, mips_emit_env_t *env)
static void mips_emit_Reload(const ir_node* node, mips_emit_env_t *env) static void mips_emit_Reload(const ir_node* node, mips_emit_env_t *env)
{ {
FILE *F = env->out; FILE *F = env->out;
entity *ent = be_get_spill_entity(node); entity *ent = be_get_frame_entity(node);
lc_efprintf(mips_get_arg_env(), F, "\tlw %1D, %d($fp)\n", node, get_entity_offset_bytes(ent)); lc_efprintf(mips_get_arg_env(), F, "\tlw %1D, %d($fp)\n", node, get_entity_offset_bytes(ent));
} }
...@@ -642,6 +630,7 @@ void mips_register_emitters(void) ...@@ -642,6 +630,7 @@ void mips_register_emitters(void)
op_be_RegParams->ops.generic = (op_func) mips_emit_nothing; op_be_RegParams->ops.generic = (op_func) mips_emit_nothing;
op_be_Spill->ops.generic = (op_func) mips_emit_Spill; op_be_Spill->ops.generic = (op_func) mips_emit_Spill;
op_be_Reload->ops.generic = (op_func) mips_emit_Reload; op_be_Reload->ops.generic = (op_func) mips_emit_Reload;
op_be_Perm->ops.generic = (op_func) mips_emit_Perm;
op_Start->ops.generic = (op_func) mips_emit_nothing; op_Start->ops.generic = (op_func) mips_emit_nothing;
op_Proj->ops.generic = (op_func) mips_emit_nothing; op_Proj->ops.generic = (op_func) mips_emit_nothing;
......
...@@ -71,6 +71,8 @@ static void mips_scheduler_finish_block(void* graph_env) ...@@ -71,6 +71,8 @@ static void mips_scheduler_finish_block(void* graph_env)
// attach last nop to end node (so that firm doesn't discard it) // attach last nop to end node (so that firm doesn't discard it)
if(sched_env->last_nop != NULL) { if(sched_env->last_nop != NULL) {
ir_node* end = get_irg_end(get_irn_irg(sched_env->block)); ir_node* end = get_irg_end(get_irn_irg(sched_env->block));
(void) end;
// TODO
} }
sched_env->block = NULL; sched_env->block = NULL;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment