[lfs-dev] gcc test mangle33

Bruce Dubbs bruce.dubbs at gmail.com
Sat Mar 30 15:05:39 PDT 2013

Billy O'Connor wrote:
> Bruce Dubbs <bruce.dubbs at gmail.com> writes:
>> I've finally figured out what is making the mangle33.C program fail.  It
>> is an arbitrary limitation in tcl.   This particular gcc test creates a
>> c++ namespace *name* of 4044 characters in length.   It turns out that
>> there is a value buried deep in tcl code (generic/regc_nfa.c):
>> /*
>>    * Arbitrary depth limit. Needs tuning, but this value is sufficient to
>>    * make all normal tests (not reg-33.14) pass.
>>    */
>> Changing this to 5000 makes the gcc test pass.  Is it worthwhile to make
>> this change in the Chapter 5 build of tcl?  How about BLFS?
> Nice catch!  Upstream should have heard about this by now, the gcc team
> must have seen the same error(I hope).  They'll want to fix it
> themselves, so I'd patch tcl now and just change the instructions after
> they apply the patch.

I think the test passes with older versions of tcl, so maybe the gcc 
devs don't know.

I did send a message to the tcl mailing list to let them know of the issue.

   -- Bruce

More information about the lfs-dev mailing list