This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Natural alignment for 64-bit Darwin
- From: Andrew Haley <aph at redhat dot com>
- To: Stan Shebs <shebs at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 23 Feb 2005 10:03:24 +0000
- Subject: Re: Natural alignment for 64-bit Darwin
- References: <421BD448.4080209@apple.com>
Stan Shebs writes:
> The 64-bit Darwin ABI calls for it to do "natural" instead of "power"
> alignment, which mostly means that structs with pointers get little
> 4-byte pads scattered about in them now, and is reputed to yield
> better performance.
>
> This patch makes the change. Tested by bootstrapping on a new-enough
> Darwin to have natural-aligned libraries, plus testsuite run (with 8
> fewer failures - weird, but don't look the gift horse, yadda yadda),
> plus cross-eabi build.
As this changes the ABI, I guess it requires a libffi patch too.
Andrew.