This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32327] [4.2 Regression] Incorrect stack sharing causing removal of live code
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jun 2007 17:26:01 -0000
- Subject: [Bug middle-end/32327] [4.2 Regression] Incorrect stack sharing causing removal of live code
- References: <bug-32327-91@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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