<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 - Discrepancy between predefined macros compared to ARM GCC"
href="https://bugs.llvm.org/show_bug.cgi?id=48266">48266</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Discrepancy between predefined macros compared to ARM GCC
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>valeros08@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Hi. I'm trying to use Clangd as a language server for embedded development. One
of the maintainers of Clangd suggested reporting my problem here.
I bumped into an issue when predefined macros that describe floating point
support generated by Clang differ from macros generated by ARM GCC.
For more detailed info please visit
<a href="https://github.com/clangd/clangd/issues/533#issuecomment-731405643">https://github.com/clangd/clangd/issues/533#issuecomment-731405643</a>
Here is the output from GCC:
arm-none-eabi-gcc -dM -E -mcpu=cortex-m4 -mthumb - < /dev/null | grep FP__
#define __SOFTFP__ 1
#define __VFP_FP__ 1
At the same time Clang generates only `VFP_FP`
./clang --target=arm-none-eabi -mcpu=cortex-m4 -mthumb -dM -xc /dev/null -c -v
-E | grep FP__
#define __VFP_FP__ 1
Thanks!</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>