Bug 627341 - Wrong stack alignment in Convert_ascii_run call on mingw build r=dbaron a=NPOTB
authorJacek Caban <jacek@codeweavers.com>
Sat, 22 Jan 2011 12:57:02 +0000
changeset 61138 fa9559ec420a5cedef5b66fc3417d8deb507a4f6
parent 61137 2e05b59c835240640e860a2cf4641c41e0ad82d7
child 61139 8aac5bdd2796a0cd74c5587d7bdce69c89c6d397
push idunknown
push userunknown
push dateunknown
reviewersdbaron, NPOTB
bugs627341
milestone2.0b10pre
Bug 627341 - Wrong stack alignment in Convert_ascii_run call on mingw build r=dbaron a=NPOTB
intl/uconv/src/nsUTF8ToUnicodeSSE2.cpp
--- a/intl/uconv/src/nsUTF8ToUnicodeSSE2.cpp
+++ b/intl/uconv/src/nsUTF8ToUnicodeSSE2.cpp
@@ -38,16 +38,19 @@
 // you'll need to compile this file with -msse2 if you're using gcc.
 
 #include <emmintrin.h>
 #include "nscore.h"
 
 namespace mozilla {
 namespace SSE2 {
 
+#if defined(__i386__) && defined(__MINGW32__)
+__attribute__((__force_align_arg_pointer__))
+#endif
 void
 Convert_ascii_run(const char *&src,
                   PRUnichar  *&dst,
                   PRInt32      len)
 {
   if (len > 15) {
     __m128i in, out1, out2;
     __m128d *outp1, *outp2;