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 regression/32849] Unnecessary %esp inc/decrements in trivial code



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


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