This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix c/2161
Richard Henderson <rth@redhat.com> writes:
> On Fri, Apr 26, 2002 at 12:20:23PM +0100, Joseph S. Myers wrote:
>> Perhaps simply defining YYMAXDEPTH to something large (say 100000000
>> rather than the default 10000) would be a better practical fix than
>> involving Bison internals as here.
> The hardest part appears to be convincing Bison not to use alloca.
Per the bison NEWS file:
Changes in version 1.31, 2002-01-14:
[...]
* Use of alloca in parsers
If YYSTACK_USE_ALLOCA is defined to 0, then the parsers will use
malloc exclusively. Since 1.29, but was not NEWS'ed.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>