[Bug optimization/5477] gcc 3.0.x reserves a large stack frame, but uses only some parts of it

espenlaub at informatik dot uni-ulm dot de gcc-bugzilla@gcc.gnu.org
Tue Jun 24 06:42:00 GMT 2003


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.



More information about the Gcc-bugs mailing list