<div dir="ltr">Because global_dtors DO work when the MT runtime is used.  Only the MD runtime doesn't.  (See bug)<br></div><br><div class="gmail_quote">On Wed Feb 18 2015 at 10:28:10 PM Kostya Serebryany <<a href="mailto:kcc@google.com">kcc@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In <a href="http://reviews.llvm.org/D7597#125736" target="_blank">http://reviews.llvm.org/D7597#<u></u>125736</a>, @timurrrr wrote:<br>
<br>
> OK, that's possible.<br>
><br>
> Since atexit portability restrictions apply, that'd still require<br>
>  platform-specific instrumentation AND RTL change as well.<br>
>  Do you suggest to go down that path?<br>
<br>
<br>
Why can't you do it inn rtl-only? I don't get it.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D7597" target="_blank">http://reviews.llvm.org/D7597</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/<u></u>settings/panel/<u></u>emailpreferences/</a><br>
<br>
<br>
</blockquote></div>