]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
math: Fix i386 and m68k exp10 on static build (BZ 31775)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 20 Mar 2024 14:31:54 +0000 (11:31 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 21 May 2024 16:44:22 +0000 (13:44 -0300)
The commit 08ddd26814 removed the static exp10 on i386 and m68k with an
empty w_exp10.c (required for the ABIs that uses the newly
implementation).  This patch fixes by adding the required symbols on the
arch-specific w_exp{f}_compat.c implementation.

Checked on i686-linux-gnu and with a build for m68k-linux-gnu.

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
sysdeps/i386/fpu/w_exp10_compat.c
sysdeps/m68k/m680x0/fpu/w_exp10_compat.c

index b53455386ed8e189d1899051f8c13fb0f16e77ae..49a0e03385e4bfe387daf400235a2f10f2d06763 100644 (file)
@@ -1,3 +1,8 @@
 /* i386 provides an optimized __ieee754_exp10.  */
-#define NO_COMPAT_NEEDED 1
-#include <math/w_exp10_compat.c>
+#ifdef SHARED
+# define NO_COMPAT_NEEDED 1
+# include <math/w_exp10_compat.c>
+#else
+# include <math-type-macros-double.h>
+# include <w_exp10_template.c>
+#endif
index 0d3e7186261041e37bb645fab252c390819c530c..350f2e4b4d37e569020830b4c564086ec0bcaa07 100644 (file)
@@ -1,3 +1,8 @@
 /* m68k provides an optimized __ieee754_exp10.  */
-#define NO_COMPAT_NEEDED 1
-#include <math/w_exp10_compat.c>
+#ifdef SHARED
+# define NO_COMPAT_NEEDED 1
+# include <math/w_exp10_compat.c>
+#else
+# include <math-type-macros-double.h>
+# include <w_exp10_template.c>
+#endif