Commit 208809bd authored by Matthias Braun's avatar Matthias Braun
Browse files

more warning fixes

parent 95604864
......@@ -103,6 +103,7 @@ static void dump_arith_tarval(struct obstack *obst, tarval *tv, int bytes)
}
}
#if 0
/*
* dump an arithmetic tarval
*/
......@@ -136,7 +137,7 @@ static void arm_dump_arith_tarval(struct obstack *obst, tarval *tv, int bytes)
}
dump_arith_tarval(obst, tv, bytes);
}
#endif
/*
* dump an atomic value
......
......@@ -537,7 +537,7 @@ static void arm_before_abi(void *self) {
irg_walk_graph(cg->irg, NULL, handle_calls, cg);
}
static void *arm_cg_init(const be_irg_t *birg);
static void *arm_cg_init(be_irg_t *birg);
static const arch_code_generator_if_t arm_code_gen_if = {
arm_cg_init,
......@@ -554,7 +554,7 @@ static const arch_code_generator_if_t arm_code_gen_if = {
/**
* Initializes the code generator.
*/
static void *arm_cg_init(const be_irg_t *birg) {
static void *arm_cg_init(be_irg_t *birg) {
static ir_type *int_tp = NULL;
arm_isa_t *isa = (arm_isa_t *)birg->main_env->arch_env->isa;
arm_code_gen_t *cg;
......
......@@ -517,7 +517,7 @@ static void mips_emit_and_done(void *self) {
free(cg);
}
static void *mips_cg_init(const be_irg_t *birg);
static void *mips_cg_init(be_irg_t *birg);
static const arch_code_generator_if_t mips_code_gen_if = {
mips_cg_init,
......@@ -534,7 +534,7 @@ static const arch_code_generator_if_t mips_code_gen_if = {
/**
* Initializes the code generator.
*/
static void *mips_cg_init(const be_irg_t *birg) {
static void *mips_cg_init(be_irg_t *birg) {
mips_isa_t *isa = (mips_isa_t *)birg->main_env->arch_env->isa;
mips_code_gen_t *cg = xmalloc(sizeof(*cg));
......
......@@ -234,7 +234,7 @@ static ir_entity *ppc32_get_frame_entity(const void *self, const ir_node *irn) {
return get_ppc32_frame_entity(irn);
}
static void ppc32_set_frame_entity(const void *self, const ir_node *irn, ir_entity *ent) {
static void ppc32_set_frame_entity(const void *self, ir_node *irn, ir_entity *ent) {
if (! is_ppc32_irn(irn) || get_ppc32_type(irn) != ppc32_ac_FrameEntity)
return;
set_ppc32_frame_entity(irn, ent);
......@@ -606,7 +606,7 @@ void ppc32_collect_symconsts_walk(ir_node *node, void *env) {
}
}
static void *ppc32_cg_init(const be_irg_t *birg);
static void *ppc32_cg_init(be_irg_t *birg);
static const arch_code_generator_if_t ppc32_code_gen_if = {
ppc32_cg_init,
......@@ -623,7 +623,7 @@ static const arch_code_generator_if_t ppc32_code_gen_if = {
/**
* Initializes the code generator.
*/
static void *ppc32_cg_init(const be_irg_t *birg) {
static void *ppc32_cg_init(be_irg_t *birg) {
ppc32_isa_t *isa = (ppc32_isa_t *)birg->main_env->arch_env->isa;
ppc32_code_gen_t *cg = xmalloc(sizeof(*cg));
......
......@@ -105,6 +105,7 @@ static void dump_arith_tarval(struct obstack *obst, tarval *tv, int bytes)
}
}
#if 0
/*
* dump an arithmetic tarval
*/
......@@ -138,7 +139,7 @@ static void ppc32_dump_arith_tarval(struct obstack *obst, tarval *tv, int bytes)
}
dump_arith_tarval(obst, tv, bytes);
}
#endif
/*
* dump an atomic value
......
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