Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Fix GCC's preferred stack alignment to match psABI



On Tue, Sep 11, 2012 at 10:22:48PM +0200, Joerg Sonnenberger wrote:
> Hi all,
> the attached patch consists of two parts. The first part ensures that
> GCC honours the SYSV ABI on i386 as used by NetBSD. The second part
> adjusts the alignment of stack variables, so that double and complex
> double as well as long long are not aligned to 64bit by default, if the
> stack alignment is smaller. This avoids triggering unnecessary stack
> reliagnments.

What was wrong with enabling -mstackrealign by default?

That leaves the efficiency of aligning the stack on 16 byte boundaries.
But adds explicit alignment of the stack only when 128bit alignment
is requested.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index