This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
crash with too many stack variables
- To: gcc-bugs at gcc dot gnu dot org
- Subject: crash with too many stack variables
- From: SVN Kalyan <skalyan at synopsys dot COM>
- Date: Fri, 31 Aug 2001 13:58:30 -0700
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.
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.
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.
Thanks