This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/32849] Unnecessary %esp inc/decrements in trivial code
- From: "pbrook at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jul 2007 19:11:04 -0000
- Subject: [Bug regression/32849] Unnecessary %esp inc/decrements in trivial code
- References: <bug-32849-12956@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pbrook at gcc dot gnu dot org 2007-07-24 19:11 -------
You can use -mpreferred-stack-boundary=2 to disable this feature if you know
you're never going to need the additional stack alignment.
The compiler has know way of knowing whet the rest of your application does, so
has to make conservative assumptions.
If 16-byte alignment is needed anywhere then all functions must preserve that
alignment. Dynamic stack realignment is sufficiently expensive that it's much
better to not allow the stack to get misaligned in the first place.
--
pbrook at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32849