From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14100 invoked by alias); 19 Jun 2007 17:26:13 -0000 Received: (qmail 14011 invoked by uid 48); 19 Jun 2007 17:26:01 -0000 Date: Tue, 19 Jun 2007 17:26:00 -0000 Message-ID: <20070619172601.14010.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/32327] [4.2 Regression] Incorrect stack sharing causing removal of live code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rth at gcc dot 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: 2007-06/txt/msg01587.txt.bz2 ------- Comment #26 from rth at gcc dot gnu dot org 2007-06-19 17:26 ------- (In reply to comment #10) > Talked to Dan Berlin and Diego Novillo here at Google. They told me > that all locals are promoted to function scope. That *only* applies to register variables, not stack variables. We very very much want to preserve scope of stack variables, because we very very much want to share stack space between stack variables of different scopes. Failure to do so causes bad interactions with inlining, and causes stack space consumtion to grow to unacceptable levels. I.e. you can't build kernels anymore. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32327