<div dir="ltr">Right, the x86_32 calling convention that MSVC uses fails to align such objects, and this is the error you get if you try. VS 2015 update 3 probably added __declspec(align(8)) to std::atomic<__int64>, triggering this error if you pass one or an object that contains one by value.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 3:16 PM, Adrian McCarthy via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I left out some words.  I meant:<div><br></div><div><span style="font-size:16px">The answers on that StackOverflow question claim that 32-bit MSVC never does more than 32-byte alignment <b><i>for parameters</i></b>.</span><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 3:12 PM, Adrian McCarthy <span dir="ltr"><<a href="mailto:amccarth@google.com" target="_blank">amccarth@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">`default_stop_addr` is an `Address` which contains a `std::atomic<lldb::addr_t>`.  The `addr_t` is a 64-bit value, so I assume it needs 64-bit alignment.  The answers on that StackOverflow question claim that 32-bit MSVC never does more than 32-byte alignment. So my guess is that this has always been a problem, and the newer compiler is just better at reporting it.<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 2:56 PM, Philippe Lavoie <span dir="ltr"><<a href="mailto:philippe.lavoie@octasic.com" target="_blank">philippe.lavoie@octasic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">32-bit.<br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Adrian McCarthy [<a href="mailto:amccarth@google.com" target="_blank">amccarth@google.com</a>]<br>
<b>Sent:</b> Thursday, June 30, 2016 5:36 PM<br>
<b>To:</b> Philippe Lavoie<br>
<b>Cc:</b> <a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [lldb-dev] compile failure with VS 2015 Update 3<br>
</font><br>
</div><div><div>
<div></div>
<div>
<div dir="ltr">Compiling for 32-bit or 64-bit?
<div><br>
</div>
<div>This question looks relevant:  <a href="http://stackoverflow.com/questions/21743144/using-stdatomic-with-aligned-classes" target="_blank">http://stackoverflow.com/questions/21743144/using-stdatomic-with-aligned-classes</a></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jun 30, 2016 at 1:19 PM, Philippe Lavoie via lldb-dev
<span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">
<div>Hello,</div>
<div><br>
</div>
<div>has anyone tried to compile LLDB with Visual Studio 2015 Update 3 ?</div>
<div><br>
</div>
<div>It compiles fine with Update 2, but with Update 3 we get error messages like:</div>
<div><br>
</div>
<div>    D:\dev\llvm\tools\lldb\include\lldb/Target/Process.h(3194): error C2719:</div>
<div>    'default_stop_addr': formal parameter with requested alignment of 8 won't be aligned</div>
<div>    (compiling source file D:\dev\llvm\tools\lldb\source\Expression\FunctionCaller.cpp)</div>
<div><br>
</div>
<div>although there is no __declspec(align) on that parameter.</div>
<div><span style="white-space:pre-wrap"></span></div>
<div>We reported the issue to Microsoft here:</div>
<div><a href="https://connect.microsoft.com/VisualStudio/feedback/details/2870567/lldb-no-longer-compiles" target="_blank">https://connect.microsoft.com/VisualStudio/feedback/details/2870567/lldb-no-longer-compiles</a></div>
<span><font color="#888888">
<div><br>
</div>
<div>-Philippe</div>
</font></span></div>
</div>
<br>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br></div>