This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 'stack overflow' message for Darwin; host hooks
- From: Segher Boessenkool <segher at koffie dot nl>
- To: Geoffrey Keating <geoffk at apple dot com>
- Cc: Zack Weinberg <zack at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 07 Feb 2003 02:50:34 +0100
- Subject: Re: 'stack overflow' message for Darwin; host hooks
- References: <3C427080-3A15-11D7-B5AC-0030657EA24A@apple.com>
Geoffrey Keating wrote:
I haven't investigated all the cases, but at least for one test case the
cause was real recursion in walk_tree (thousands of levels deep).
Another such test case is (observed on 3.3 branch)
int bla(int x)
{
return x + x + ... + x;
}
(with "..." denoting "lots of x's").
It definately eats more than linear space.
For more fun try x + y + x + y + ...
Segher