Commit 5a701e67 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix gcc warning

parent 1633ac39
......@@ -39,6 +39,8 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
/* fill register allocator interface */
static const arch_irn_ops_t TEMPLATE_irn_ops = {
.get_op_estimated_cost = NULL,
.perform_memory_operand = NULL,
};
/**
......
......@@ -118,6 +118,8 @@ static int amd64_get_sp_bias(const ir_node *node)
/* fill register allocator interface */
static const arch_irn_ops_t amd64_irn_ops = {
.get_op_estimated_cost = NULL,
.perform_memory_operand = NULL,
};
static void amd64_before_ra(ir_graph *irg)
......
......@@ -62,6 +62,8 @@ ir_mode *arm_mode_flags;
/* fill register allocator interface */
const arch_irn_ops_t arm_irn_ops = {
.get_op_estimated_cost = NULL,
.perform_memory_operand = NULL,
};
/**
......
......@@ -472,7 +472,9 @@ unsigned be_get_IncSP_align(const ir_node *irn)
}
/* for be nodes */
static const arch_irn_ops_t be_node_irn_ops = {
static const arch_irn_ops_t null_ops = {
.get_op_estimated_cost = NULL,
.perform_memory_operand = NULL,
};
static unsigned get_start_reg_index(ir_graph *irg, const arch_register_t *reg)
......@@ -500,10 +502,6 @@ ir_node *be_get_initial_reg_value(ir_graph *irg, const arch_register_t *reg)
return proj ? proj : new_r_Proj(start, reg->cls->mode, i);
}
/* for "middleend" nodes */
static const arch_irn_ops_t dummy_be_irn_ops = {
};
ir_node *be_new_Phi(ir_node *block, int n_ins, ir_node **ins, ir_mode *mode,
const arch_register_req_t *req)
{
......@@ -555,9 +553,6 @@ void be_dump_phi_reg_reqs(FILE *F, const ir_node *node, dump_reason_t reason)
}
}
static const arch_irn_ops_t phi_irn_ops = {
};
/**
* ir_op-Operation: dump a be node to file
*/
......@@ -657,7 +652,7 @@ static ir_op *new_be_op(unsigned code, const char *name, op_pin_state p,
ir_op *res = new_ir_op(code, name, p, flags, opar, 0, attr_size);
set_op_dump(res, dump_node);
set_op_copy_attr(res, copy_attr);
res->ops.be_ops = &be_node_irn_ops;
res->ops.be_ops = &null_ops;
set_op_tag(res, be_op_tag);
return res;
}
......@@ -688,9 +683,9 @@ void be_init_op(void)
for (unsigned opc = iro_first; opc <= iro_last; ++opc) {
ir_op *op = ir_get_opcode(opc);
assert(op->ops.be_ops == NULL);
op->ops.be_ops = &dummy_be_irn_ops;
op->ops.be_ops = &null_ops;
}
op_Phi->ops.be_ops = &phi_irn_ops;
op_Phi->ops.be_ops = &null_ops;
}
void be_finish_op(void)
......
......@@ -124,6 +124,8 @@ static const lc_opt_table_entry_t sparc_options[] = {
/* fill register allocator interface */
const arch_irn_ops_t sparc_irn_ops = {
.get_op_estimated_cost = NULL,
.perform_memory_operand = NULL,
};
/**
......
Markdown is supported
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