diff options
author | David Spickett <david.spickett@linaro.org> | 2023-02-03 11:45:05 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2023-02-20 08:40:10 +0000 |
commit | 78cd158cf92ce5abdf5e68230b68b06b57354a0f (patch) | |
tree | b434694973490005bca4d5d1931b79a7e72aeb6e /llvm/lib/Support/Signposts.cpp | |
parent | 0e3089b244af5a373477dcf7416153c258acc4bc (diff) | |
download | llvm-78cd158cf92ce5abdf5e68230b68b06b57354a0f.zip llvm-78cd158cf92ce5abdf5e68230b68b06b57354a0f.tar.gz llvm-78cd158cf92ce5abdf5e68230b68b06b57354a0f.tar.bz2 |
[libc][AArch64] Fix fullbuild when using G++/GCC
The libc uses some functions that GCC does not currently
implement, that come from Arm's ACLE header usually.
These are:
```
__arm_wsr64
__arm_rsr64
__arm_wsr
__arm_rsr
```
This issue was reported to us (https://github.com/llvm/llvm-project/issues/60473)
and I've then reported that back to GCC (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108642).
Even if these functions are added, clang has some non standard extensions
to them that gcc may not take. So we're looking at a fix in gcc 13 at best,
and that may not be enough for what we're doing with them.
So I've added ifdefs to use alternatives with gcc.
For handling the stack pointer, inline assembly is unfortunately the only option.
I have verified that the single mov is essentially what __arm_rsr64 generates.
For fpsr and fpcr the gcc devs suggested using
https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/AArch64-Built-in-Functions.html#AArch64-Built-in-Functions.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D143261
Diffstat (limited to 'llvm/lib/Support/Signposts.cpp')
0 files changed, 0 insertions, 0 deletions