mirror of
https://git.freebsd.org/ports.git
synced 2025-05-02 19:46:41 -04:00
Fix the problem that made the build fail with LLVM. However, compiling with LLVM still leads to test suite failures on ARM so we compile with gcc instead. The patch for LLVM is left in for if a future version of the library fixes the problem. PR: 268079 Reported by: fuz@fuz.su MFH: 2022Q4
20 lines
491 B
C
20 lines
491 B
C
--- lib/jit_arm-swf.c.orig 2022-11-30 10:43:45 UTC
|
|
+++ lib/jit_arm-swf.c
|
|
@@ -402,7 +402,7 @@ static void _swf_vaarg_d(jit_state_t*, jit_int32_t, ji
|
|
BICI(rt, rn, encode_arm_immediate(im)); \
|
|
} while (0)
|
|
|
|
-#if !defined(__GNUC__)
|
|
+#if !defined(__GNUC__) || defined(__llvm__)
|
|
float __addsf3(float u, float v)
|
|
{
|
|
return (u + v);
|
|
@@ -414,6 +414,8 @@ __adddf3(double u, double v)
|
|
return (u + v);
|
|
}
|
|
|
|
+#endif
|
|
+#if !defined(__GNUC__)
|
|
float
|
|
__aeabi_fsub(float u, float v)
|
|
{
|