[cfe-commits] r155737 - /cfe/trunk/include/clang/Parse/Parser.h
mcrosier at apple.com
Fri Apr 27 17:27:49 PDT 2012
On Apr 27, 2012, at 5:10 PM, Paul Robinson wrote:
> On Fri, Apr 27, 2012 at 3:44 PM, Chad Rosier <mcrosier at apple.com> wrote:
>> On Apr 27, 2012, at 3:20 PM, Dimitry Andric wrote:
>>> On 2012-04-28 00:14, Chad Rosier wrote:
>>>> Author: mcrosier
>>>> Date: Fri Apr 27 17:14:13 2012
>>>> New Revision: 155737
>>>> URL: http://llvm.org/viewvc/llvm-project?rev=155737&view=rev
>>>> Bump up the MaxDepth in the BalancedDelimiterTracker.
>>>> The Avida Project (http://avida.devosoft.org) exceeds the 256 limit.
>>> Not only that, binutils' gold also hit this limit, as described here:
>>> In that bug, Pasi Parviainen also suggests another solution; but I'm not
>>> sure what the best approach is to fixing this properly.
>> My understanding is that this limit is used to bound the amount of recursion in the clang parser. This in turn prevents clang from blowing out its stack. Thus, bumping the recursion depth seems like the reasonable solution.
> Bumping the limit might be reasonable, or it might be papering over a
> real counting problem.
> The patch attached to the PR feels like it is fixing a real counting problem.
I noticed that and commented in the radar. I also CC'ed Doug to make sure he or one of the other Clang team members take a look.
>> Hopefully, the bound is small enough to serve its purpose, but large enough to allow projects with valid code to compile. If you wouldn't mind, please check binutils' gold again and close the PR if this resolves the issue.
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
More information about the cfe-commits