<html>
<head>
<base href="https://bugs.llvm.org/">
</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] compiler-rt still selecting FPU-centric built-ins for FPU-less targets"
href="https://bugs.llvm.org/show_bug.cgi?id=38961">38961</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[ARM] compiler-rt still selecting FPU-centric built-ins for FPU-less targets
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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>builtins
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kelledin@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>When building for 32-bit ARM with no FPU (i.e. CFLAGS="-O2 -march=armv7-a+nofp
-msoft-float"), the build fails as below:
cd /usr/src/llvm/debian/build/projects/compiler-rt/lib/builtins &&
/usr/local/bin/gcc -DVISIBILITY_HIDDEN -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
-I/usr/src/llvm/debian/build/projects/compiler-rt/lib/builtins
-I/usr/src/llvm/projects/compiler-rt/lib/builtins -I/usr/include/libxml2
-I/usr/src/llvm/debian/build/include -I/usr/src/llvm/include -fPIC -O3
-DNDEBUG -march=armv7-a -mfloat-abi=soft -fno-lto -std=c11 -o
CMakeFiles/clang_rt.builtins-arm.dir/arm/restore_vfp_d8_d15_regs.S.o -c
/usr/src/llvm/projects/compiler-rt/lib/builtins/arm/restore_vfp_d8_d15_regs.S
/usr/src/llvm/projects/compiler-rt/lib/builtins/arm/restore_vfp_d8_d15_regs.S:
Assembler messages:
/usr/src/llvm/projects/compiler-rt/lib/builtins/arm/restore_vfp_d8_d15_regs.S:30:
Error: selected processor does not support `vldmia sp!,{d8-d15}' in ARM mode
make[3]: ***
[projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-arm.dir/build.make:1887:
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-arm.dir/arm/restore_vfp_d8_d15_regs.S.o]
Error 1
make[3]: Leaving directory '/usr/src/llvm/debian/build'
make[2]: *** [CMakeFiles/Makefile2:44587:
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-arm.dir/all]
Error 2
make[2]: Leaving directory '/usr/src/llvm/debian/build'
make[1]: *** [Makefile:155: all] Error 2
Patch is coming shortly.</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>