On Thu, Nov 29, 2012 at 1:53 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Oct 14, 2012 at 4:53 PM, Richard Smith<br>
<<a href="mailto:richard-llvm@metafoo.co.uk">richard-llvm@metafoo.co.uk</a>> wrote:<br>
> Author: rsmith<br>
> Date: Sun Oct 14 18:53:37 2012<br>
> New Revision: 165913<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=165913&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=165913&view=rev</a><br>
> Log:<br>
> Provide a slightly more helpful diagnostic if -fcatch-undefined-behavior finds<br>
> a problem with __int128 arithmetic but the runtime was not built with __int128<br>
> support.<br>
<br>
</div>Would it be possible for the test cases that depend on this would be<br>
marked as untested/xfail/something on platforms that don't support it?<br></blockquote><div><br></div><div>It should be possible, yes. It's a little tricky (it depends on both the target and on the compiler used to build compiler-rt), but I'll have a look.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Building with clang is actually failing for me, strangely enough. (I<br>
assume clang should be supporting __int128? since when?)</blockquote><div><br></div><div>Clang has provided __int128 for a while, but it didn't actually work for 32-bit targets. Now it only provides __int128 on targets where it works (and it defines __SIZEOF_INT128__ on those targets, just like gcc). Removing __int128 usage for versions of Clang in this window fixed both 32-bit builds with those compilers and builds with older versions of Clang with no __int128 support (such as the one shipped with the latest Xcode), at the expense of 64-bit builds with recent-but-not-trunk Clangs losing __int128 support.</div>
<div><br></div><div>If you try again with a trunk Clang as your $CXX, it should work. Let me know if not.</div></div>