This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]