This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31827] limits-exprparen.c: Pid 2297 received a SIGSEGV for stack growth failure
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2009 12:23:09 -0000
- Subject: [Bug middle-end/31827] limits-exprparen.c: Pid 2297 received a SIGSEGV for stack growth failure
- References: <bug-31827-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from bonzini at gnu dot org 2009-11-03 12:23 -------
Created an attachment (id=18953)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18953&action=view)
patch to fix the bug
The attached patches together reduce the stack usage of expression parsing by
~30%. On a 64-bit machine with 8 MB the parsing now fails after 10300
recursions instead of 7100.
This still means that one pair of parentheses consumes about 100 words on the
stack.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827