<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">I suggest use gcc option -mpreferred-stack-boundary<div><br></div><div>Min<br><div><font face="monospace" size="3"><span style="line-height: normal;"><br></span></font>At 2016-07-27 16:15:41,"Pradeep Ramachandran" <<a href="mailto:pradeep@multicorewareinc.com">pradeep@multicorewareinc.com</a>> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div dir="ltr"><div class="gmail_extra">`-msse` only enables the use of SSE instructions with GCC. Since we already add `-march=i686` which is Pentium Pro's instruction set, sse should anyways be added.</div><div class="gmail_extra">Why does adding this explicitly get rid of the stack misalignment problem that you are witnessing? Is there some new change to this option with 6.1 that I am missing?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Pradeep.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 26, 2016 at 7:20 PM, Mateusz <span dir="ltr"><<a href="mailto:mateuszb@poczta.onet.pl" target="_blank">mateuszb@poczta.onet.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>There are bugs in GCC 6.1 <span lang="en"><span>that prevent</span> <span>to
compile</span> <span>working</span> <span>32</span><span>-bit</span></span><span lang="en"><span><span lang="en"> x<span>265</span><span> for</span></span></span> <span>Windows</span><span> (on default options).<br>
This patch adds '-msse' option to default 32-bit build option
to avoid different stack alignment.<br>
</span></span></p>
<p># HG changeset patch<br>
# User Ma0 <a href="mailto:mateuszb@poczta.onet.pl" target="_blank"><mateuszb@poczta.onet.pl></a><br>
# Date 1469540439 -7200<br>
# Tue Jul 26 15:40:39 2016 +0200<br>
# Node ID b95ee119b5c6ccac4892c430c494d1a5f22b2ce0<br>
# Parent 5a0e139e29386ecebafc9c555aedcd3e0f61c70c<br>
cmake: avoid different stack alignment for GCC in 32-bit Windows<br>
<br>
diff -r 5a0e139e2938 -r b95ee119b5c6 source/CMakeLists.txt<br>
--- a/source/CMakeLists.txt Fri Jul 22 13:13:42 2016 +0530<br>
+++ b/source/CMakeLists.txt Tue Jul 26 15:40:39 2016 +0200<br>
@@ -184,6 +184,9 @@<br>
string(FIND "${CMAKE_CXX_FLAGS}" "-march" marchPos)<br>
if(marchPos LESS "0")<br>
add_definitions(-march=i686)<br>
+ if(WIN32 AND NOT INTEL_CXX)<br>
+ add_definitions(-msse)<br>
+ endif()<br>
endif()<br>
endif()<br>
if(ARM AND CROSS_COMPILE_ARM)<br></p></div></blockquote></div></div></div>
</blockquote></div></div></div></div>