<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/140262>140262</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
aarch64: -mcpu= passes -mcpu= instead of -march= to as with -no-integrated-as unlike GCC
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pinskia
</td>
</tr>
</table>
<pre>
GCC was changed this behavior almost 10 years ago: https://gcc.gnu.org/pipermail/gcc-patches/2015-August/426507.html .
The reason is because GNU binutils and GCC are seperate projects so an older binutils can be used with a newer GCC without any issues. Plus it allows for GCC to use a different assembler besides GNU binutils which might not have that specific -mcpu option.
clang should do the same.
Right now `-no-integrated-as -mcpu=oryon-1` is broken when using with clang and GNU binutils' as because of this . `oryon-1` was not added to GNU binutils because it was not needed for when use with GCC; in fact there are other most other `-mcpu=` options have not been added to GNU binutils for this same reason.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0U8uO5DYM_Br1hbBhy-7XwYfeWfTcgiBIPoCW2JYysmSI0jTm7wPZ3sxOgj3ZkCiyqliFzHbyRIM4fhPH7wfMyYQ4LNbzm8XDGPTH8PryAk9kUAb9RBqSsQwjGXy3IQK6OXCCtoEPwsiAUxDdDUxKC4vuJuRdyPukVD35XIc4CXlf7EJxRuu2m2rBpAyxkHfZtMfqlqfMSch7L0_H5lybNDuoRXMTze1PQxAJOXhYQSjMTPD6218wWp-TdQzoNRTIGAmYFoqYCJYY_iaVGDgAeghOU_x8otDDSJCZNDxtMoDg6Ulx7VMOQk6A_gMscyau4XeXGWwCdC48GR5hK02h9AAEbR8PiuQTIDPNoyvTiK0m_gr2aawyMNvJJPAhgcF3gmQwAS-k7MMqqGa1ZAhLssHvKiiHfgI2ITsNOkAyBIwz7dd_7O2eIE5N5UNlfaKp6KAr5K2h6L6H-BF81YpTs2oZwxt5eBrykNn6aVNiG7Vq-hNuIc-An_qHx2aKugz8qW1xTWGFWhffhK_cf7y26d9CT1Qqi547ENpgvL68iO4bWA8PVKkQjrRuOJRfWC24_RbKO8ECYdONN2HLiJHI_wJQGbvyKFruNqsPeuj0tbvigYb23J_75nSVl4MZWimv8tj1TSMfnZZXde163SvdXEnKtusPdpCNPDbH9tT2_aW_1Gc8qyOdsJUNXrqLFn1DJQa1c-9zycZh9dfQ9o08yYPDkRyvyZTS03Nzn5CyBDUO5VE15olF3zjLiT_bJJscDYhRmVNf0vhDEViKHz8tANZzItRlg9Vc6sthCmW5q-7_d0_2zr5RWcghRzf8J-c2mTzWKsxC3guc_VPt-RPyvkVIyPvO8n2Q_wQAAP__vXSDWw">