From 64b03ac67178882e7aae970ee8d8f55174ae4c3b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 5 Mar 2008 09:49:35 +0000 Subject: [PATCH] fix warnings [r17965] --- ir/opt/opt_osr.c | 3 +++ ir/opt/tailrec.c | 1 + 2 files changed, 4 insertions(+) diff --git a/ir/opt/opt_osr.c b/ir/opt/opt_osr.c index 68591a992..7144e18fe 100644 --- a/ir/opt/opt_osr.c +++ b/ir/opt/opt_osr.c @@ -469,6 +469,7 @@ static int replace(ir_node *irn, ir_node *iv, ir_node *rc, iv_env *env) { return 0; } +#if 0 /** * check if a given node is a mul with 2, 4, 8 */ @@ -494,6 +495,7 @@ static int is_x86_shift_const(ir_node *mul) { } return 0; } +#endif /** * Check if an IV represents a counter with constant limits. @@ -1296,6 +1298,7 @@ void opt_osr(ir_graph *irg, unsigned flags) { if (env.replaced) { /* try linear function test replacements */ //lftr(irg, &env); // currently buggy :-( + (void) lftr; set_irg_outs_inconsistent(irg); DB((dbg, LEVEL_1, "Replacements: %u + %u (lftr)\n\n", env.replaced, env.lftr_replaced)); diff --git a/ir/opt/tailrec.c b/ir/opt/tailrec.c index 5ca9549f0..e0e9aa8ec 100644 --- a/ir/opt/tailrec.c +++ b/ir/opt/tailrec.c @@ -46,6 +46,7 @@ #include "trouts.h" #include "irouts.h" #include "irhooks.h" +#include "ircons_t.h" #include "xmalloc.h" DEBUG_ONLY(static firm_dbg_module_t *dbg); -- 2.20.1