[PATCH v3 2/7] math: Fix i386 and m68k fmod/fmodf on static build (BZ 31488)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 2 Apr 2024 14:06:39 +0000 (11:06 -0300)
committerSamuel Thibault <sthibault@debian.org>
Mon, 10 Jun 2024 20:25:19 +0000 (22:25 +0200)
commit2e620346afef301d2cf3421442332c412b6ad3b8
tree59d8138cc5706a2d30574ecc3354683b6c8f3e3c
parent749390e0c95d670feb2965bdc204541d29b8a052
[PATCH v3 2/7] math: Fix i386 and m68k fmod/fmodf on static build (BZ 31488)

Message-Id: <20240402140644.2172819-3-adhemerval.zanella@linaro.org>

The commit 16439f419b removed the static fmod/fmodf on i386 and m68k
with and empty w_fmod.c (required for the ABIs that uses the newly
implementation).  This patch fixes by adding the required symbols on
the arch-specific w_fmod{f}_compat.c implementation.

To statically build fmod fails on some ABI (alpha, s390, sparc) because
it does not export the ldexpf128, this is also fixed by this patch.

Checked on i686-linux-gnu and with a build for m68k-linux-gnu with
'make test t=math/test-{float,double}-modf-static build-math-static-tests=yes'.

Gbp-Pq: Topic any
Gbp-Pq: Name submitted-static-fmod-fmodf.diff
sysdeps/i386/fpu/w_fmod_compat.c
sysdeps/i386/fpu/w_fmodf_compat.c
sysdeps/ieee754/ldbl-opt/s_ldexpl.c
sysdeps/m68k/m680x0/fpu/w_fmod_compat.c
sysdeps/m68k/m680x0/fpu/w_fmodf_compat.c