From: Michael Beck Date: Mon, 14 Apr 2008 01:30:35 +0000 (+0000) Subject: Linux gprof need base pointer X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=20432631bec7a52e88890d13f04fddb2a127df5a;p=libfirm Linux gprof need base pointer [r19272] --- diff --git a/ir/be/ia32/bearch_ia32.c b/ir/be/ia32/bearch_ia32.c index 32f1dc2b5..50aa361f6 100644 --- a/ir/be/ia32/bearch_ia32.c +++ b/ir/be/ia32/bearch_ia32.c @@ -1582,6 +1582,11 @@ static void *ia32_cg_init(be_irg_t *birg) { cg->dump = (birg->main_env->options->dump_flags & DUMP_BE) ? 1 : 0; cg->gprof = (birg->main_env->options->gprof) ? 1 : 0; + if (cg->gprof) { + /* Linux gprof implementation needs base pointer */ + birg->main_env->options->omit_fp = 0; + } + /* enter it */ isa->cg = cg;