Commit 0a57cf99 authored by Matthias Braun's avatar Matthias Braun
Browse files

warning fixes

[r14757]
parent 01638bb7
......@@ -117,6 +117,8 @@ static const arch_register_t *get_out_reg(const arch_env_t *arch_env,
void TEMPLATE_emit_immediate(TEMPLATE_emit_env_t *env, const ir_node *node)
{
(void) env;
(void) node;
/* TODO */
}
......@@ -261,6 +263,7 @@ void TEMPLATE_emit_func_epilog(TEMPLATE_emit_env_t *env, ir_graph *irg) {
void TEMPLATE_gen_labels(ir_node *block, void *env) {
ir_node *pred;
int n = get_Block_n_cfgpreds(block);
(void) env;
for (n--; n >= 0; n--) {
pred = get_Block_cfgpred(block, n);
......
......@@ -38,9 +38,10 @@ struct TEMPLATE_irn_reg_assoc {
const arch_register_t *reg;
};
int TEMPLATE_cmp_irn_reg_assoc(const void *a, const void *b, size_t len) {
int TEMPLATE_cmp_irn_reg_assoc(const void *a, const void *b, size_t size) {
const struct TEMPLATE_irn_reg_assoc *x = a;
const struct TEMPLATE_irn_reg_assoc *y = b;
(void) size;
return x->irn != y->irn;
}
......
......@@ -370,6 +370,8 @@ void init_TEMPLATE_attributes(ir_node *node, arch_irn_flags_t flags,
ir_graph *irg = get_irn_irg(node);
struct obstack *obst = get_irg_obstack(irg);
TEMPLATE_attr_t *attr = get_TEMPLATE_attr(node);
(void) execution_units;
(void) latency;
attr->flags = flags;
attr->out_req = out_reqs;
......
......@@ -376,7 +376,7 @@ static TEMPLATE_isa_t TEMPLATE_isa_template = {
7, /* costs for a spill instruction */
5, /* costs for a reload instruction */
},
{ NULL, }, /* emitter environment */
NULL_EMITTER, /* emitter environment */
};
/**
......@@ -633,20 +633,27 @@ static const list_sched_selector_t *TEMPLATE_get_list_sched_selector(
const void *self, list_sched_selector_t *selector)
{
(void) self;
(void) selector;
memcpy(&TEMPLATE_sched_selector, trivial_selector, sizeof(list_sched_selector_t));
TEMPLATE_sched_selector.to_appear_in_schedule = TEMPLATE_to_appear_in_schedule;
return &TEMPLATE_sched_selector;
}
static const ilp_sched_selector_t *TEMPLATE_get_ilp_sched_selector(const void *self) {
static const ilp_sched_selector_t *TEMPLATE_get_ilp_sched_selector(
const void *self)
{
(void) self;
return NULL;
}
/**
* Returns the necessary byte alignment for storing a register of given class.
*/
static int TEMPLATE_get_reg_class_alignment(const void *self, const arch_register_class_t *cls) {
static int TEMPLATE_get_reg_class_alignment(const void *self,
const arch_register_class_t *cls) {
ir_mode *mode = arch_register_class_mode(cls);
(void) self;
return get_mode_size_bytes(mode);
}
......@@ -676,19 +683,29 @@ static const backend_params *TEMPLATE_get_backend_params(void) {
return &p;
}
static const be_execution_unit_t ***TEMPLATE_get_allowed_execution_units(const void *self, const ir_node *irn) {
static const be_execution_unit_t ***TEMPLATE_get_allowed_execution_units(
const void *self, const ir_node *irn)
{
(void) self;
(void) irn;
/* TODO */
assert(0);
return NULL;
}
static const be_machine_t *TEMPLATE_get_machine(const void *self) {
static const be_machine_t *TEMPLATE_get_machine(const void *self)
{
(void) self;
/* TODO */
assert(0);
return NULL;
}
static ir_graph **TEMPLATE_get_backend_irg_list(const void *self, ir_graph ***irgs) {
static ir_graph **TEMPLATE_get_backend_irg_list(const void *self,
ir_graph ***irgs)
{
(void) self;
(void) irgs;
return 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