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

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 22 07:37:48 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
----------------
compnerd wrote:

There are some interesting definitions which would be removed if it were extended.  If there's no references to them, extending the else clause should be okay.

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


More information about the llvm-commits mailing list