[LLVMbugs] [Bug 19110] New: [ARM] Clang emits .cfi_offset directives that gas in the Android NDK can't assemble

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 11 16:28:44 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19110

            Bug ID: 19110
           Summary: [ARM] Clang emits .cfi_offset directives that gas in
                    the Android NDK can't assemble
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12213
  --> http://llvm.org/bugs/attachment.cgi?id=12213&action=edit
Reproduction

Trying to compile Chromium for Android, it seems Clang is emitting .cfi_offset
asm directives that the assembler in Android's NDK can't handle:

$ ../../third_party/llvm-build/Release+Asserts/bin/clang -fno-exceptions -fPIC 
-mfpu=neon -march=armv7-a -mfloat-abi=softfp -mthumb -no-integrated-as
-B/usr/local/google/home/hwennborg/chromium/src/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin
-g  -target arm-linux-androideabi -Os  -funwind-tables -x c -c /tmp/a.ii
/tmp/a-e08bd9.s: Assembler messages:
/tmp/a-e08bd9.s:148: Error: bad register expression
/tmp/a-e08bd9.s:150: Error: bad register expression
/tmp/a-e08bd9.s:152: Error: bad register expression
/tmp/a-e08bd9.s:154: Error: bad register expression

[snip]

Those assembly lines look like this:

.Ltmp17:
    .cfi_offset d11, -48
.Ltmp18:
    .cfi_offset d10, -56
.Ltmp19:
    .cfi_offset d9, -64
.Ltmp20:
    .cfi_offset d8, -72

It seems the assembler is having problems with the d registers. It's fine
assembling other lines that use them though, e.g.

   .vsave  {d8, d9, d10, d11}
    vpush   {d8, d9, d10, d11}

a couple of lines above work fine.

I suspect this started after 201423.

Any ideas on how we can work around this would be appreciated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140311/b06add55/attachment.html>


More information about the llvm-bugs mailing list