This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/9997] Coelesce stack slots for disjoint scopes.
- From: "naveens at noida dot hcltech dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2004 16:09:25 -0000
- Subject: [Bug middle-end/9997] Coelesce stack slots for disjoint scopes.
- References: <20030308010600.9997.rth@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From naveens at noida dot hcltech dot com 2004-07-07 16:09 -------
> we should allocate only one structure on the stack.
> Here's some interesting numbers I got for this testcase. HEAD+stack is
> the -fstack-reorg patch posted some time ago.
A small clarification.
-fstack-reorg doesn't affect stack height significantly. It had a slightly
different objective (i.e. reorganizing frame to reduce address arithemtic
for processors with limited offsets). Stack height reduction,
if any, occurs due only due alignment holes elimination. (not in this
case anyway)
I realize that work can be used to reduce stack height as well.
Myself and Rakesh Kumar plan to work on this problem shortly.
If the proposed patch (for this PR) works, it is fine, otherwise we can look
into this. However, it seems it will not be a bug-fixing exercise,
because this is actually a design deficiency.
Cannot give a commitment on timeline though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9997