From 6394aa17aa0ad884e0dc37280c81b12425a235a1 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 13 Sep 2006 09:11:14 +0000 Subject: [PATCH] more warning fixes --- ir/be/beschedmris.c | 3 ++- ir/be/ia32/ia32_emitter.c | 1 - ir/be/ia32/ia32_x87.c | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ir/be/beschedmris.c b/ir/be/beschedmris.c index 88f292b36..b34adaf5c 100644 --- a/ir/be/beschedmris.c +++ b/ir/be/beschedmris.c @@ -221,6 +221,7 @@ static INLINE ir_node *skip_Projs(ir_node *irn) return is_Proj(irn) ? skip_Projs(get_Proj_pred(irn)) : irn; } +#if 0 static void replace_tuple_by_repr_proj(mris_env_t *env, ir_node **in) { int i; @@ -247,6 +248,7 @@ static void replace_tuple_by_repr_proj(mris_env_t *env, ir_node **in) } } } +#endif static void lineage_formation(mris_env_t *env) { @@ -338,7 +340,6 @@ static void lineage_formation(mris_env_t *env) assert(i < n && "could not find operand"); //replace_tuple_by_repr_proj(env, &in[1]); - (void) replace_tuple_by_repr_proj; if(!is_Proj(lowest_desc)) add_irn_dep(lowest_desc, in[1]); } diff --git a/ir/be/ia32/ia32_emitter.c b/ir/be/ia32/ia32_emitter.c index e4fcb8a17..b6fea3b44 100644 --- a/ir/be/ia32/ia32_emitter.c +++ b/ir/be/ia32/ia32_emitter.c @@ -1989,7 +1989,6 @@ static void ia32_register_emitters(void) { } static unsigned last_line = -1; -static const char *last_file = NULL; static unsigned num = -1; static void ia32_emit_dbg(const ir_node *irn, ia32_emit_env_t *env) { diff --git a/ir/be/ia32/ia32_x87.c b/ir/be/ia32/ia32_x87.c index d7c1f9638..726cf301b 100644 --- a/ir/be/ia32/ia32_x87.c +++ b/ir/be/ia32/ia32_x87.c @@ -204,6 +204,7 @@ static void x87_set_tos(x87_state *state, int reg_idx, ir_node *node) { x87_set_st(state, reg_idx, node, 0); } /* x87_set_tos */ +#if 0 /** * Flush the x87 stack. * @@ -213,6 +214,7 @@ static void x87_flush(x87_state *state) { state->depth = 0; state->tos = 0; } /* x87_flush */ +#endif /** * Swap st(0) with st(pos). @@ -330,6 +332,7 @@ static x87_state *x87_alloc_state(x87_simulator *sim) { return res; } /* x87_alloc_state */ +#if 0 /** * Create a new empty x87 state. * @@ -343,6 +346,7 @@ static x87_state *x87_alloc_empty_state(x87_simulator *sim) { x87_flush(res); return res; } /* x87_alloc_empty_state */ +#endif /** * Clone a x87 state. -- 2.20.1