On Fri, Mar 18, 2016 at 05:16:50PM +0000, paul_kon...@dell.com wrote:
> 
> > On Mar 18, 2016, at 12:53 PM, Paulo Matos <pmatos@linki.tools> wrote:
> > 
> > 
> > 
> > On 18/03/16 15:02, Jonathan Wakely wrote:
> >> 
> >> It's probably crashing because it's too large, so if you reduce it
> >> then it won't crash.
> >> 
> > 
> > Would be curious to see what's the limit though, or if it depends on the
> > machine he's running GCC on.
> 
> It presumably depends on the machine, or rather the resource limits currently 
> in effect (ulimit etc.)  But the expected outcome when a resource limit is 
> exceeded is a clean error message saying so, not a crash.

It depends.  If the problem is e.g. running into the ulimit -s limit, then
the compiler just crashes, all the driver can do is report that it crashed.
Slowing down the compiler by testing stack depth in every function just in
case over limit testcase is being compiled is undesirable.

        Jakub

Reply via email to