<div dir="ltr">Yes, this is just a property of COFF, so it should be _WIN32.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 5:18 AM, Yaron Keren <span dir="ltr"><<a href="mailto:yaron.keren@gmail.com" target="_blank">yaron.keren@gmail.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="rtl"><div dir="ltr"><div dir="ltr">On Windows, typeids are different between DLLs and EXEs, so comparing type_info* will work for typeids from the same compiled file but fail for typeids from a DLL and an executable. Among other things, exceptions are not caught by handlers since can_catch() returns false.</div>


<div dir="ltr"><br></div><div dir="ltr">Defining _LIBCXX_DYNAMIC_FALLBACK does not help since can_catch() calls is_equal() with use_strcmp=false so the string names are not compared.</div><div dir="ltr"><br></div><div>This patch compares typeids first (cheap) and only they are different calls strcmp.</div>


<div dir="ltr"><br></div><div dir="ltr">If libcxxabi with Visual C++ has the same problem, __MINGW32__ should be replaced with _WIN32 in both locations.</div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><br>
</div><div>Yaron</div><div><br></div></font></span></div>
</div>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>