From 290f94b55fac23ec7eaab6e7ad75304a48a25ab3 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 11 Jan 2007 13:48:35 +0000 Subject: [PATCH] there is no be_chordal_open anymore, don't call init_arch_sta if WITH_STA is not defined --- ir/be/becopyilp.c | 12 +++++++++++- ir/be/bemodule.c | 1 - 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ir/be/becopyilp.c b/ir/be/becopyilp.c index 3a804e945..1dca9e65f 100644 --- a/ir/be/becopyilp.c +++ b/ir/be/becopyilp.c @@ -12,10 +12,12 @@ #endif /* HAVE_CONFIG_H */ #include "irtools.h" +#include "irprintf.h" #include "bestatevent.h" #include "beirg_t.h" #include "bemodule.h" +#include "error.h" #ifdef WITH_ILP @@ -233,7 +235,15 @@ lpp_sol_state_t ilp_go(ilp_env_t *ienv) { be_stat_ev_dbl("co_ilp_sol_time", ienv->lp->sol_time); if(dump_flags & DUMP_ILP) { - FILE *f = be_chordal_open(ienv->co->cenv, "", "-co.ilp"); + char buf[128]; + FILE *f; + + ir_snprintf(buf, sizeof(buf), "%F_%s-co.ilp", ienv->co->cenv->irg, + ienv->co->cenv->cls->name); + f = fopen(buf, "wt"); + if(f == NULL) { + panic("Couldn't open '%s' for writing", buf); + } lpp_dump_plain(ienv->lp, f); fclose(f); } diff --git a/ir/be/bemodule.c b/ir/be/bemodule.c index 31dc9d5b5..5575b3c9c 100644 --- a/ir/be/bemodule.c +++ b/ir/be/bemodule.c @@ -66,7 +66,6 @@ void be_init_modules(void) be_init_arch_ppc32(); be_init_arch_mips(); be_init_arch_arm(); - be_init_arch_sta(); #ifdef WITH_ILP be_init_ilpsched(); -- 2.20.1