Arranging for -Os to imply -mpreferred-stack-boundary=2 on x86

Richard Henderson rth@redhat.com
Wed Oct 24 13:12:00 GMT 2001


On Wed, Oct 24, 2001 at 02:38:42PM -0400, Geert Bosch wrote:
> On Wed, 24 Oct 2001, Richard Henderson wrote:
>   I'd rather detect the required alignment of a function than use
>   an attribute.  Much friendlier when interacting with SSE code
>   that doesn't just prefer 16 byte alignment, but requires it.
[...]
>   3. assume the stack may be misaligned and do alignment in the prologue of f

I mean this.  For functions that do not call alloca, this
is as cheap as a single instruction in the prologue.  If
alloca is used as well, then we need extra registers and
things get uglier.


r~



More information about the Gcc-patches mailing list