<html>
<head>
<base href="https://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 --- - '-arch armv6' generates code for armv7 instead of armv6"
href="https://llvm.org/bugs/show_bug.cgi?id=24765">24765</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>'-arch armv6' generates code for armv7 instead of armv6
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>t.poechtrager@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>This only affects 3.7.
I have used the official 3.7.0 binaries from llvm.org for testing.
Clang 3.6 and trunk seem to do the right thing.
$ echo "int x; " | clang -target arm-apple-darwin -miphoneos-version-min=4.2.1
-arch arm64 -c -o- -xc - | file -
/dev/stdin: Mach-O 64-bit 64-bit architecture=12 object
$ echo "int x; " | clang -target arm-apple-darwin -miphoneos-version-min=4.2.1
-arch armv7s -c -o- -xc - | file -
/dev/stdin: Mach-O arm subarchitecture=11 object
$ echo "int x; " | clang -target arm-apple-darwin -miphoneos-version-min=4.2.1
-arch armv7 -c -o- -xc - | file -
/dev/stdin: Mach-O arm_v7 object
$ echo "int x; " | clang -target arm-apple-darwin -miphoneos-version-min=4.2.1
-arch armv6 -c -o- -xc - | file -
/dev/stdin: Mach-O arm_v7 object # Shouldn't this generate code for armv6, or
am I missing something here?</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>