From a7ed0d3e9d68f5f83e8b9f6679ce12637842b03b Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 18 Aug 2009 15:52:02 -0400 Subject: PR10518: context shrinkage with function recursion analysis feeding MAXNESTING * translate.cxx (emit_common_header, translate_pass): Use new recursion_info visitor to calculate appropriate MAXNESTING value for scripts with or without recursion. * tapsets.cxx (common_probe_entryfn_prologue): Initialize c->nesting = -1. * stap.1.in: Clarify MAXNESTING value. --- tapsets.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index e12ff6bd..3d38a3ce 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -121,7 +121,7 @@ common_probe_entryfn_prologue (translator_output* o, string statestr, o->newline(); o->newline() << "c->last_stmt = 0;"; o->newline() << "c->last_error = 0;"; - o->newline() << "c->nesting = 0;"; + o->newline() << "c->nesting = -1;"; // NB: PR10516 packs locals[] tighter o->newline() << "c->regs = 0;"; o->newline() << "c->unwaddr = 0;"; o->newline() << "c->probe_point = " << new_pp << ";"; -- cgit