[PATCH] configure: win32 has 4 byte argument aligment, we have more
Alexandre Julliard
julliard at winehq.org
Mon Apr 19 04:10:54 CDT 2010
Marcus Meissner <meissner at suse.de> writes:
> Hi,
>
> The Win32 ABI has its stack arguments aligned at 4 (2^2) bytes.
> For MMX/SSE operations we however need to have the stack aligned
> to 16 (2^4).
>
> So specify this explicitly.
>
> (This should probably be even part of attribute((stdcall)) perhaps
> in gcc. Not sure though.)
It needs to be the default in gcc. It's not specific to stdcall or to
Wine, there's plenty of Linux code that doesn't align the stack either.
gcc can't start generating code that assumes 16-byte alignment on Linux.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list