This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Arranging for -Os to imply -mpreferred-stack-boundary=2 on x86
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: Arranging for -Os to imply -mpreferred-stack-boundary=2 on x86
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 24 Oct 2001 10:56:49 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <ork7xmbrxp.fsf@free.redhat.lsd.ic.unicamp.br>
On Tue, Oct 23, 2001 at 07:56:34AM -0200, Alexandre Oliva wrote:
> I'm considering introducing a function attribute to specify the
> alignment requirements of a given function, with similar effects to
> RTH's FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN, so that one can control
> performance-critical (re-)entry points that would benefit from
> additional alignment.
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.
r~