This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/5477] gcc 3.0.x reserves a large stack frame, but uses only some parts of it
- From: "espenlaub at informatik dot uni-ulm dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2003 06:31:44 -0000
- Subject: [Bug optimization/5477] gcc 3.0.x reserves a large stack frame, but uses only some parts of it
- References: <20020124010600.5477.espenlaub@informatik.uni-ulm.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5477
------- Additional Comments From espenlaub at informatik dot uni-ulm dot de 2003-06-24 06:31 -------
> On some systems, stack frames have to be 16-byte aligned. I don't know
> whether this is the case here, but it would be the obvious explanation.
Good point. On the Intel i386 it doesn't _have_ to be 16-byte aligned, but it
is by default. See documentation for -mpreferred-stack-boundary. If I specify
-mpreferred-stack-boundary=2, then gcc really uses each and every stack slot
allocated. So the bug is in fact completely fixed, contrary to what I said in
my previous comment. Many thanks to everyone involved.