From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27415 invoked by alias); 3 Nov 2009 12:23:20 -0000 Received: (qmail 27373 invoked by uid 48); 3 Nov 2009 12:23:09 -0000 Date: Tue, 03 Nov 2009 12:23:00 -0000 Message-ID: <20091103122309.27372.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/31827] limits-exprparen.c: Pid 2297 received a SIGSEGV for stack growth failure In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bonzini at gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00161.txt.bz2 ------- 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