[compiler-rt] [builtins] Avoid using long double in FreeBSD standalone environment (PR #76175)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 21 15:53:44 PST 2023


================
@@ -156,7 +156,9 @@ typedef struct {
 // still makes it 80 bits. Clang will match whatever compiler it is trying to
 // be compatible with. On 32-bit x86 Android, long double is 64 bits, while on
 // x86_64 Android, long double is 128 bits.
-#if (defined(__i386__) || defined(__x86_64__)) &&                              \
+#if !CRT_HAS_FLOATING_POINT
----------------
arichardson wrote:

I think it might be cleaner to just hoist the `#if CRT_HAS_FLOATING_POINT` from line 225 above this check and omit all floating point typedefs etc.

https://github.com/llvm/llvm-project/pull/76175


More information about the llvm-commits mailing list