This is the mail archive of the gcc-patches@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]

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


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~


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