Marcus Meissner meissner@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.