[compiler-rt] r248853 - [CMake] [macho_embedded] We need to set some extra flags when building the macho_embedded builtins.

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 15:32:45 PDT 2015


On Tue, Sep 29, 2015 at 4:21 PM, Chris Bieneman via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: cbieneman
> Date: Tue Sep 29 18:21:09 2015
> New Revision: 248853
>
> URL: http://llvm.org/viewvc/llvm-project?rev=248853&view=rev
> Log:
> [CMake] [macho_embedded] We need to set some extra flags when building the macho_embedded builtins.
>
> If we don't specify the arm target the float ABI compiler flags get ignored.

This is causing problems when building Clang & compiler-rt on Mac for
Chromium. The 10.10 SDK compiler now crashes like this:

fatal error: error in backend: Cannot select: 0x110008210: i32,i32 =
udivrem 0x110001e70, 0x10c006928 [ORD=2] [ID=10]
  0x110001e70: i32,ch = CopyFromReg 0x104008a20, 0x10c006508 [ORD=2] [ID=7]
    0x10c006508: i32 = Register %vreg1 [ID=1]
  0x10c006928: i32,ch = CopyFromReg 0x104008a20, 0x110008420 [ORD=2] [ID=8]
    0x110008420: i32 = Register %vreg3 [ID=2]
In function: __udivmoddi4

while compiling lib/builtins/udivmoddi4.c.

I suppose this patch made some flags change. Is some bad flag getting
passed to the compiler, or is it just broken?

I put some more details here: http://crbug.com/539600

Thanks,
Hans


More information about the llvm-commits mailing list