<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m guessing you’re on an old clang. Apple Clang 602 had bugs in its aeabi support that were exposed by that change.<div class=""><br class=""></div><div class="">I have patches out for review that enable using the just-built clang when building compiler-rt that should make this issue go away:</div><div class=""><br class=""></div><div class=""><a href="http://reviews.llvm.org/D13399" class="">http://reviews.llvm.org/D13399</a></div><div class=""><br class=""></div><div class="">Alternatively the current Xcode GM doesn’t exhibit this problem either.</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 5, 2015, at 3:32 PM, Hans Wennborg <<a href="mailto:hans@chromium.org" class="">hans@chromium.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Tue, Sep 29, 2015 at 4:21 PM, Chris Bieneman via llvm-commits<br class=""><<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:<br class=""><blockquote type="cite" class="">Author: cbieneman<br class="">Date: Tue Sep 29 18:21:09 2015<br class="">New Revision: 248853<br class=""><br class="">URL: <a href="http://llvm.org/viewvc/llvm-project?rev=248853&view=rev" class="">http://llvm.org/viewvc/llvm-project?rev=248853&view=rev</a><br class="">Log:<br class="">[CMake] [macho_embedded] We need to set some extra flags when building the macho_embedded builtins.<br class=""><br class="">If we don't specify the arm target the float ABI compiler flags get ignored.<br class=""></blockquote><br class="">This is causing problems when building Clang & compiler-rt on Mac for<br class="">Chromium. The 10.10 SDK compiler now crashes like this:<br class=""><br class="">fatal error: error in backend: Cannot select: 0x110008210: i32,i32 =<br class="">udivrem 0x110001e70, 0x10c006928 [ORD=2] [ID=10]<br class="">  0x110001e70: i32,ch = CopyFromReg 0x104008a20, 0x10c006508 [ORD=2] [ID=7]<br class="">    0x10c006508: i32 = Register %vreg1 [ID=1]<br class="">  0x10c006928: i32,ch = CopyFromReg 0x104008a20, 0x110008420 [ORD=2] [ID=8]<br class="">    0x110008420: i32 = Register %vreg3 [ID=2]<br class="">In function: __udivmoddi4<br class=""><br class="">while compiling lib/builtins/udivmoddi4.c.<br class=""><br class="">I suppose this patch made some flags change. Is some bad flag getting<br class="">passed to the compiler, or is it just broken?<br class=""><br class="">I put some more details here: <a href="http://crbug.com/539600" class="">http://crbug.com/539600</a><br class=""><br class="">Thanks,<br class="">Hans<br class=""></div></div></blockquote></div><br class=""></div></body></html>