This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/36060] [4.3/4.4 Regression] Too big stack requirements of cc1plus during GC
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2008 13:33:41 -0000
- Subject: [Bug debug/36060] [4.3/4.4 Regression] Too big stack requirements of cc1plus during GC
- References: <bug-36060-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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