crash with too many stack variables

Daniel Berlin dan@cgsoftware.com
Fri Aug 31 14:15:00 GMT 2001


SVN Kalyan <skalyan@synopsys.COM> writes:

> Hi,
>
>     When you have too many local variables in a function (> 3000), with
> -O1 for optimization,  gcc crash after a long-time; takes around 40
> minutes before it crashes.
Errr, need a test case.

>
>     We made all these locals 'static' and  and compiled -O0 option, it
> went through. But, -O failed even with this change.  Does anybody have
> an idea as to what might be the problem. We are ready to bump any limits
> or any minor fixing to get this thing going.
Once again, need a testcase.

>
>     A general question, gcc chokes when functions are too large or have
> too many statements or too deep a nesting level.  Is there a place where
> I can find out all the currently applicable limits and is there a way to
> fix them ourselves.

Submit testcases, and there is a better chance at someone being able
to help figure out what's going wrong.

>
> Thanks
>

-- 
"I took a baby shower.
"-Steven Wright



More information about the Gcc-bugs mailing list