<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [ARM] Clang emits .cfi_offset directives that gas in the Android NDK can't assemble"
href="http://llvm.org/bugs/show_bug.cgi?id=19110">19110</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[ARM] Clang emits .cfi_offset directives that gas in the Android NDK can't assemble
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hans@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=12213" name="attach_12213" title="Reproduction">attachment 12213</a> <a href="attachment.cgi?id=12213&action=edit" title="Reproduction">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>