<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 --- - Integrated assembler fails to set the target architecture from .arch"
href="http://llvm.org/bugs/show_bug.cgi?id=21695">21695</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Integrated assembler fails to set the target architecture from .arch
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>Backend: ARM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andrew@fubar.geek.nz
</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=13406" name="attach_13406" title="Simple test case, build with clang -c -target arm-gnueabi-linux cpu-test.s">attachment 13406</a> <a href="attachment.cgi?id=13406&action=edit" title="Simple test case, build with clang -c -target arm-gnueabi-linux cpu-test.s">[details]</a></span>
Simple test case, build with clang -c -target arm-gnueabi-linux cpu-test.s
The attached test case, when built with "clang -c -target arm-gnueabi-linux
cpu-test.s", fails to assemble with the llvm integrated assembler with the
following error:
cpu-test.s:2:1: error: instruction requires: data-barriers
dsb
We use .arch in the FreeBSD kernel to build assembly code that will target a
known architecture however it may not have -march argument set causing the
build to fail.
In binutils the .arch directive sets the current target architecture, it can
then be changed later to a new architecture if needed.</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>