aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/compiler-rt/lib/builtins/fixdfdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/compiler-rt/lib/builtins/fixdfdi.c')
-rw-r--r--contrib/llvm-project/compiler-rt/lib/builtins/fixdfdi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/builtins/fixdfdi.c b/contrib/llvm-project/compiler-rt/lib/builtins/fixdfdi.c
index 2ed5261c51b7..a48facb68598 100644
--- a/contrib/llvm-project/compiler-rt/lib/builtins/fixdfdi.c
+++ b/contrib/llvm-project/compiler-rt/lib/builtins/fixdfdi.c
@@ -9,7 +9,7 @@
#define DOUBLE_PRECISION
#include "fp_lib.h"
-#ifndef __SOFT_FP__
+#ifndef __SOFTFP__
// Support for systems that have hardware floating-point; can set the invalid
// flag as a side-effect of computation.
@@ -42,3 +42,7 @@ AEABI_RTABI di_int __aeabi_d2lz(fp_t a) { return __fixdfdi(a); }
COMPILER_RT_ALIAS(__fixdfdi, __aeabi_d2lz)
#endif
#endif
+
+#if defined(__MINGW32__) && defined(__arm__)
+COMPILER_RT_ALIAS(__fixdfdi, __dtoi64)
+#endif