[Bug regression/32849] Unnecessary %esp inc/decrements in trivial code

pbrook at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jul 24 19:11:00 GMT 2007

------- 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


More information about the Gcc-bugs mailing list