X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fia32%2Fia32_x87.c;h=010efd8cab7cf67a43d574d9a4f769b0809b40dc;hb=fa4ec191e159484f0fcbea2ef044deaa2ab2d293;hp=d59019a701583337d322c7b86f206d8fc05ca08b;hpb=91c8f67212a36a74ebafec370aeb453d6e4ad9cc;p=libfirm diff --git a/ir/be/ia32/ia32_x87.c b/ir/be/ia32/ia32_x87.c index d59019a70..010efd8ca 100644 --- a/ir/be/ia32/ia32_x87.c +++ b/ir/be/ia32/ia32_x87.c @@ -48,7 +48,7 @@ #define MASK_TOS(x) ((x) & (N_x87_REGS - 1)) /** the debug handle */ -static firm_dbg_module_t *dbg = NULL; +DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;) /** * An exchange template. @@ -1064,8 +1064,10 @@ static void x87_init_simulator(x87_simulator *sim, ir_graph *irg, const arch_env sim->blk_states = pmap_create(); sim->env = env; - FIRM_DBG_REGISTER(dbg, "firm.be.ia32.x87"); + FIRM_DBG_REGISTER(dbg, "firm.be.ia32.x87"); +#ifndef DEBUG_libfirm firm_dbg_set_mask(dbg, SET_LEVEL_2); +#endif /* DEBUG_libfirm */ DB((dbg, LEVEL_1, "--------------------------------\n" "x87 Simulator started for %+F\n", irg)); @@ -1122,10 +1124,10 @@ void x87_simulate_graph(const arch_env_t *env, ir_graph *irg, ir_node **blk_list x87_simulator sim; int i; - /* we need liveness info for the current graph */ + /* we need liveness info for the current graph */ be_liveness(irg); - /* create the simulator */ + /* create the simulator */ x87_init_simulator(&sim, irg, env); start_block = get_irg_start_block(irg); @@ -1149,6 +1151,6 @@ void x87_simulate_graph(const arch_env_t *env, ir_graph *irg, ir_node **blk_list } } while (! pdeq_empty(worklist)); - /* kill it */ + /* kill it */ x87_destroy_simulator(&sim); }