[m-dev.] --warn-non-tail-recursion and deep profiling

Zoltan Somogyi zoltan.somogyi at runbox.com
Wed Mar 2 16:34:09 AEDT 2016



On Wed, 2 Mar 2016 13:00:59 +1100, Paul Bone <paul at bone.id.au> wrote:
> > That is the case I'm looking at.  Specifically, I'm looking at the
> > "failure" of the test case invalid/require_tailrec_2 in the grade
> > none.gc.profdeep.trseg.stseg.  We get additional warnings for this test
> > case because tail recursion is disabled.  There are various ways to
> > avoid this failure (e.g. extra expected output, don't run the test in
> > profdeep grades); I'm trying to determine which one to use here.
> 
> I suggest not running these tests with the profdeep grade component.

I am pretty sure that a proper solution of this problem has two parts.
The above (not running these tests in grades that intrinsically destroy
tail recursion) is one.

> Another option is if deep profiling and --warn-non-tail-recursive are both
> enabled, emit one general warning only.  The text of the warning message
> could even change depending on the stseg grade component.

And this is the other.

Zoltan.




More information about the developers mailing list