[PATCH] configure: win32 has 4 byte argument aligment, we have more
Marcus Meissner
meissner at suse.de
Sun Apr 18 17:17:22 CDT 2010
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.)
Ciao, Marcus
---
configure.ac | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4aa7cfd..a28688a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1561,6 +1561,7 @@ then
dnl Check for some compiler flags
WINE_TRY_CFLAGS([-fno-builtin],[AC_SUBST(BUILTINFLAG,"-fno-builtin")])
WINE_TRY_CFLAGS([-fno-strict-aliasing])
+ WINE_TRY_CFLAGS([-mincoming-stack-boundary=2])
WINE_TRY_CFLAGS([-Wdeclaration-after-statement])
WINE_TRY_CFLAGS([-Wstrict-prototypes])
WINE_TRY_CFLAGS([-Wtype-limits])
--
1.6.4.2
More information about the wine-patches
mailing list