mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 01:40:02 +00:00
cfi: mangle `f128` as `e` rather than `g` on platforms without `_Float128` On the Linux platform, only `x86` and `x86_64` support `Float128`. (seebd5b1f58ae/clang/lib/Basic/Targets/OSTargets.h (L431)) Therefore, for aarch64, the `f128` type corresponds exclusively to `long double`. In addition, `aarch64` does not overload `getLongDoubleMangling` and `getFloat128Mangling`.(seebd5b1f58ae/clang/include/clang/Basic/TargetInfo.h (L822)) Therefore, `aarch64` on Linux should send `e` instead of `g`. For Windows and Apple `aarch64`, the `long double` type is 64-bit, so these targets need to be excluded. The corresponding tests are added. LLM disclosure: This commit is entirely handwritten. r? @tgross35