<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 4, 2015 at 3:56 AM, Yury Gribov <span dir="ltr"><<a href="mailto:tetra2005@gmail.com" target="_blank">tetra2005@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> Yes, I think enabling -Wglobal-constructors for ASan (and for all the rest sanitizers) will be great.<br>
<br>
<br>
</span>FYI it was relatively easy to get this working on Linux (with ~500 lines of changes). Unfortunately Windows compiler lacks too many necessary features: explicit initialization of array members, constexpr, unrestricted unions (all still missing in VS2013 and we still use VS2012). Having #if WINDOWS all over the place isn't an option as well so I'm afraid we are out of luck.<br></blockquote><div><br>Perhaps there's a relatively small number of structures (probably templates) we could create to keep all of this logic (and Windows workarounds/suppressions) in one place so it could scale to all the use cases we have?<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
<br>
REPOSITORY<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D7171" target="_blank">http://reviews.llvm.org/D7171</a><br>
<br>
</span>EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
</blockquote></div><br></div></div>