------- Comment #4 from jakub at gcc dot gnu dot org 2008-04-27 13:33 ------- You can't always do that, sometimes the stack limit is a hard limit. Additionally, often on Linux setrlimit RLIMIT_STACK after exec is already too late (as in topdown memory layout things are often mapped already close to the stack bottom limit) and doing RLIMIT_STACK RLIM_INFINITY in the driver would result in less desirable VM layout. So, perhaps the driver could try to silently up the soft limit to say 256MB or so, but relying on that in gcc is still risky.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36060