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
Andrew Haley wrote:
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.
Yep, libffi is "etherised on the table" :-) , also I've had to tweak
boehm-gc a bit.
Libjava building gets to the end in my sandbox, then chokes where
it tries to use "ld" directly (for obscure reasons, the 64-bit linker
is called "ld64" - this is why using GCC driver is recommended...).
Stan